Yeah, absolutely simple, but it doesn't work!!! at least not in my site. I have changed everything as you say, then the security code dissappears, but when I try to create a new user I get always the error: "Both passwords are different. They need to be identical"
I had the same problem (and same result) as I changed the code for the gfx_chek. You can read more here: http://www.nukecops.com/postp61928.html#61928
The only difference is that with this new method it doesn't work neither when I don't type any password
I think, everything began als I uploaded the BetaNC but I'm not sure cause I noticed the problem later. Rainbow Brite!
Well, has anyone a solution?
DuamuteF Nuke Cadet
Joined: Nov 28, 2003
Posts: 1
Posted:
Fri Nov 28, 2003 12:40 pm
bigdaddyebk wrote this.
Thought you guys would find it helpfull.
It worked perfectly for me.
Quote:
The easier way to remove the security code would be to open the "config.php" file in a text editor, I prefer 'vi' editor but use whatever text editor you know(notepad, wordpad, pico, emacs, etc.).
You should see somthing similar to this:
Code:
######################################################################
# PHP-NUKE: Advanced Content Management System
# ============================================
#
# Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)
# http://phpnuke.org
#
# This module is to configure the main options for your site
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
######################################################################
######################################################################
# Database & System Config
#
# dbhost: SQL Database Hostname
# dbuname: SQL Username
# dbpass: SQL Password
# dbname: SQL Database Name
# $prefix: Your Database table's prefix
# $user_prefix: Your Users' Database table's prefix (To share it)
# $dbtype: Your Database Server type. Supported servers are:
# MySQL, mysql4, postgres, mssql, oracle, msaccess,
# db2 and mssql-odbc
# Be sure to write it exactly as above, case SeNsItIvE!
# $sitekey: Security Key. CHANGE it to whatever you want, as long
# as you want. Just don't use quotes.
# $gfx_chk: Set the graphic security code on every login screen,
# You need to have GD extension installed:
# 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
######################################################################
For the line where it says Code:
$gfx_chk = 7;
change the number "7" to "0"(that's zero, not 'O'). Then save the changes. This will remove the security code everywhere on your Nuke site.
I hope that helps you!!
stiffler Nuke Cadet
Joined: Dec 21, 2003
Posts: 4
Posted:
Sun Dec 21, 2003 6:19 pm
Hi there I am just looking to see how to disable the security code....and I came along this forum but the only thing is when I go into my config.php I dont have $gfx_chk = 7; anywhere.....I am running 6.9....so if you can help me that would be great
Stiff
Purus Private
Joined: Dec 21, 2003
Posts: 40
Posted:
Sun Dec 28, 2003 11:34 am
You guys, I don't know why you are bothering altering all that code when Nuke has a very specific way to change the security code settings. DuamuteF listed it above. All you have to do is change that number 7 to the number that corresponds best to suit your needs.
Code:
# $gfx_chk: Set the graphic security code on every login screen,
# You need to have GD extension installed:
# 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
Above is the explanation that you should find in your config.php. There is an explanation for all parts of the database configuration. This $gjx_chk is part of your database configuration that you had to do to set up Nuke. It is the last variable in the list. Stiffler I don't know how it is possible you do not have this. Iam also running 6.9, and it is there in mine. Make sure you are looking in your config.php and then do a search for "$gfx_chk" without the quotes. You should find two instances of it. First an explanation, and second the real thing. Yours is mostly like set at 7 as that is the default unless you changed it during setup.
3.9.8.1. How to bypass the security code
Another approach could be to bypass the security code altogether. This is probably the only option you have (unless you are willing to display it as plain text - see the links at the end of this section for this), if your ISP refuses to load the GD library: without GD, no security code image - without security code image, you cannot enter anything in the security code field, and you get an "Access denied" error.
Here is how you disable the security code:
Find the 7 occurences of:
extension_loaded("gd")
For the Admin login, there is one in the admin.php, and one in the auth.php. For Users, there will be five in the modules/Your_Account/index.php (and there might be one in the block-Login.php, and/or one in the block-User_Info.php, if they are modified). Replace all of the occurances with this:
$user == "whatever"
Follow the above instruction exactly.
Be careful not to introduce syntax errors!
Changes like the last one (bypassing the security code) require extreme caution on your part. All too big is the risk of introducing new errors, while trying to correct old ones! If you get an error, it does't mean the solution ceased to work for you. Check for syntax errors that you might have introduced with your editing. Most probably, you will find something. See syntax error, security images removed for a real world example.
If you have one of the later versions of PHP-Nuke, you can try a trick: edit the config.php file and if you find a line there, like this one:
$gfx_chk = 7;
and change it to (see How to disable the security code):
$gfx_chk = 0;
glebe Nuke Cadet
Joined: Apr 27, 2004
Posts: 2
Posted:
Tue Apr 27, 2004 11:41 am
I made it so that the security code is not needed for user login, but I can't get the picture to stop appearing (glebeci.ca)
gunner Sergeant
Joined: Jul 07, 2003
Posts: 140
Posted:
Tue Apr 27, 2004 12:09 pm
Perhaps you should get a different login block...I prefer the one at www.pitcher.no
I think you need a login block circa nuke 7.0+ LOL
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