vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Toplist (https://vborg.vbsupport.ru/showthread.php?t=98646)

loonytune15 03-27-2006 05:44 AM

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.

DementedMindz 03-27-2006 07:17 PM

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???

derekivey 03-27-2006 11:15 PM

Not sure why it's not working for you guys. Do you have GD installed?

derekivey 03-27-2006 11:18 PM

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.

DementedMindz 03-27-2006 11:19 PM

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

derekivey 03-28-2006 02:16 AM

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

DementedMindz 03-28-2006 04:02 AM

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);
?>


loonytune15 03-29-2006 01:09 AM

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..

derekivey 03-29-2006 02:03 AM

@ 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.

DementedMindz 03-29-2006 02:06 AM

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


All times are GMT. The time now is 05:39 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02161 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete