 |
|
| View previous topic :: View next topic |
| Author |
Message |
findit Guest
|
Posted: Thu May 01, 2003 3:06 pm Post subject: |
|
|
All users having image problem
Hi All
Update on this problem....Flexi installed my version of the nuke 6.5 for me after i got fed-up with the security image not showing.....
Still did not show in any format ext gif, png or jpg
After formating my computer, and doing a clean install...all the images in any format now displaed on all of the sites that i visited...before the format, none of these sites would display the image...this has led me to believe that it is not a problem with the program code...but the browser itself.......have tried it a couple of times....once i install a fresh IE 5.5 all the images show in all the above formats without any problems.
Have been looking into this problem...have nailed it down to the cacheing or cookies in the browser you are using.
Any more ideas (as mine is sorted now)
Richard
|
|
| Back to top |
|
 |
|
|
 |
Darius Guest
|
Posted: Wed May 14, 2003 9:52 am Post subject: |
|
|
| Quote: | On 2003-04-30 11:10, Humpa wrote:
In the Your_Account/index.php in the function main is this: | Code: | | <img src='modules.php?name=$module_name&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> | Change it to this: | Code: | | <img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> | That's it! |
You will have to change this in the new_user function as well.
(Don't forget to read the rest of this procedure in Humpa's description above!!!)
[ This Message was edited by: Darius on 2003-05-14 12:53 ] |
|
| Back to top |
|
 |
Humpa President

Joined: 23 Apr 2002 Posts: 3429
|
Posted: Wed May 14, 2003 10:03 am Post subject: |
|
|
I have posted a lot of info and some "hacks" to try and get the security image to work.
I believe that if you have JPEG Support enabled (as per the gd_info), and you get a red X for the security image, then you edited the config.php (and/or other php files) with Notepad/Wordpad
... but, here is a consolidation of my thoughts on the security image:
http://www.humpa.com/help (number 3) |
|
| Back to top |
|
 |
Jay2k Private

Joined: 18 Jul 2004 Posts: 1
|
Posted: Sun Jul 18, 2004 5:50 pm Post subject: |
|
|
Hi all,
I found that the config.php file bundled in 7.2 has a carriage return after the final ?> in the file, which when removed fixed my security image problems instantly.
Check it out, could be your problem too - none of the gfx function or file suggestions worked, but this did.
Jay2k. |
|
| Back to top |
|
 |
ShotoKan Chief Warrant Officer


Joined: 19 May 2004 Posts: 137
|
Posted: Tue Aug 17, 2004 7:06 pm Post subject: |
|
|
Hi Humpa
Sorry if I did not get something right. But i just upgraded from 7.1 to 7.3 and my problem is not a broken image. I don't see any image at all.
My GD version says "GD Version bundled (2.0.15 compatible)" on analyze.php.
You can see my page here http://www.csbkb.com/admin.php.
Do you think i would solve my problem with one of your previous codes on this thread? I just don't want start changling a lot of things when i am not sure what i am doing. I also don't know exactly if my Gd has "jpg" available or not because i don't know much about this.
Thanks in adance for your help on this.
esossai |
|
| Back to top |
|
 |
chatserv President


Joined: 19 Aug 2001 Posts: 3258
|
Posted: Tue Aug 17, 2004 8:23 pm Post subject: |
|
|
You will find the following setting in config.php:
With it you can select where the security image will appear, by default it is set to 0 which means no image will be used, change it to the value you want.
| Code: | 0: No check
1: Administrators login only
2: Users login only
3: New users registration only
4: Both, users login and new users registration only
5: Administrators and users login only
6: Administrators and new users registration only
7: Everywhere on all login options (Admins and Users) |
|
|
| Back to top |
|
 |
ShotoKan Chief Warrant Officer


Joined: 19 May 2004 Posts: 137
|
Posted: Wed Aug 18, 2004 12:25 pm Post subject: |
|
|
chatserv
Thanks for your tip on the security code. Now would be possible to help on onother issue that is even more important at this point?
I am able to login on my website as admin without any problem and execute any admin function but when a normal player that are really registered (i checked personlayy using phpmyadmin into mysql) they login they got the screen below:
| Quote: | [img]
Personal Information: esossai
Actual User Status: Offline
Last 10 News Submissions sent by esossai: [/img] |
The problem starts when they try to access the download modules for instance, they get a message "restricted area" as they were not registered.
To solve it temporarily I put downloads to "all visitors" but i really want this module only to registered users and not to everyone.
I even created a regular user to myself and it happen to me as well.
do you think you can help me? |
|
| Back to top |
|
 |
chatserv President


Joined: 19 Aug 2001 Posts: 3258
|
|
| Back to top |
|
 |
