PDA

View Full Version : Show a random thread


Dockaych
10-18-2003, 08:50 AM
I would love for there to be a means of displaying a random thread (from a specified forumid) at the top of each page, or as part of a template. This would be especially useful for sites with a news forum, or even a 'random quotes' system could be done this way.

I suspect there may be a way of abusing the external.php to do this. This would be fine, although ideally there should be means of displaying BOTH the subject and the thread body.

Please help! :D

Dockaych
10-18-2003, 09:21 AM
Further experimentation makes me think that the $thread[preview] variable might make a great way of showing content within the particular thread, if there were means of displaying it. However, I think it is the random part which will be most difficult... :(

Zachery
10-18-2003, 10:17 AM
i belive youd need to add a php statment in phpinclude_start to querry the DB and return the correct info

Dockaych
10-25-2003, 11:06 AM
i belive youd need to add a php statment in phpinclude_start to querry the DB and return the correct infoAh... good idea. Okay, I'll fiddle around with phpinclude_start and see if I can get any positive noises from vB. Thanks a lot for the heads up.