| Author |
Message |
phpnuke-hosting
Support Mod


Joined: Oct 19, 2004
Posts: 1032
Location: UK
|
Posted:
Thu Sep 15, 2005 2:37 am |
  |
Hey
Ok Security graphic isnt displaying.
I have tried all the combinations I can think of.
/modules.php?name=Your_Account&gfx=gfx&random_num=
/index.php?gfx=gfx&random_num=
And none seem to work.
GD Library is active and the images are in their correct directories.
Any help would be greatly appreciated.
Running: PHP-Nuke 7.7 (patched)
Regards |
_________________ www.phpnuke-hosting.com
The Internets Foremost PHP-Nuke Web Host.
Click Here! |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12397
|
Posted:
Thu Sep 15, 2005 12:58 pm |
  |
|
     |
 |
phpnuke-hosting
Support Mod


Joined: Oct 19, 2004
Posts: 1032
Location: UK
|
Posted:
Fri Sep 16, 2005 3:17 am |
  |
Yeah Im running 7.8 there and thats working fine, although I had to modify the user info block to work with it.
No its a www.clanmfk.com that doesnt seem to like it.
Its enabled in config.php, the damn site just doesnt want to display it. |
_________________ www.phpnuke-hosting.com
The Internets Foremost PHP-Nuke Web Host.
Click Here! |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12397
|
Posted:
Fri Sep 16, 2005 3:22 pm |
  |
Seems http://www.clanmfk.com/?gfx=gfx&random_num=500429 isn't loading.
mainfile.php should have the following gfx code
| Code: |
case "gfx":
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);
$ThemeSel = get_theme();
if (file_exists("themes/".$ThemeSel."/images/code_bg.jpg")) {
$image = ImageCreateFromJPEG("themes/".$ThemeSel."/images/code_bg.jpg");
} else {
$image = ImageCreateFromJPEG("images/code_bg.jpg");
}
$text_color = ImageColorAllocate($image, 80, 80, 80);
Header("Content-type: image/jpeg");
ImageString ($image, 5, 12, 2, $code, $text_color);
ImageJPEG($image, '', 75);
ImageDestroy($image);
die();
break;
|
Do you have themes/YOURTHEME/images/code_bg.jpg or images/code_bg.jpg ? |
_________________ Helping those that help themselves
Read FIRST or DIE!
"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding |
|
     |
 |
phpnuke-hosting
Support Mod


Joined: Oct 19, 2004
Posts: 1032
Location: UK
|
Posted:
Sat Sep 17, 2005 6:32 am |
  |
Hi Evaders.
The mainfile does have that code and the code_bg.jpg is in images/code_bg.jpg.
Thanks for the help |
_________________ www.phpnuke-hosting.com
The Internets Foremost PHP-Nuke Web Host.
Click Here! |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12397
|
Posted:
Sat Sep 17, 2005 2:28 pm |
  |
Let's see if we can get a simple image to work there
Put this into a image.php and execute it on your server
| Code: |
<?
$image = ImageCreateFromJPEG("images/code_bg.jpg");
$text_color = ImageColorAllocate($image, 80, 80, 80);
Header("Content-type: image/jpeg");
ImageString ($image, 5, 12, 2, "12345", $text_color);
ImageJPEG($image, '', 75);
ImageDestroy($image);
die();
?>
|
see if an image is displayed. If not, then there's something wrong with the GD library probably. If it does work, then its something wrong in phpNuke. I've seen nothing in the Patched files for 7.7 that would affect this. |
_________________ Helping those that help themselves
Read FIRST or DIE!
"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding |
|
     |
 |
phpnuke-hosting
Support Mod


Joined: Oct 19, 2004
Posts: 1032
Location: UK
|
Posted:
Sun Sep 18, 2005 6:26 am |
  |
|
    |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12397
|
Posted:
Sun Sep 18, 2005 11:51 am |
  |
|
     |
 |
phpnuke-hosting
Support Mod


Joined: Oct 19, 2004
Posts: 1032
Location: UK
|
Posted:
Sun Sep 18, 2005 12:17 pm |
  |
|
    |
 |
Ginza
Private


Joined: Dec 27, 2004
Posts: 40
|
Posted:
Wed Sep 28, 2005 7:56 am |
  |
In my site http://zogam.com the login block doesnt have a security code. When we log in there, it takes us to login problem page. There the security code appear.When we put the code in , one can login only.
How will i make the security code appear? |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12397
|
Posted:
Wed Sep 28, 2005 8:59 am |
  |
|
     |
 |
|
|