![]() |
|
Thread Tools |
#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.
![]() 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 29 Dec 2012 at 05:11 --------------- 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. The following members like this post: bing11
Last edited by fungku; 30 Dec 2012 at 18:55. |
#2
|
|||
|
|||
Can cut off the day when the thread is displayed?
like a CMS Widget .. No members have liked this post.
|
#3
|
||||
|
||||
You could probably modify the SQL statement in this line:
WHERE NOT ISNULL(threadid) AND forum.forumid NOT IN (3,10,11,12,13,14,15,16,19) AND visible = '1' AND open!='10' to also exclude posts older than a certain date. No members have liked this post.
|
#4
|
|||
|
|||
Originally Posted by fungku
hello![]()
Could limit 1 forum only can show 1 thread? like we have 10 recent threads here . but must from 10 different forums. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 13:54.