Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0
Author Message
dark-dude
Worker
Worker



Joined: Jun 29, 2003
Posts: 146
Location: Oklahoma

PostPosted: Sat Jan 10, 2004 12:06 pm Reply with quote

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 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Jan 10, 2004 4:06 pm Reply with quote

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 
View user's profile Send private message
dark-dude







PostPosted: Sat Jan 10, 2004 4:50 pm Reply with quote

My host redid GD Library and hasn't recompiled php yet
 
dark-dude







PostPosted: Sun Jan 11, 2004 10:17 am Reply with quote

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







PostPosted: Sun Jan 11, 2004 10:50 am Reply with quote

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







PostPosted: Sun Jan 11, 2004 11:15 am Reply with quote

http://www.dark-dude.net/phpinfo.php also you can alalyze the page
 
dark-dude







PostPosted: Sun Jan 11, 2004 11:30 am Reply with quote

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 Razz
 
Raven







PostPosted: Sun Jan 11, 2004 3:21 pm Reply with quote

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.
Image
 
dark-dude







PostPosted: Sun Jan 11, 2004 4:56 pm Reply with quote

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







PostPosted: Sun Jan 11, 2004 5:21 pm Reply with quote

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







PostPosted: Sun Jan 11, 2004 5:41 pm Reply with quote

but what exactly would i alter?
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0

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 ©