Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread of the day Details »»
Thread of the day
Version: 1.00, by Kentaurus Kentaurus is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

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.

*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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-07-2004, 12:17 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
Reply With Quote
  #3  
Old 02-07-2004, 12:23 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we incorporate this into the member of the day so it will do it all in one shot?
Reply With Quote
  #4  
Old 02-07-2004, 12:33 AM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice, hack
/me clicks install!

edit:
i typed in restricted forums and its still grabbing from there
Reply With Quote
  #5  
Old 02-07-2004, 12:36 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AN-net
nice, hack
[high]* AN-net clicks install![/high]
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)


Um.. mysteriously your post changed
Reply With Quote
  #6  
Old 02-07-2004, 12:39 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AN-net
nice, hack
[high]* AN-net clicks install!
[/high]

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.
Reply With Quote
  #7  
Old 02-07-2004, 12:53 AM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks alot
Reply With Quote
  #8  
Old 02-07-2004, 11:01 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, this one SHOULD be integrated in one hack.
Random attachemt, quote and photo would be perfect in one system!
Reply With Quote
  #9  
Old 02-07-2004, 11:32 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nicely implemented making use of vB's datastore and schedule tasks !
Reply With Quote
  #10  
Old 02-12-2004, 08:56 PM
Mike Gaidin's Avatar
Mike Gaidin Mike Gaidin is offline
 
Join Date: Oct 2001
Location: Michigan
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice feature. I like it a lot.

/me clicks install.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04806 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete