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
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
  #1282  
Old 10-29-2006, 08:49 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Which line is it that I need to comment out?
Reply With Quote
  #1283  
Old 10-30-2006, 07:28 AM
loonytune15's Avatar
loonytune15 loonytune15 is offline
 
Join Date: Mar 2003
Location: Loony Bin
Posts: 357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by derekivey
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
Umm so what was the problem??
Reply With Quote
  #1284  
Old 10-30-2006, 09:56 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by furst
Which line is it that I need to comment out?
In add_site.php:
PHP Code:
// ################ SHOW NO PERMISSION PAGE TO GUESTS ####################
if ($vbulletin->userinfo['usergroupid'] == 1)
{
print_no_permission();

Quote:
Originally Posted by loonytune15
Umm so what was the problem??
It was not getting the URL of the random site, and therefore it was a blank link so it just went to the forum index...
Reply With Quote
  #1285  
Old 10-31-2006, 09:59 AM
jellybaby jellybaby is offline
 
Join Date: Jul 2005
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ive done the fix but still not working for me
Reply With Quote
  #1286  
Old 11-04-2006, 09:23 PM
jellybaby jellybaby is offline
 
Join Date: Jul 2005
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone else have this problem?
Reply With Quote
  #1287  
Old 11-05-2006, 12:01 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should work if you applied the fix. Please PM me FTP information and I will verify that you did it right.

Thanks,
Derek
Reply With Quote
  #1288  
Old 11-08-2006, 06:00 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the hack. I just installed it and had the random problem. The fix took care of it for me.
Reply With Quote
  #1289  
Old 11-09-2006, 05:15 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, why would the email show like that? Thanks
Quote:
Please check it and if it looks ok, validate it.
Here are the details of it:

Site Name: Array[sitename]
URL: Array[url]
Description: Array[description]
Reply With Quote
  #1290  
Old 11-11-2006, 03:12 AM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason the voting popup doesn't popup anymore since the last update. The randon Topsite rating popup works just fine on the Topsite page and in the VBA cmps module but not the rest of the sites on the topsite.php.

Anyone else having that prob?
Reply With Quote
  #1291  
Old 11-12-2006, 02:01 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
Hi, why would the email show like that? Thanks
Here's how to fix it. I think I forgot to fix it in 2.0.0.

Edit the phrased called toplist_email under the email body text phrase group.

Change it's contents from:
PHP Code:
new site has been submitted to $vboptions[bbtitle]'s Toplist
Please check it and if it looks ok, validate it.
Here are the details of it:
Site Name: $vbulletin->GPC[sitename]
URL: $vbulletin->GPC[url]
Description: $vbulletin->GPC[description]
Username: {$vbulletin->userinfo['
username']}
To validate it, login to your AdminCP, and click the Inactive users link on the left under Toplist
To:
PHP Code:
new site has been submitted to {$vboptions[bbtitle]}'s Toplist
Please check it and if it looks ok, validate it.
Here are the details of it:
Site Name: {$vbulletin->GPC[sitename]}
URL: {$vbulletin->GPC[url]}
Description: {$vbulletin->GPC[description]}
Username: {$vbulletin->userinfo['
username']}
To validate it, login to your AdminCP, and click the Inactive users link on the left under Toplist
Click Save.

Quote:
Originally Posted by jaks
For some reason the voting popup doesn't popup anymore since the last update. The randon Topsite rating popup works just fine on the Topsite page and in the VBA cmps module but not the rest of the sites on the topsite.php.

Anyone else having that prob?
I'll look into this. I probably forgot to update the vBadvanced module for 2.0.0.

Derek
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 04:47 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.06269 seconds
  • Memory Usage 2,346KB
  • 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
  • (7)bbcode_php
  • (7)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