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 6.8
Author Message
salsaGalaxy
Regular
Regular



Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Tue Mar 23, 2004 6:07 am Reply with quote

My security code image not showing up ....why? in php version 6.8 ...pls Help me....
Sorry for my language but i don't know english very well
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Mar 23, 2004 6:25 am Reply with quote

Was it working and then stopped?
 
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles



Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Tue Mar 23, 2004 6:26 am Reply with quote

In 6.8 file config.php you need to add this line $gfx_chk = 7;

$dbhost = "localhost";
$dbuname = "root";
$dbpass = "";
$dbname = "nuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9";
$gfx_chk = 7;

-------------------------------------------------------------------
These are some of the different ways to set the security 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)
# NOTE: If you aren't sure set this value to 0

_________________
Scott Johnson MIS Ubuntu/Linux 11.10 
View user's profile Send private message Visit poster's website
salsaGalaxy







PostPosted: Tue Mar 23, 2004 6:43 am Reply with quote

Thanxs Nukeum66 but doesn't work!Sad(
 
Nukeum66







PostPosted: Tue Mar 23, 2004 6:52 am Reply with quote

Save this code as gdtest.php and upload to your root directory then call it from your browser [ Only registered users can see links on this board! Get registered or login! ]

Code:
<?php

        header ("Content-type: image/png");
        $img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
        $back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
        $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
        ImageString ($img_handle, 31, 5, 5,  "GD Is Enabled! What Now?", $txt_color);
        ImagePng ($img_handle);
    ?>
 
Nukeum66







PostPosted: Tue Mar 23, 2004 6:54 am Reply with quote

Tell me what you see or read!
 
salsaGalaxy







PostPosted: Tue Mar 23, 2004 7:00 am Reply with quote

ok and i see and read this:

GD is enable! What now?
 
Nukeum66







PostPosted: Tue Mar 23, 2004 7:07 am Reply with quote

Well that's good! Now look in images/admin/ and modules/Your_Account/images and see if this image file is there code_bg
 
Nukeum66







PostPosted: Tue Mar 23, 2004 7:29 am Reply with quote

Well I got to go maybe Raven can take it from here ... Wink
 
salsaGalaxy







PostPosted: Tue Mar 23, 2004 7:35 am Reply with quote

sorry for late .....phone call.....my girlfriend Evil or Very Mad Very Happy

it's ok! both image files exist .....code_bg.jpg
and now?what's problem? i think to reinstall all site, but ....... i try find another solution with your help !

sorry again for my language, but i don't know english very well
thanks for help .....i am looking forward to receiving your answers... maybe we manage solve this bug !
 
salsaGalaxy







PostPosted: Tue Mar 23, 2004 8:02 am Reply with quote

Raven wrote:
Was it working and then stopped?


yesterday working fine ....but today no
 
Raven







PostPosted: Tue Mar 23, 2004 8:10 am Reply with quote

This would indicate that you have made a change. Did you modify your config.php file or any of your language files?
 
salsaGalaxy







PostPosted: Tue Mar 23, 2004 8:21 am Reply with quote

I changed just your_account because i want to disable webmail option for members ......just it ....but i don't know what's happen!

thanks in advanced
 
Raven







PostPosted: Tue Mar 23, 2004 8:27 am Reply with quote

Then restore your_account from your backup.
 
salsaGalaxy







PostPosted: Tue Mar 23, 2004 8:36 am Reply with quote

How? i'm in smog! i'm beginner in phpnuke ....maybe is too much for me ...but this i want and need

thanks
 
Raven







PostPosted: Tue Mar 23, 2004 8:48 am Reply with quote

Whatever the file was that you modified (probably index.php in your_account) replace it with your original one.
 
salsaGalaxy







PostPosted: Tue Mar 23, 2004 9:03 am Reply with quote

doesn't work! Sad ......i think i'm so stupid Twisted Evil .....and maybe i'll reinstalled.....maybe is the best solution.
 
Raven







PostPosted: Tue Mar 23, 2004 9:27 am Reply with quote

Make sure that there are no extra lines after the closing ?> tag in your_account/index.php and config.php
 
salsaGalaxy







PostPosted: Tue Mar 23, 2004 9:48 am Reply with quote

everything it's ok...but does't work ....interesting is this command $gfx_chk = 0; not functionally but i don't know why!
why you delete previos reply from me?
 
Nukeum66







PostPosted: Tue Mar 23, 2004 7:58 pm Reply with quote

$gfx_chk = 0; is turning the security code OFF

$gfx_chk = 7; is turning the Security code ON (everywhere)
 
salsaGalaxy







PostPosted: Wed Mar 24, 2004 4:53 am Reply with quote

I solved the problem! How?! I reinstalled PhpNuke several times to do it! So, I actually installed PhpNuke and created the "Super User" account, then modified in Your_account/navbar.php what I needed, and then other normal users can subscribe! Attention: DO NOT modify Your_account/navbar.php after having a registered member other than the Super User, because the Security Code image will vanish...
What is really strange is the fact that the function $gfx.chk from config.php is not working at all!!!
this is error :
Fatal error: Call to undefined function: message_die() in /home/salsa/public_html/db/db.php on line 88

Thanks Raven and Nukeum66
 
Raven







PostPosted: Wed Mar 24, 2004 5:26 am Reply with quote

salsaGalaxy wrote:
I solved the problem! How?! I reinstalled PhpNuke several times to do it! So, I actually installed PhpNuke and created the "Super User" account, then modified in Your_account/navbar.php what I needed, and then other normal users can subscribe! Attention: DO NOT modify Your_account/navbar.php after having a registered member other than the Super User, because the Security Code image will vanish...
What is really strange is the fact that the function $gfx.chk from config.php is not working at all!!!
this is error :
Fatal error: Call to undefined function: message_die() in /home/salsa/public_html/db/db.php on line 88

Thanks Raven and Nukeum66
navbar can be modified at any time. Chances are you had a trailing space and/or blank lines after the closing ?>

The message_die issue means you either have config.php located outside of the root nuke folder and/or your MySQL connection settings are incorrect. 99% of the time it is the latter.
 
salsaGalaxy







PostPosted: Wed Mar 24, 2004 6:50 am Reply with quote

ok i stand .......i reinstalled PhpNuke again and now works with one exception:
i installed your block ..Site Info and i modified config.php with $gfx_chk = 0
and in block site info block do not show security code, but everywhere in site this code is show.
check this out : [ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ]

maybe i'm stupid ...but this is situation now.!
 
Nukeum66







PostPosted: Wed Mar 24, 2004 7:16 am Reply with quote

If you want the code to show, you need to set $gfx_chk = 7;

Quote:
$gfx_chk = 7; is turning the Security code ON (everywhere)
$gfx_chk = 0; is turning the security code OFF
 
Nukeum66







PostPosted: Wed Mar 24, 2004 7:25 am Reply with quote

Quote:

$gfx_chk =0; (No check)
$gfx_chk =1; (Administrators login only)
$gfx_chk =2; (Users login only)
$gfx_chk =3; (New users registration only)
$gfx_chk =4; (Both, users login and new users registration only)
$gfx_chk =5; (Administrators and users login only)
$gfx_chk =6; (Administrators and new users registration only)
$gfx_chk =7; (Everywhere on all login options (Admins and Users)
 
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 6.8

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 ©