Quote:
Originally Posted by nima6
is there a way to show the latest 5 VBulettin Threads outside the VB? Ex, on the website's homepage (assuming forum is in /forum/ folder)
|
PHP & MySQL will do the trick...
Something like this for the SQL:
Code:
SELECT threadid, title FROM TABLE-PREFIX_thread WHERE `visible`=1 ORDER BY threadid DESC LIMIT 10
Notes:
- TABLE-PREFIX_ = the table prefix you use on your forums, if any...
- Never do something like SELECT * FROM if you dont need everything from that row...
- Use visible=1 to show only threads which have not been deleted...
- Change the 10 in LIMIT 10 to change the number of rows selected...
The rest which would be in PHP should en easy enough...