The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Here is some code for adding recent threads on website front page
THIS widget thread by cory_booth helped get me started, but isn't what I needed, so this is a heavily modified version.
Here is the php for displaying recent threads on your front page (or any page), not as VB CMS. PHP Code:
The line with: WHERE NOT ISNULL(threadid) AND forum.forumid NOT IN (3,10,11,12,13,14,15,16,19) AND visible = '1' AND open!='10' Is where you would put the forumids of the forums you want to exclude from showing up. Hope this is useful for somebody. Since I found the original thread useful and this is a modified version of that, I thought I'd share as well. add your own CSS, and edit the HTML, to syle it however you want. Cheers, --------------- Added [DATE]1356761517[/DATE] at [TIME]1356761517[/TIME] --------------- I tried to edit the above php code block to stop the word-wrap making it messy to read, but I've given up. You can figure it all out easy enough it is short and sweet. If this has helped you at all, if you have any questions, or if you see ways to improve it, please let me know. |
Благодарность от: | ||
bing11 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|