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
  #12  
Old 02-12-2004, 11:29 PM
Mike Gaidin's Avatar
Mike Gaidin Mike Gaidin is offline
 
Join Date: Oct 2001
Location: Michigan
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to add a feature to this that displays something like a Top New Thread of the Day? It might be a way to help encourage new threads to blossom instead of die out.
Reply With Quote
  #13  
Old 02-13-2004, 01:58 AM
Chris-FH Chris-FH is offline
 
Join Date: Jun 2003
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack...

BUT...

Is it possible, to show a random thread, so every refresh the thread changes?

C.
Reply With Quote
  #14  
Old 02-13-2004, 01:58 PM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mike Gaidin
Is there a way to add a feature to this that displays something like a Top New Thread of the Day? It might be a way to help encourage new threads to blossom instead of die out.
What is a top new thread of the day? Is it the thread created yesterday that had most posts?

Quote:
Originally Posted by Chris-FH
Nice hack...

BUT...

Is it possible, to show a random thread, so every refresh the thread changes?

C.
That would be another hack... this is a cached thread for optimal resource use, but I can write a random version also.
Reply With Quote
  #15  
Old 02-13-2004, 02:10 PM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For showing always the thread with most replies instead of a random thread use this file instead of threadoftheday.php

Please note, this doesn't make a single thread to always appear in the top of the page because only threads started the day before are considered, so there is a new pool of threads each day.
Reply With Quote
  #16  
Old 02-13-2004, 03:26 PM
Chris-FH Chris-FH is offline
 
Join Date: Jun 2003
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
That would be another hack... this is a cached thread for optimal resource use, but I can write a random version also.
That would be nice. My members will thank you...

C.
Reply With Quote
  #17  
Old 04-02-2004, 02:54 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok not sure what's the easiest way to ask this so i'll just ask.

i'd like this to use only threads that have been active in the past 7 days but not a thread that has been chosen within the past 14 days, does this already do this?
Reply With Quote
  #18  
Old 04-02-2004, 03:08 PM
RaZor Edge's Avatar
RaZor Edge RaZor Edge is offline
 
Join Date: Jan 2002
Location: Quebec city
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be great if we can actualy select the thread we like to show on the forum home page... (can be like this vb2 hack -- https://vborg.vbsupport.ru/showthread.php?t=53170)
Reply With Quote
  #19  
Old 04-05-2004, 09:44 PM
James Collins James Collins is offline
 
Join Date: Dec 2003
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree.

Is an avatar supposed to show up as well? If so is it restricted in size as your pic has one, yet I cant get one to show in our development forum.

Anyway also to make the horizontal size match so it takes up less space, and match with the default forum styles. Excellent hack just not keen on the size.
Reply With Quote
  #20  
Old 04-06-2004, 10:34 AM
Nj?rd Eriksson Nj?rd Eriksson is offline
 
Join Date: Jul 2003
Location: Midg?rd
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a great hack.

Style improvement. Replace the threadoftheday template with:

HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onClick="return toggle_collapse('forumhome_threadoftheday')"><img id="collapseimg_forumhome_threadoftheday" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_threadoftheday].gif" alt="" border="0" /></a>
Top Thread of the Day
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_threadoftheday" style="$vbcollapse[collapseobj_forumhome_threadoftheday]">

<tr>

<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="Top Thread of the Day" border="0" /></td>

<td class="alt1" colspan="0"><div class="smallfont">
<table class="alt1" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
  <td><img src="image.php?$session[sessionurl]u=$tday[postuserid]" height="100"></td>
  <td>
    <span class="smallfont"><b>Top Thread of the Day:</b> <a target="_top" href="showthread.php?$session[sessionurl]t=$tday[threadid]">$tday[title]</a><br/><br/>
    <b>Posted by:</b> <a href="member.php?$session[sessionurl]u=$tday[postuserid]">$tday[postusername]</a><br/>
    <b>Posted on:</b> $tday[dateline]<br/><br/>
    <b>Preview:</b> $tday[pagetext]</span>
  </td>
</tr>
</table>
        </div></td>
</tr>
</tbody>
</table>
<br/>
This controls the size of the avatar, by the way:
HTML Code:
<img src="image.php?$session[sessionurl]u=$tday[postuserid]" height="100">
Replace height="100" with the pixel height you want.

@Kentaurus: Can one actually get this thing somehow to parse URLs and smilies?

I agree that a possibility to select the thread of the day would be a good addition.
Reply With Quote
  #21  
Old 04-06-2004, 03:49 PM
deaconxgp deaconxgp is offline
 
Join Date: Dec 2003
Location: Dallas
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you have more than one thread of the day?
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 08:17 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.10771 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_html
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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