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
  #842  
Old 06-21-2006, 08:25 PM
Domenico Domenico is offline
 
Join Date: Oct 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by derekivey
Right now you manually have to remove the rating column, but in the next version I will have an option that when disabled it will not show it, requiring no file edits. For now, if you want to remove it now, you have to edit the Toplist, Toplist_1, and Toplist_2 templates to remove it.

Derek
Derek, can you please show us wich code has to be taken out because whatever I do it messes up everything. I just want to remove the rating column.

Thank you!
Reply With Quote
  #843  
Old 06-21-2006, 10:07 PM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok question i went in to delete a site and after i deleted it from the toplist.php page i got this error... what would cause that?

Code:
Warning: unlink(images/toplist/buttons/sites/forumhome_todayusers): No such file or directory in /delete_site.php on line 105
also the site never had a button i never added one..
Reply With Quote
  #844  
Old 06-22-2006, 12:41 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Domenico
Thanks for your answer!

Ok some users think they are clever and put the site html on a page outside of their site. Can you make the url where they put the site html code visible on the admin page when I edit a site please?
It doesn't check other pages for the code. It only checks the exact url they entered as their site URL.

Quote:
Originally Posted by Noxious
done that but still getting the following when trying to upload a JPG banner, JPEG files work but no1 really uses them anymore
Yeah thats a weird bug in this hack. I'm not exactly sure why it doesn't detect the filetype of the image. If you feel comfortable with what file types people upload, you can remove the if statement to allow any filetype until I figure out how to fix the bug.

Quote:
Originally Posted by Domenico
Derek, can you please show us wich code has to be taken out because whatever I do it messes up everything. I just want to remove the rating column.

Thank you!
Open the Toplist template.

FIND AND DELETE:
HTML Code:
<td class="thead" width="90">$vbphrase[toplist_rating]</td>
FIND AND DELETE:
HTML Code:
<td class="alt<if condition="$vboptions[toplist_show_user_banners] == 1">2<else />1</if>" width="90">
<if condition="$rating == 0">
$vbphrase[toplist_not_rated]
<else />
<img src="$vboptions[bburl]/images/rating/toplist_rating_$rating.gif" alt="" />
<br />
$randsite[votes] 
<if condition="$randsite[votes] == 1">
$vbphrase[toplist_vote]
<else />
$vbphrase[toplist_votes]
</if>
</if>
<if condition="!$show[guest]">
<br />
<a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=rate&amp;id=$randsite[id]','rate_site','menubar=0,resizable=1,width=$vboptions[toplist_popup_width],height=$vboptions[toplist_popup_height]');return false;">$vbphrase[toplist_rate_site]</a>
</if>
</td>
Close & Save the Toplist template.

Open the Toplist_1 template.

FIND AND DELETE:
HTML Code:
<td class="alt<if condition="$vboptions[toplist_show_user_banners] == 1">2<else />1</if>" width="90">
<if condition="$sr[rating_average] == 0">
$vbphrase[toplist_not_rated]
<else />
<img src="$vboptions[bburl]/images/rating/toplist_rating_{$rating_image}.gif" alt="" />
<br />
$sr[votes] 
<if condition="$sr[votes] == 1">
$vbphrase[toplist_vote]
<else />
$vbphrase[toplist_votes]
</if>
</if>
<if condition="!$show[guest]">
<br />
<a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=rate&amp;id=$sr[id]','rate_site','menubar=0,resizable=1,width=$vboptions[toplist_popup_width],height=$vboptions[toplist_popup_height]');return false;">$vbphrase[toplist_rate_site]</a>
</if>
</td>
Close & Save the Toplist_1 template.

Open the Toplist_2 template.

