Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-14-2007, 10:55 PM
VLJ VLJ is offline
Pligg Donor
Pligg Version: beta 9.8.2
Pligg Template: modified yget
 
Join Date: Feb 2007
Posts: 62
Thanks: 36
Thanked 2 Times in 2 Posts
More efficient random story module

I love having the random story module enabled for my site. One thing I noticed is that it runs the query with every page load (example - hover over the link and it shows a different link to story with each page load). Is there a way to have it make the query and pick the url once it is clicked instead of with every page load? Like maybe always link to a random.php file that runs the random_story_getdata function?

I tried doing it myself but can't seem to get it right.
Reply With Quote
  #2 (permalink)  
Old 12-14-2007, 11:20 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Thats an excellent idea. I should have done it that way in the first place.
__________________
- Ash
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Modification Tutorials 3 10-18-2008 10:28 AM
[SOLVED] Random Story Module Fix dollars5 Bug Report 12 08-17-2008 07:15 PM
Random Story module needs quotes escaped brianmark Bug Report 1 10-08-2007 04:34 PM
Random Story module for sites running PHP4.x?? VLJ General Help 0 04-29-2007 09:03 PM
Random Story Module bug floweringmind Modification Tutorials 0 01-11-2007 04:53 PM


Search Engine Friendly URLs by vBSEO 3.2.0