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
  #602  
Old 03-27-2006, 05:44 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
Should have been fixed. Right click the image and paste here what it is linking to.

Thanks,
Derek
it has this as the address:
http://www.monster-designs.com/forums/

their is no image attached for some reason.
but it works in the toplist page and the admin cp.

go to the above address to see.
Reply With Quote
  #603  
Old 03-27-2006, 07:17 PM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok question when im in admin i went to upload a image from there for my button and got this error

Warning: unlink(/images/toplist/buttons/sites/forumhome_chatusers): No such file or directory in /admincp/toplist_admin.php on line 352
Site Edited Successfully

also in /images/toplist/buttons/sites it dont save there gif or jpeg it saves it as some weird file? this is one of the names it saved it as NpZSB31CmTZBLpSDTLJJ is this correct???
Reply With Quote
  #604  
Old 03-27-2006, 11:15 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure why it's not working for you guys. Do you have GD installed?
Reply With Quote
  #605  
Old 03-27-2006, 11:18 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by loonytune15
it has this as the address:
http://www.monster-designs.com/forums/

their is no image attached for some reason.
but it works in the toplist page and the admin cp.

go to the above address to see.
I took a look and it looks like only one site in the Toplist is like that. Perhaps try readding the image?

Quote:
Originally Posted by DementedMindz
ok question when im in admin i went to upload a image from there for my button and got this error

Warning: unlink(/images/toplist/buttons/sites/forumhome_chatusers): No such file or directory in /admincp/toplist_admin.php on line 352
Site Edited Successfully


also in /images/toplist/buttons/sites it dont save there gif or jpeg it saves it as some weird file? this is one of the names it saved it as NpZSB31CmTZBLpSDTLJJ is this correct???
Yes thats correct. Just ignore the unlink error by the way, it just means the image doesn't exist, you can safely ignore it.
Reply With Quote
  #606  
Old 03-27-2006, 11:19 PM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes i do... as i use it for image verification for new members... not a big deal though i just removed the center table and the info... would like for it to work though lol
Reply With Quote
  #607  
Old 03-28-2006, 02:16 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, can you paste the code you have in the image.png file so I can take a look and try fixing it?

Thanks,
Derek
Reply With Quote
  #608  
Old 03-28-2006, 04:02 AM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ill leave my url out but here is the code


Code:
<?php 

/*======================================================================*\
|| #################################################################### ||
|| # Toplist Hack - Version 1.0.6				      # ||
|| # For vBulletin 3.5.3					      # ||
|| # ---------------------------------------------------------------- # ||
|| # By Derek Ivey (derek@modbb.com)				      # ||
|| # This hack may not be redistributed without my written permission # ||
|| #################################################################### ||
\*======================================================================*/

// ####################### SET PHP ENVIRONMENT ########################### 
error_reporting(E_ALL & ~E_NOTICE); 

// #################### DEFINE IMPORTANT CONSTANTS ####################### 
define('NO_REGISTER_GLOBALS', 1); 
define('THIS_SCRIPT', 'toplist_dynamic_image');

// ######################### REQUIRE BACK-END ############################
// change the following to the path to your forum, with no ending slash.
chdir('/html');
require_once('global.php'); 

// ####################################################################### 
// ######################## START MAIN SCRIPT ############################ 
// #######################################################################

// ############################## MISC STUFF #############################
header("Content-type: image/png"); 
$image = imagecreatefrompng("images/toplist/buttons/dynamic/background.png");  
$color = imagecolorallocate($image, 0, 0, 255);
$font = 3;

// ######################### GRAB INFO FROM DB ###########################
//$sql = "SELECT * FROM " . TABLE_PREFIX . "toplist_sites WHERE id='8'";
$sql = "SELECT * FROM " . TABLE_PREFIX . "toplist_sites WHERE id='".$db->escape_string($_GET['id'])."'";
$sqlr = $db->query_read($sql);
$sr = $db->fetch_array($sqlr);

if ($vbulletin->options['toplist_ranking_method'] == 0)
{    
	$order = '`in`';
}
else if ($vbulletin->options['toplist_ranking_method'] == 1)
{
	$order = 'out';
}
else if ($vbulletin->options['toplist_ranking_method'] == 2)
{
	$order = 'rating_average';
}
else
{
	$order = '`in`';
}

$rank1 = "SELECT * FROM " . TABLE_PREFIX . "toplist_sites ORDER BY ".$order." DESC";
$rank2 = $db->query_read($rank1);
$i = 1;
while($rank3 = $db->fetch_array($rank2))
{
	if ($rank3['id'] == $_GET['id'])
	{
		$rank = $i;
	}
	else
	{
		$i++;
	}
}

// ############################# CREATE IMAGE ############################
imagestring($image, $font, 44, 28, $rank, $color);
imagestring($image, $font, 52, 42, $sr['in'], $color);
imagestring($image, $font, 62, 56, $sr['out'], $color);
imagestring($image, $font, 52, 70, $sr['rating_average'], $color);
imagestring($image, 2, 5, 83, $sr['name'], $color);

imagepng($image); 
imagedestroy($image);
?>
Reply With Quote
  #609  
Old 03-29-2006, 01:09 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 loonytune15
it has this as the address:
http://www.monster-designs.com/forums/

their is no image attached for some reason.
but it works in the toplist page and the admin cp.

go to the above address to see.

I took a look and it looks like only one site in the Toplist is like that. Perhaps try readding the image?
Ok in the toplist page planet renders, was the only site with a red X. I added it in a couple of days ago and it was working, i re-added the image again and it is working again for now..

Quote:
Originally Posted by DementedMindz
ok question when im in admin i went to upload a image from there for my button and got this error

Warning: unlink(/images/toplist/buttons/sites/forumhome_chatusers): No such file or directory in /admincp/toplist_admin.php on line 352
Site Edited Successfully


also in /images/toplist/buttons/sites it dont save there gif or jpeg it saves it as some weird file? this is one of the names it saved it as NpZSB31CmTZBLpSDTLJJ is this correct???


Yes thats correct. Just ignore the unlink error by the way, it just means the image doesn't exist, you can safely ignore it.
This is also the same problem i have been getting. All my original images have been named as the site number that it was added in as. eg the first site i added was given the image number 1 and so forth.

Also the forum home maquee which is where i am having all the problems, shows red x's everywhere, and it also shows inactive sites.

I m going to have to turn this off soon as it really is starting to look bad..
Reply With Quote
  #610  
Old 03-29-2006, 02:03 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ DementedMindz - is chdir('/html'); correct? If you are on a shared server, it will probably be something like /home/username/public_html/forumdirectory

@ loonytune15 - Go ahead and turn it off for now. I will try to release a fix tomorrow if I can figure out what is wrong.
Reply With Quote
  #611  
Old 03-29-2006, 02:06 AM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes it is well i removed the full chdir for this post but its the same as it would be for my vbulletin and vbadvanced
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 01:55 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.09214 seconds
  • Memory Usage 2,322KB
  • 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
  • (5)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