ShotoKan Chief Warrant Officer


Joined: 19 May 2004 Posts: 137
|
Posted: Wed Aug 18, 2004 1:45 pm Post subject: |
|
|
you're the best.
thanks |
|
| Back to top |
|
 |
mevzubahis Private

Joined: 02 Dec 2004 Posts: 1
|
Posted: Thu Dec 02, 2004 2:28 am Post subject: |
|
|
| Humpa wrote: | ok ... I did some testing, and I can get the security image to fail.
I think this will fix the broken security image for anyone who has the GD extension loaded (with jpeg support), but still see the broken image.
Make a new file, name it gfx.php, and use this code:
| Code: | <?php
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 = ImageCreateFromJPEG("images/admin/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);
?> |
Upload it to your phpnuke directory (with the config.php, mainfile.php, etc).
Now, you just need to edit the img tags for the security image.
By default, there is just the one in the admin.php and in the modules/Your_Account/index.php (if you have modified Login and/or User_Info blocks, do the same thing).
In the admin.php in the function login, the img tag is this:
| Code: | | <img src='admin.php?op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> |
Change to:
| Code: | | <img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> |
In the Your_Account/index.php in the function main is this:
| Code: | | <img src='modules.php?name=$module_name&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> |
Change it to this:
| Code: | | <img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> |
That's it!
<font size=-1>[ This Message was edited by: Humpa on 2003-04-30 11:12 ]</font> |
This works for admin login and your account login.
But the problem continiues on home page in the login block!!
So in the blocks/login.php file I found this
| Code: | | <img src='modules.php?name=Your_Account&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> |
and changed it with the same code:
| Code: | | <img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> |
So home page login block also works. |
|
| Back to top |
|
 |
fishoonet Private

Joined: 18 Jul 2006 Posts: 3
|
Posted: Tue Jul 18, 2006 6:35 pm Post subject: Security Code not working in 7.9 |
|
|
| I too am having the same problem. However, the fix you mention doesn't work on 7.9! The code is completely different, so how do I implement the fix? |
|
| Back to top |
|
 |
darklord Staff Sergeant

Joined: 16 May 2006 Posts: 37
|
Posted: Tue Jul 18, 2006 8:35 pm Post subject: |
|
|
That code actually forces it to look elsewhere and not in the nuke.
Heres the edits to make to get this file to work properly with 7.9
admin.php
<img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>
An the same for the your account. It just looks different, Its not really. |
|
| Back to top |
|
 |
emma_leigh Private

Joined: 29 Jun 2007 Posts: 4
|
Posted: Fri Jun 29, 2007 12:19 am Post subject: |
|
|
| Humpa wrote: | ok ... I did some testing, and I can get the security image to fail.
I think this will fix the broken security image for anyone who has the GD extension loaded (with jpeg support), but still see the broken image.
Make a new file, name it gfx.php, and use this code:
| Code: | <?php
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 = ImageCreateFromJPEG("images/admin/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);
?> |
Upload it to your phpnuke directory (with the config.php, mainfile.php, etc).
Now, you just need to edit the img tags for the security image.
By default, there is just the one in the admin.php and in the modules/Your_Account/index.php (if you have modified Login and/or User_Info blocks, do the same thing).
In the admin.php in the function login, the img tag is this:
| Code: | | <img src='admin.php?op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> |
Change to:
| Code: | | <img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> |
In the Your_Account/index.php in the function main is this:
| Code: | | <img src='modules.php?name=$module_name&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> |
Change it to this:
| Code: | | <img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'> |
That's it!
<font size=-1>[ This Message was edited by: Humpa on 2003-04-30 11:12 ]</font> |
I followed this exactly and still my security image doesnt show, what can I do. I have never asked for help before because I have always found the answer but I have looked through all the posts on this topic and nothing seems to work, but I really want the security image to show, any ideas?? You can take a look at www.puremadonna.com |
|
| Back to top |
|
 |
aksakhirn Private

Joined: 06 Nov 2007 Posts: 1
|
Posted: Tue Nov 06, 2007 7:21 am Post subject: |
|
|
Hi Humpa !!
Well always the same thing : troubles with security image !
I'd like to tell you first that i've tried all the solutions described in the forum but nothing happen.
For me the problem is a little bit different : the security image is working fine with something like 99% of the skins i've tried.
But it didn't work with the only one i'd like to use !!
And by searching a solution i finally saw that... it didn't work with "analyze.php" !!
The bg image is ok, everything is ok in analyze.php but the security image never appear and there is just the red cross !! :'(
Hope you will be able to help me !!!
Thx a lot in advance,
Huges from france !! |
|
| Back to top |
|
 |
|
|
 |
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|