Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
siliconeclone
New Member
New Member



Joined: Aug 21, 2006
Posts: 10

PostPosted: Thu Aug 24, 2006 9:40 pm Reply with quote

The user icon in the Admin file is an X... and the security tags are not showing as well. I noticed that all these new images are PNG and not sure if that has anything to do with it (instead of .gif)

I found a post where someone had similar problems but the answer there (copying the images to my themes folder) did not solve the problem.

I tried to adjust the code to use the original .gif images that come with nuke.. but no luck.. any one have any ideas?

For reference I am using CNB Your Account 4.4.2 and patched 7.6

Code:
    case "gfxadminimage":

   // menelaos: dynamically insert the version number in the admin config panel image Copyright (c) 2004 :-)
   $icon      = "images/admin/users.png";
   $image   = ImageCreateFromPNG($icon);
   $text_color   = ImageColorAllocate($image, 0, 0, 0);
   Header("Content-type: image/png");
   ImageString ($image, 1, 7, 38, $cnbyaversion, $text_color);
   ImagePNG($image, '', 75);
   ImageDestroy($image);
   break;

    case "gfx":
    // Begin Copyright (c) 2004 by NukeScripts Network
        $datekey = date("F j");
        $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
        $code = substr($rcode, 2, $ya_config['codesize']);
        $ThemeSel = get_theme();
        if (file_exists("themes/$ThemeSel/images/code_bg.png")) {
            $codeimg = "themes/$ThemeSel/images/code_bg.png";
            include("themes/$ThemeSel/theme.php");
            $tcolor = str_replace("#", "", $textcolor1);
            $tc_r = hexdec(substr($tcolor, 0, 2));
            $tc_g = hexdec(substr($tcolor, 2, 2));
            $tc_b = hexdec(substr($tcolor, 4, 2));
        } else {
            $codeimg = "images/code_bg.png";
            $tc_r = $tc_g = $tc_b = 0;
        }
        $image = ImageCreateFromPNG($codeimg);
        $text_color = ImageColorAllocate($image, $tc_r, $tc_g, $tc_b);
        Header("Content-type: image/png");
        ImageString ($image, 5, 5, 2, $code, $text_color);
        ImagePNG($image, '', 75);
        ImageDestroy($image);
        die();
    // End Copyright (c) 2004 by NukeScripts Network
    break;


Not sure what is wrong, but I believe it has something to do with the above code in my Your_Account index.php file

Other PNG files work fine with the site. Only the Users.png in the admin panel and the security gfx are not. Both have extra features built in, perhaps I am missing some file?

Without CNB the gfx check works fine.. I have the latest GD2 library.. so I have no clue

I would skip CNB with exception that my mail server is not accepted by hotmail, yahoo, and a few others which makes email activation a pain.
 
View user's profile Send private message
siliconeclone







PostPosted: Fri Aug 25, 2006 7:33 am Reply with quote

While I have not found a fix for this. I did get my server to properly send out e-mails to all addresses using a SMTP Relay Server to bounce off of. So with e-mails going out I uninstalled CNB and went back to the original Your_Account Modules. All is working spiffy now.. got e-mails and security codes.. what more could a guy ask for!
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Aug 26, 2006 6:14 am Reply with quote

Glad you are at least up and running. I personally did not respond as I have never "touched" CNBYA before, although I am ever patiently waiting for the 5.0 release...

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Sat Aug 26, 2006 7:26 am Reply with quote

I noticed in your last post, you type Users.png and in the code its users.png?

Perhaps the code has it right, and I know your using the default, but cnbya offers so many benefits I thought perhaps you would like a fix.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
siliconeclone







PostPosted: Sat Aug 26, 2006 4:29 pm Reply with quote

Nah I just typed it wrong. It is users.png both in file and in the code. There is absolutely nothing wrong with the add-on. I have tried one in a complete package. I have tried the one off sourceforge.. It is something on my server, it just isn't taking those two particular .png files /shrug
 
gregexp







PostPosted: Sat Aug 26, 2006 4:40 pm Reply with quote

ok, Well the cnbya, uses gd functions to actually remake the image before its in the admin panel.

gd might be available on your server but there are constructs to gd,

Like support for jpeg, gif, png, and others.

load a phpinfo() script and check the available gd supports.

Make sure that png is listed.
 
siliconeclone







PostPosted: Sat Aug 26, 2006 6:58 pm Reply with quote

Yeah it says png is enabled... it baffles me.
 
gregexp







PostPosted: Sun Aug 27, 2006 1:23 am Reply with quote

hmm, well if you would like this to work, pm me tomorrow and Ill be sure to get to it and make it work.........grrr script "work I say".

Laughing
Just me havin a little humor.
 
siliconeclone







PostPosted: Fri Sep 15, 2006 7:59 pm Reply with quote

Seems to be a problem with PHP5, I came across some other forums with the same problem stated and everyone that is having the error is using PHP5.. so who knows
 
netgoodies
Regular
Regular



Joined: Sep 26, 2005
Posts: 63
Location: Oxfordshire. United Kingdom.

PostPosted: Wed Nov 29, 2006 6:36 pm Reply with quote

Hi

siliconeclone wrote:
Seems to be a problem with PHP5, I came across some other forums with the same problem stated and everyone that is having the error is using PHP5.. so who knows


Yes it is a problem you get with PHP 5.1.x

I know because my server has been changed and upgraded.

Find all instances of ImagePNG in your Your_Account index.php file
Code:
ImagePNG($image, '', 75);


and change to
Code:
ImagePNG($image, '', 9);


**Note
The original my not have 75 but 100 ie
Code:
ImagePNG($image, '', 100);


But in all cases change the last number to 9.

The reason for this is since PHP v5.1 the GD function imagepng() accepts compression argument. The compression argument must be from 0 to 9.

You can follow this problem and a few others relating to PHP5.1.x in my forums.

Regards

Martyn
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©