PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
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 Back to top

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.
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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
dark-dude
Worker
Worker


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

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

My host redid GD Library and hasn't recompiled php yet
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
dark-dude
Worker
Worker


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

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

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
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: 16987
Location: Kansas

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

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?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
dark-dude
Worker
Worker


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

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

Only registered users can see links on this board!
Get registered or login to the forums!
also you can alalyze the page
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
dark-dude
Worker
Worker


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

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

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
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: 16987
Location: Kansas

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

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
dark-dude
Worker
Worker


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

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

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
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: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
dark-dude
Worker
Worker


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

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

but what exactly would i alter?
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum