Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
Toplist Details »»
Toplist
Version: 2.0.0, by derekivey derekivey is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 10-17-2005 Last Update: 01-04-2007 Installs: 412
DB Changes Uses Plugins Template Edits Auto-Templates
Additional Files Translations  
No support by the author.

Toplist
Developer: derekivey
Version: 2.0.0
vBulletin Version: 3.5.5 (Seems to work fine on 3.6.0)
File Edits: 0
Template Edits: 2 (Optional)
New Phrases: 294
Uses Plugins: Yes!
Difficulty: Easy

Description: This hack adds a Toplist to your forums. You can choose in the AdminCP whether to rank the sites by their In hits or their Out hits. It is fully phrased to make it easy to translate to another language if you need to. The users are able to add a site, edit, or delete their site if they added it. The Administrators can Edit the users' sites or Delete them.
This hack is for vBulletin 3.5.5.

*** I Strongly Recommend That You Backup Your Database Before Installing/Upgrading This Hack! ***

Planned features for a later release:
  • Add Image Storage Setting (hot linking or upload)
  • Add Stats Page [ Will be released later ]
  • Add API to get site info onto non-vB pages and other vB pages.
  • Add Site Comment System
  • Fix bug with & not being allowed in URLs [ Done ]
  • Add Setting to choose where to put Toplist Sites Marquee
  • Whatever else is suggested
Change Log
The change log is now available here.

Screen Shots
I have added screen shots of this hack in action below.
More screenshots are located here.

Demo
You can find demo information here.

Translations
You can find a French translation of this hack here.

For a How To on Editing the Dynamic Image, See this Post.

Please click Install you installed this hack.


Thanks!

Supporters / CoAuthors

Show Your Support

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

Comments
  #1272  
Old 10-22-2006, 08:10 PM
sross sross is offline
 
Join Date: Mar 2004
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the help derek! I tried updating the templates, got an error on the first but the second updated ok. the error on the first was:

[/quote]The following error occurred when attempting to evaluate this template:

The conditional on line 28 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed.

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.[/quote]
I saved it anyways and got a blank page. I'll see if i can find the missing bit.
Reply With Quote
  #1273  
Old 10-22-2006, 08:20 PM
sross sross is offline
 
Join Date: Mar 2004
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok found it, for anyone who might need it just put another </if> after:

Code:
</tr>
$validate_bits
<tr align="center">
<td class="thead" colspan="7"><div class="smallfont">&nbsp;</div></td>
</tr>
</table>
<br />
</if>
Looking good now, will PM you
Reply With Quote
  #1274  
Old 10-23-2006, 03:05 AM
sross sross is offline
 
Join Date: Mar 2004
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fyi- for future reference if anyone needs the info.. my view counts are working now after derek made me realize my toplist.js file wasn't copied over. thanks Derek!
Reply With Quote
  #1275  
Old 10-23-2006, 09:48 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sross
fyi- for future reference if anyone needs the info.. my view counts are working now after derek made me realize my toplist.js file wasn't copied over. thanks Derek!
No Problem. I prolly forgot to remove an </if> when I edited your templates.

Derek
Reply With Quote
  #1276  
Old 10-23-2006, 01:16 PM
loonytune15's Avatar
loonytune15 loonytune15 is offline
 
Join Date: Mar 2003
Location: Loony Bin
Posts: 357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool, i missed the change to the cron
Reply With Quote
  #1277  
Old 10-29-2006, 06:07 AM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Derek, nice hack. I'm just having a problem getting it to allow guests to add sites. Every time I log out and go to "add site" it asks me to log in again. Here are my settings for my Guests usergroup:
http://img9.imagepile.net/img9/18753whatsupdoc.jpg
Reply With Quote
  #1278  
Old 10-29-2006, 09:15 AM
jellybaby jellybaby is offline
 
Join Date: Jul 2005
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Everything seems to be working great apart from the random site on the top. When I click on it, it just takes me straight back to the toplist. Any ideas please?

Thanks
Reply With Quote
  #1279  
Old 10-29-2006, 11:20 AM
dendrob dendrob is offline
 
Join Date: Mar 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Derek, any progress reports? If you can please add a "ranking period" to the mod. Right now, it ranks forever. So if anyone joins 3 months ago and another one joins this week and both sites have similar traffic, the newer site will never catch the older site in ranking, although they should be pretty much next to each other. Would be nice if the list would reset automatically every day/week/month based on admin selection.

Great mod, just my list is stagnant and not used because I'm not popularizing it due to the missing features. On the other hand, I have a bussling topsite based on AArdvark.

Also would be great to get rid of the iframe code as it leaves traces on the page under various browsers - in fact it would be great to have just one standardized code to calculate all the statistics.

let us know what you're working on.
Reply With Quote
  #1280  
Old 10-29-2006, 11:26 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by furst
Hey Derek, nice hack. I'm just having a problem getting it to allow guests to add sites. Every time I log out and go to "add site" it asks me to log in again. Here are my settings for my Guests usergroup:
http://img9.imagepile.net/img9/18753whatsupdoc.jpg
I think I have a line in add_site.php that automatically prints the no permission page for guests. You will have to comment that line out to let guests add sites, I'll prolly delete that line in the next version.

Quote:
Originally Posted by dendrob
Derek, any progress reports? If you can please add a "ranking period" to the mod. Right now, it ranks forever. So if anyone joins 3 months ago and another one joins this week and both sites have similar traffic, the newer site will never catch the older site in ranking, although they should be pretty much next to each other. Would be nice if the list would reset automatically every day/week/month based on admin selection.

Great mod, just my list is stagnant and not used because I'm not popularizing it due to the missing features. On the other hand, I have a bussling topsite based on AArdvark.

Also would be great to get rid of the iframe code as it leaves traces on the page under various browsers - in fact it would be great to have just one standardized code to calculate all the statistics.

let us know what you're working on.
I am currently working on getting those done. A new Toplist version won't be out for awhile, as I am currently working on updating one of my scripts, and also making a new hack.

Derek
Reply With Quote
  #1281  
Old 10-29-2006, 02:37 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A bug has been found in the random site part of the Toplist. Here is how you fix it...

Open toplist.php.

Find:
PHP Code:
                if ($vbulletin->options['toplist_check_if_code_exists'])
                {
                    
$randsite1 "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " TABLE_PREFIX "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
                }
                else
                {
                    
$randsite1 "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes` , `rating_average` FROM " TABLE_PREFIX "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
                } 
Replace With:
PHP Code:
                if ($vbulletin->options['toplist_check_if_code_exists'])
                {
                    
$randsite1 "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " TABLE_PREFIX "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
                }
                else
                {
                    
$randsite1 "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes` , `rating_average` FROM " TABLE_PREFIX "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
                } 
Find:
PHP Code:
            if ($vbulletin->options['toplist_check_if_code_exists'])
            {
                
$randsite1 "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " TABLE_PREFIX "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
            }
            else
            {
                
$randsite1 "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " TABLE_PREFIX "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
            } 
Replace With:
PHP Code:
            if ($vbulletin->options['toplist_check_if_code_exists'])
            {
                
$randsite1 "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " TABLE_PREFIX "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
            }
            else
            {
                
$randsite1 "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " TABLE_PREFIX "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
            } 
Save and Close toplist.php.

Derek
Reply With Quote
Reply

Thread Tools

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 06:18 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.05874 seconds
  • Memory Usage 2,334KB
  • 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
  • (1)bbcode_code
  • (4)bbcode_php
  • (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
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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