Author |
Message |
siliconeclone
New Member


Joined: Aug 21, 2006
Posts: 10
|
Posted:
Thu Aug 24, 2006 9:40 pm |
|
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. |
|
|
|
 |
siliconeclone

|
Posted:
Fri Aug 25, 2006 7:33 am |
|
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
|
Posted:
Sat Aug 26, 2006 6:14 am |
|
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... |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
gregexp
The Mouse Is Extension Of Arm

Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Sat Aug 26, 2006 7:26 am |
|
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!! |
|
 |
 |
siliconeclone

|
Posted:
Sat Aug 26, 2006 4:29 pm |
|
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

|
Posted:
Sat Aug 26, 2006 4:40 pm |
|
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

|
Posted:
Sat Aug 26, 2006 6:58 pm |
|
Yeah it says png is enabled... it baffles me. |
|
|
|
 |
gregexp

|
Posted:
Sun Aug 27, 2006 1:23 am |
|
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".
Just me havin a little humor. |
|
|
|
 |
siliconeclone

|
Posted:
Fri Sep 15, 2006 7:59 pm |
|
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


Joined: Sep 26, 2005
Posts: 63
Location: Oxfordshire. United Kingdom.
|
Posted:
Wed Nov 29, 2006 6:36 pm |
|
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 Only registered users can see links on this board! Get registered or login!
Regards
Martyn |
|
|
|
 |
|