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
  #482  
Old 02-05-2006, 02:14 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, No problem, glad you got it working. Also do you remember what kind of errors it gave you when you tried uploading the images?
Reply With Quote
  #483  
Old 02-05-2006, 03:04 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by derekivey
Ok, No problem, glad you got it working. Also do you remember what kind of errors it gave you when you tried uploading the images?
sorry D, i think i spoke to soon..but was to tired last night and had to give this a break...as far as the error message can't find my text files because i normally save the error .some how i didn't save it ,it was just when u upload a pic file from home pc file to server it was then giving me the error message that i was unable to upload....now back to the error for the rating..on page 16 verse 234 i followed the instruction to run queries..i ran the queries but when i want to rated a site i get that same error ..i'm stuck what else do you want me to look at.
Code:
Database error in vBulletin 3.5.1:

Invalid SQL:
SELECT * FROM toplist_ratings WHERE site_id='1' && username='puertoblack2003';

MySQL Error  : Table 'puertotech.toplist_ratings' doesn't exist
Error Number : 1146
Date         : Sunday, February 5th 2006 @ 08:56:52 AM
Script       : http://www.loveforlife.com/toplist.php?do=rate&id=1
Referrer     : 
IP Address   : xxxxx.xxxx.xxx
Username     : xxxxxxxxxxxxx
Classname    : vb_database
believe me i was read through the hole thread here.. :ermm:

comment: also i ran the queries and seem to be in there i double checked everything just waiting for you i'm stuck :ermm:
Reply With Quote
  #484  
Old 02-05-2006, 06:36 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason it looks like the SQL table for the ratings didn't get created. Try executing this code in PHPMyAdmin, or vB's query page in the AdminCP.

[sql]
CREATE TABLE `toplist_ratings` (
`id` int(10) NOT NULL auto_increment,
`site_id` int(10) NOT NULL default '0',
`username` varchar(255) NOT NULL default '',
`rating` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
[/sql]

Also if you have a table prefix, be sure to add that to the table name also.

Derek
Reply With Quote
  #485  
Old 02-05-2006, 06:39 PM
forumsoup.com's Avatar
forumsoup.com forumsoup.com is offline
 
Join Date: Feb 2006
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wondering, because I really don't know. Why would a site have a toplist?
Reply With Quote
  #486  
Old 02-05-2006, 06:50 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by derekivey
For some reason it looks like the SQL table for the ratings didn't get created. Try executing this code in PHPMyAdmin, or vB's query page in the AdminCP.

[sql]
CREATE TABLE `toplist_ratings` (
`id` int(10) NOT NULL auto_increment,
`site_id` int(10) NOT NULL default '0',
`username` varchar(255) NOT NULL default '',
`rating` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
[/sql]

Also if you have a table prefix, be sure to add that to the table name also.

Derek


got to love u man...lol... it worked know i have to figure out how to resolve the new version....error message will keep you informed
Reply With Quote
  #487  
Old 02-05-2006, 11:24 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by forumsoup.com
Just wondering, because I really don't know. Why would a site have a toplist?
They are mainly used to let users post their site and help get traffic to the different sites. Also at the same time they put a link on their site to your and it counts the hits in.

Quote:
Originally Posted by nievesidenshop
got to love u man...lol... it worked know i have to figure out how to resolve the new version....error message will keep you informed
Ok, please let me know if you see the error again.

Thanks,
Derek
Reply With Quote
  #488  
Old 02-07-2006, 01:52 PM
tasarimdunyasi tasarimdunyasi is offline
 
Join Date: Jul 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

first:

when i delete a site using admin panel, i see that message:

Warning: unlink(/**************public_html/images/toplist/buttons/sites/forumbit_14): No such file or directory in /*****cp/toplist_admin.php on line 646
deleting succesfull..


second:

when I'm adding a new site, toplist looks like that althoug i don't use a picture. why it try to screen image although i use blank: http://img291.imageshack.us/img291/7020/example7px.jpg

sorry for my english.

thanks
Reply With Quote
  #489  
Old 02-07-2006, 05:26 PM
Guest210212002
Guest
 
Posts: n/a
Default

Installed and working almost perfectly. Couple of questions:

- Where do I edit/add the missing image in the attached pic?

- How do I set the allowed image types? I made the edits to the files in post 463, but it still wants "JPEG" instead of "JPG".

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

Quote:
Originally Posted by tasarimdunyasi
hi,

first:

when i delete a site using admin panel, i see that message:

Warning: unlink(/**************public_html/images/toplist/buttons/sites/forumbit_14): No such file or directory in /*****cp/toplist_admin.php on line 646
deleting succesfull..


second:

when I'm adding a new site, toplist looks like that althoug i don't use a picture. why it try to screen image although i use blank: http://img291.imageshack.us/img291/7020/example7px.jpg

sorry for my english.

thanks
Just ignore the error, that just means the file isn't there. I will make it not show the error in the next release.

Also can you PM me the url to your forum and a test account so that I can try the 2nd thing? It shouldn't be showing anything if you leave the image field blank.

Quote:
Originally Posted by Chris-777
Installed and working almost perfectly. Couple of questions:

- Where do I edit/add the missing image in the attached pic?

- How do I set the allowed image types? I made the edits to the files in post 463, but it still wants "JPEG" instead of "JPG".

Thanks!
For the image to show, you need to edit the images/toplist/buttons/dynamic/image.png file in a text editor such as notepad. You need to change the path from what I have to your path. See this post for more info.

For your second question, did you add $image_type == "image/jpg" to the if statement?

Derek
Reply With Quote
  #491  
Old 02-07-2006, 08:13 PM
Guest210212002
Guest
 
Posts: n/a
Default

Thanks for the quick reply Derek. Got the broken image sorted out, thanks very much.

For the JPEG problem, I don't want ".jpeg" at all, so I changed all the instances listed from ' OR $image_type == "image/jpeg"' to OR $image_type == "image/jpg". I assume that should have worked as well, no?
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:37 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.11693 seconds
  • Memory Usage 2,315KB
  • 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
  • (6)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
  • (9)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