The Arcive of vBulletin Modifications Site. |
|
Thread of the day Details »»
|
|||||||||||||||||||||||||
With this hack you can select a thread of the day
The thread of the day is a thread randomly picked from all threads STARTED the day before. Then the thread of the day appears at your forumhome. You can customize different options in the threadoftheday.php file, for the people that installed my member of the day hack this one is very similar, but it selects a thread instead of a member to show at the forum home. *Update* For showing always the thread with most replies instead of a random thread: https://vborg.vbsupport.ru/showpost....9&postcount=14 Info for hackers: You may modify, improve, upgrade, redistribute this hack, include it in another hack or yours or translate it provided you do it free of charge and you distribute it in www.vbulletin.org at least, there is no need to pm me asking for permission Some portions of the code are (c) Jelsoft Enterprises Ltd. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
here are the options:
These are your private forums, you can set a comma separated list here to skip your private forums from being considered for thread of the day. Sorry about not using the permission code for the forums here, I don't think it is such a hassle to type your private forums here. $restrictedForums = "0"; Only threads with these number of replies will be considered. Take in consideration that since you can only select newly created threads they might not have a lot of replies. $replies = 0; Thread of the day selects threads from yesterday (ie, 1 day ago), but you can change these to select threads from the last week, last month or whatever. $dateline = 1; In the front page a preview of the thread appears. By default I am using 200 characters (that is enough for filling the screen). You can set this number to anything (well, almost.. don't set it to a negative value) $charspreview = 200; |
|
#3
|
||||
|
||||
|
Can we incorporate this into the member of the day so it will do it all in one shot?
|
|
#4
|
||||
|
||||
|
nice, hack
/me clicks install! edit: i typed in restricted forums and its still grabbing from there |
|
#5
|
||||
|
||||
|
Quote:
You are looking for this: $restrictedForums = "0"; write a comma separated list of the forums that will be restricted, either because they are private or because you don't want them to be considered. For example: $restrictedForums = "4,77,99"; that will skip forums with id 4, 77 and 99. If you don't know how to look for the forumid you can do so when you enter the forum, it appears at the top in the location bar of your browser. (forumid=xxx) or (f=xxx) Um.. mysteriously your post changed
|
|
#6
|
||||
|
||||
|
Quote:
Quote:
And maybe some people only want one of the hacks.
|
|
#7
|
||||
|
||||
|
thanks alot
|
|
#8
|
||||
|
||||
|
Yes, this one SHOULD be integrated in one hack.
Random attachemt, quote and photo would be perfect in one system! |
|
#9
|
||||
|
||||
|
Very nicely implemented making use of vB's datastore and schedule tasks
!
|
|
#10
|
||||
|
||||
|
Nice feature. I like it a lot.
/me clicks install. |
![]() |
|
|