Version: 1.00, by Kentaurus
Developer Last Online: Jul 2014
Version: 3.0.0
Rating:
Released: 02-06-2004
Last Update: Never
Installs: 29
No support by the author.
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.
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
This modification may not be copied, reproduced or published elsewhere without author's permission.
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)
edit the threadoftheday.php file to customize it, there are some variables you might want to change (they are detailed in the second post)
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)
edit:
i typed in restricted forums and its still grabbing from there
Run the cron job again as it already selected the thread of the day
Quote:
Originally Posted by boofo
Can we incorporate this into the member of the day so it will do it all in one shot?
Yes, but that would be merging the two php files and the two file edits at index.php.... almost the same as hacking them separately And maybe some people only want one of the hacks.