FIND AND DELETE:
HTML Code:
<td class="alt<if condition="$vboptions[toplist_show_user_banners] == 1">2<else />1</if>" width="90">
<if condition="$sr[rating_average] == 0">
$vbphrase[toplist_not_rated]
<else />
<img src="$vboptions[bburl]/images/rating/toplist_rating_{$rating_image}.gif" alt="" />
<br />
$sr[votes] 
<if condition="$sr[votes] == 1">
$vbphrase[toplist_vote]
<else />
$vbphrase[toplist_votes]
</if>
</if>
<if condition="!$show[guest]">
<br />
<a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=rate&amp;id=$sr[id]','rate_site','menubar=0,resizable=1,width=$vboptions[toplist_popup_width],height=$vboptions[toplist_popup_height]');return false;">$vbphrase[toplist_rate_site]</a>
</if>
</td>
That should delete it.

Quote:
Originally Posted by DementedMindz
ok question i went in to delete a site and after i deleted it from the toplist.php page i got this error... what would cause that?

Code:
Warning: unlink(images/toplist/buttons/sites/forumhome_todayusers): No such file or directory in /delete_site.php on line 105
also the site never had a button i never added one..
You can ignore that. But, I'm not sure why its trying to delete a file called forumhome_todayusers. Did you modify anything?
Reply With Quote
  #845  
Old 06-22-2006, 12:45 AM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope not at all... Im not sure why it was either i even tried it on my test board and it did the same thing... It does it mostly when you dont add a image(button) for the site...
Reply With Quote
  #846  
Old 06-22-2006, 01:32 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just ignore it for now. It won't cause any problems. If you want to prevent it from being shown, open delete_site.php and go to line 105, and put a @ in front of unlink.

Derek
Reply With Quote
  #847  
Old 06-22-2006, 09:57 AM
Domenico Domenico is offline
 
Join Date: Oct 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many thanks for your support Derek!
Reply With Quote
  #848  
Old 06-22-2006, 09:56 PM
puregraf's Avatar
puregraf puregraf is offline
 
Join Date: May 2006
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by derekivey
Please login to PHPMyAdmin, and delete all of the toplist_ tables, as well as the toplistpermissions column in the usergroup table (Do not delete the table itself!), and try the import again.

Derek

I did what you said and i guess it worked, but not all the way. look on the left on the menu where the toplist is supposed to be, there is a new module there but its blank..

heres a screenshot of my admin after i imported the file from my comp manage products / import product
Reply With Quote
  #849  
Old 06-23-2006, 02:20 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Domenico
Many thanks for your support Derek!
No Problem.

Quote:
Originally Posted by puregraf
I did what you said and i guess it worked, but not all the way. look on the left on the menu where the toplist is supposed to be, there is a new module there but its blank..

heres a screenshot of my admin after i imported the file from my comp manage products / import product
Looks like it didn't import the phrases. Go to Languages & Phrases, and do a search for toplist, and see if any come up.

Derek
Reply With Quote
  #850  
Old 06-23-2006, 03:34 AM
puregraf's Avatar
puregraf puregraf is offline
 
Join Date: May 2006
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by derekivey
No Problem.


Looks like it didn't import the phrases. Go to Languages & Phrases, and do a search for toplist, and see if any come up.

Derek
No Phrases Matched Your Query
aranoid:


I clicked on one of the blank spaces on the module on that screenshot i posted above and it took me to a page were it had this error:

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT * FROM toplist_sites WHERE status = 'inactive';

MySQL Error : Table 'puregraf_peegee.toplist_sites' doesn't exist
Error Number : 1146
Date : Thursday, June 22nd 2006 @ 09:35:34 PM
Script : http://www.puregraffiti.com/graffiti...?do=massdelete
Referrer : http://www.puregraffiti.com/graffiti-space/admincp/
IP Address : 71.137.37.85
Username : puregraffiti
Classname : vb_database

Thanks for your help.
Reply With Quote
  #851  
Old 06-23-2006, 04:06 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't look like it is importing correctly for you, for some reason. If you would like, I will try importing it for you. If you want me to, please PM me admin info.

Thanks,
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 02:46 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.13446 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
  • (2)bbcode_code
  • (4)bbcode_html
  • (9)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