The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Toplist Details »» | |||||||||||||||||||||||||
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:
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
|
Comments |
#602
|
||||
|
||||
Quote:
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. |
#603
|
|||
|
|||
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??? |
#604
|
|||
|
|||
Not sure why it's not working for you guys. Do you have GD installed?
|
#605
|
|||
|
|||
Quote:
Quote:
|
#606
|
|||
|
|||
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
|
#607
|
|||
|
|||
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 |
#608
|
|||
|
|||
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);
?>
|
#609
|
||||
|
||||
Quote:
Quote:
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.. |
#610
|
|||
|
|||
@ 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. |
#611
|
|||
|
|||
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
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|