Author |
Message |
dark-dude
Worker


Joined: Jun 29, 2003
Posts: 146
Location: Oklahoma
|
Posted:
Sat Jan 10, 2004 12:06 pm |
|
Raven I downloaded your 7.0 of phpnuke and when i get it all set up...i don't have the graphics under passwords..is this something you did away with? or am i missing something here. It was werking before I wiped my page and reloaded with this one. |
_________________ DaRk-DuDe |
|
 |
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Jan 10, 2004 4:06 pm |
|
The 7.0 from here is the same one from the author. Check your config.php file for blanks or lines after the closing ?> tag. It's probably your editor adding lines. |
Last edited by Raven on Sat Jan 10, 2004 11:02 pm; edited 1 time in total |
|
|
 |
dark-dude

|
Posted:
Sat Jan 10, 2004 4:50 pm |
|
My host redid GD Library and hasn't recompiled php yet |
|
|
|
 |
dark-dude

|
Posted:
Sun Jan 11, 2004 10:17 am |
|
ok GD was recompiled and now the thing is there where an image should be...but no image and no number so I can't sign in....and the little red x is there in its place...and thats on both my pages |
|
|
|
 |
Raven

|
Posted:
Sun Jan 11, 2004 10:50 am |
|
The red x [almost always] means either the image is not physically where it should be or you have blank line(s) after the closing ?> tag in config.php and/or your language file or GD was not compiled with jpeg support enabled. Can you post a link to phpinfo? |
|
|
|
 |
dark-dude

|
Posted:
Sun Jan 11, 2004 11:15 am |
|
|
|
 |
dark-dude

|
Posted:
Sun Jan 11, 2004 11:30 am |
|
hmmm he don't have JPG support :/ enabled....I will have to get him to recompile...btw whats your price and space for webhosting? LOL mine is due and I might be changin  |
|
|
|
 |
Raven

|
Posted:
Sun Jan 11, 2004 3:21 pm |
|
If he has png support enabled you can convert and save the graphic as a .png and then with these changes the .png will work. To use a png, replace the function gfx in the admin.php with this:Code:function gfx($random_num) {
global $prefix, $db;
require("config.php");
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);
$image = imagecreatefrompng("images/admin/code_bg.png");
$text_color = ImageColorAllocate($image, 80, 80, 80);
Header("Content-type: image/png");
ImageString ($image, 5, 12, 2, $code, $text_color);
Imagepng($image, '', 75);
ImageDestroy($image);
die();
}
|
And, replace the function gfx in the modules/Your_Account/index.php with this:Code:function gfx($random_num) {
global $prefix, $db, $module_name;;
require("config.php");
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);
$image = imagecreatefrompng("modules/$module_name/images/code_bg.png");
$text_color = ImageColorAllocate($image, 80, 80, 80);
Header("Content-type: image/png");
ImageString ($image, 5, 12, 2, $code, $text_color);
Imagepng($image, '', 75);
ImageDestroy($image);
die();
}
|
Upload the code_bg.png to the images/admin folder, and also the modules/Your_Account/images folder.
 |
|
|
|
 |
dark-dude

|
Posted:
Sun Jan 11, 2004 4:56 pm |
|
OK kewl...ok one more question.....i have noticed on several sites peoples code numbers are longer...or a combination of letters and numbers....where does the code get that from? mine has like six numbers and thats it |
|
|
|
 |
Raven

|
Posted:
Sun Jan 11, 2004 5:21 pm |
|
There are a couple of pieces of code that have to be changed to alter the length and convert it to numbers and letters. The code that would have to be altered is in Your_Account/index.php and admin.php. |
|
|
|
 |
dark-dude

|
Posted:
Sun Jan 11, 2004 5:41 pm |
|
but what exactly would i alter? |
|
|
|
 |
|