The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I would like to build a 'quote of the day' system with vb.
I would like to select randomly a thread from a category and show his title on an non-vb page. Does anyone help me? Thanks a lot!! |
#2
|
|||
|
|||
![]()
any idea?
|
#3
|
||||
|
||||
![]()
[sql]
SELECT * FROM thread LEFT JOIN post ON (post.postid = thread.firstpostid) WHERE forumid IN (1,2,3,4) ORDER BY RAND() LIMIT 1 [/sql] Where 1,2,3,4 are the ForumIDs where the thread should come from. If you don't need the actual post you can leave out the join. |
#4
|
|||
|
|||
![]()
how would you mkae it so that the bb code will show?
|
#5
|
||||
|
||||
![]()
parse_bbcode2() in functions_bbcodeparse.php
|
#6
|
|||
|
|||
![]()
it works like a charm!!
What I do is to make a .php file that obtains a random thread from a category, and download that file with a cron entry day by day into an html file. So, I obtain a 'quote of the day system'. Thanks a lot |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|