Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Top 5 "Hot" Topics on Forum Home Page Details »»
Top 5 "Hot" Topics on Forum Home Page
Version: 1.1, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.0 RC1 Rating:
Released: 07-27-2005 Last Update: 08-01-2005 Installs: 79
Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

This little one puts a list of the five threads with the most replies that have been active in the past 7 days on your forum home page.

You can change the query to make it 10 topics with most views or whatever suits your needs.

Things you may want to change:

To get the top 10, 20 or whatever topics instead of 5, change
Code:
LIMIT 5
to the number of your choice.

To get the top topics based on views instead of replies, change
Code:
ORDER BY replycount
to
Code:
ORDER BY views
To keep track of the top threads that are currently active, no matter when they were started, change
Code:
WHERE dateline > $datecut
to
Code:
WHERE lastpost > $datecut

Supporters / CoAuthors

Show Your Support

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

Comments
  #92  
Old 08-26-2005, 05:01 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, you can.
Reply With Quote
  #93  
Old 08-27-2005, 04:49 AM
IFor[You] IFor[You] is offline
 
Join Date: Dec 2002
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm i changed the location to glodal_start and it messed up my forums -_-"
Reply With Quote
  #94  
Old 08-27-2005, 07:59 AM
Brinnie's Avatar
Brinnie Brinnie is offline
 
Join Date: Jul 2005
Location: Louisiana
Posts: 360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a stupid idea... what about the idea of making the reverse? You know, like, display some threads that don't have many replies or something, idunno, im drunk. friday. im goin to bed. :-\
Reply With Quote
  #95  
Old 10-24-2005, 03:47 PM
Disamy Disamy is offline
 
Join Date: Oct 2005
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great stuff guys ! but 2 questions
I have 2 languages installed in forum so i would like to have "replies" translated, does it have varname ?
also BOFO posted HTML to add icon next to it, where do i put this HTML ?
Thanks in advance
Reply With Quote
  #96  
Old 10-30-2005, 05:36 PM
alzibub alzibub is offline
 
Join Date: Mar 2003
Location: UK
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Disamy
Great stuff guys ! but 2 questions
I have 2 languages installed in forum so i would like to have "replies" translated, does it have varname ?
also BOFO posted HTML to add icon next to it, where do i put this HTML ?
Thanks in advance
Hey

I installed the hack - thanks very much
Just wanted to add that I was missing the Phrase listed in an earlier post and wasnt sure if you intended to or actually did add it to the product - if so it didnt work.
I just added it as per post in here and all is good - thanks for the work!
Reply With Quote
  #97  
Old 11-07-2005, 11:06 AM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this, I'm really impressed.

I have a question: I have a "most views" section which currently shows the most views (as long as a post has been made in the last 7 days).

How do I

a) Extend the date to say 30 days or 90 days?
b) Clear the date so I get the most views since the forum was created?

Thanks
Reply With Quote
  #98  
Old 11-07-2005, 02:11 PM
thediablo thediablo is offline
 
Join Date: Oct 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im trying to add this to my header template but is not displaying... any suggestions?

thanks
Reply With Quote
  #99  
Old 11-07-2005, 03:15 PM
thediablo thediablo is offline
 
Join Date: Oct 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i managed to make it show on the header by changing the hook to global_start, but now it seems im having some forum permissions problems... i click on the main forum and it says i can't view it, not enough perms... ok.. so i click on the direct link to the thread and i get in lol

Any suggestions?

thanks
Reply With Quote
  #100  
Old 11-07-2005, 03:26 PM
thediablo thediablo is offline
 
Join Date: Oct 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so im guessing the problem is here:

PHP Code:
if (isset($vbulletin->forumcache["$forumid"]) AND 
(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) AND
 (
$forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND
 
verify_forum_password($forumid$vbulletin->forumcache["$forumid"]['password'], false)) 
but i dont know what do the vbulletin functions do, so im a lil blind here.

so heres the prob again...

MAIN FORUM > SUBFORUM > POST
-------------- '-Can't View - '- Can View

-------------------------------------------------------
UPDATE:

ok i updated the code and removed all the permission stuff...
which leave me with this line of codes:
PHP Code:
foreach (array_keys($vbulletin->forumcache) AS $forumid)
{
        
$forumid intval($forumid);

            
$forumchoice[] = $forumid;


And guees what... Still no luck!

Reply With Quote
  #101  
Old 11-19-2005, 04:41 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is this? I installed the product and refreshed, do not see anything
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 12:16 AM.


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.04871 seconds
  • Memory Usage 2,316KB
  • Queries Executed 26 (?)
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
  • (5)bbcode_code
  • (2)bbcode_php
  • (1)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
  • (4)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