You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 61 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Cant add admin to 6.9 [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
delvec
Corporal
Corporal


Joined: Dec 03, 2003
Posts: 59


PostPosted: Mon Dec 22, 2003 8:45 pm Reply with quoteBack to top

Im trying to add a new admin and when I click submit(of course filling out the req fields) the page just goes blank and it doesn't get added. Granted, Im not the God user(Im super) and Gods on Vacation but wouldnt I at least get an error message if I cant do it- but I think I should- right?

Hopefully this is the right place to post this erro!
Help!
Find all posts by delvecView user's profileSend private message
MrFluffy
Captain
Captain


Joined: Aug 06, 2003
Posts: 411

Location: Berlin

PostPosted: Tue Dec 23, 2003 1:04 am Reply with quoteBack to top

Do you have direct access to the database?
If so, could you count the number of fields inside the _authors table?
If you have more than 22 fields inside, that's most probably the cause.

_________________
cu, MrFluffy

conrads-berlin.de
nuke-platinum.de
Find all posts by MrFluffyView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
delvec
Corporal
Corporal


Joined: Dec 03, 2003
Posts: 59


PostPosted: Tue Dec 23, 2003 4:42 am Reply with quoteBack to top

Sorry- I don't have direct access-
But if I did- would it prevent me from adding new admins or in general- because he did add me after all.
Find all posts by delvecView user's profileSend private message
MrFluffy
Captain
Captain


Joined: Aug 06, 2003
Posts: 411

Location: Berlin

PostPosted: Tue Dec 23, 2003 4:50 am Reply with quoteBack to top

I just know about this problem, 'blank page when trying to add an admin', in relation with some modules adding fields to the authors table (calendars). In this case the sql-strings in the related admin-file need to be adjusted.

_________________
cu, MrFluffy

conrads-berlin.de
nuke-platinum.de
Find all posts by MrFluffyView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
delvec
Corporal
Corporal


Joined: Dec 03, 2003
Posts: 59


PostPosted: Wed Dec 24, 2003 7:47 am Reply with quoteBack to top

Well I did add a calendar the other day but didnt know if the admin add worked before that- I assume it did since I was created.

So what would I need to change to fix this?
Find all posts by delvecView user's profileSend private message
MrFluffy
Captain
Captain


Joined: Aug 06, 2003
Posts: 411

Location: Berlin

PostPosted: Wed Dec 24, 2003 8:22 am Reply with quoteBack to top

The short way would be to remove the module, the long way to try and update the insert string. Either way you need to find the field that was added to the table (nuke)_authors.
You will find that information in the sql-file that came with the calendar or by comparing your _authors table with this list of default fields:

01 aid
02 name
03 url
04 email
05 pwd
06 counter
07 radminarticle
08 radmintopic
09 radminuser
10 radminsurvey
11 radminsection
12 radminlink
13 radminephem
14 radminfaq
15 radmindownload
16 radminreviews
17 radminnewsletter
18 radminforum
19 radmincontent
20 radminency
21 radminsuper
22 admlanguage

Simply removing the new field should enable you to add admins again (if this was the problem's cause).
If you want to fix the command that writes to this table, you will find it in admin/modules/authors.php, around line 400:

Code:
    $result = sql_query("insert into ".$prefix."_authors values ('$add_aid', '$add_name', '$add_url', '$add_email', '$add_pwd', '0', '$add_radminarticle', '$add_radmintopic', '$add_radminuser', '$add_radminsurvey', '$add_radminsection', '$add_radminlink', '$add_radminephem', '$add_radminfaq', '$add_radmindownload', '$add_radminreviews', '$add_radminnewsletter', '$add_radminforum', '$add_radmincontent', '$add_radminency', '$add_radminsuper', '$add_admlanguage')", $dbi);


You would need to insert the additional field as '$add_(field name)' in it's position according to the _authors table.

Good Luck! Wink

_________________
cu, MrFluffy

conrads-berlin.de
nuke-platinum.de
Find all posts by MrFluffyView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
delvec
Corporal
Corporal


Joined: Dec 03, 2003
Posts: 59


PostPosted: Sat Dec 27, 2003 10:02 pm Reply with quoteBack to top

Looks like some idiot missed adding an admin file in the corefiles folder-
And I can now add users

smacks self
Thanks for your help! Very Happy
Find all posts by delvecView user's profileSend private message
bihweb
Private
Private


Joined: May 26, 2003
Posts: 37


PostPosted: Sat Jan 10, 2004 6:59 pm Reply with quoteBack to top

All honor to Mister for great work but I just uninstall Protector. First of all all updates are for members only... Since this module came along with NUKE i expect it to be free of membership... Second it messed up my add admin thing and only way wat to remove it. And last one... It is way to many things to do in order to get it work. I use simple ban made for my site by Humpa. All I need is username or IP to ban someone... Ip gets worst on this AOL conections that keep changing them every second... And last reason... Table with stored IP's got REALLY REALLY BIG... I did deleted it from time to time but system is just keep adding IP's . The site is much faster now...
Find all posts by bihwebView user's profileSend private message
sting
Site Admin
Site Admin


Joined: Jul 24, 2003
Posts: 1985

Location: Apparently ALWAYS Online. . .

PostPosted: Thu Apr 01, 2004 7:54 pm Reply with quoteBack to top

Thanks Mr Fluffy - that one was annoying me recently.. turns out in some versions of 6.9 the field radminblocker throws off the query, as its not included as '$add_radminblocker' and needs to be added to the modules/authors code as listed above.

-sting

_________________
Is it paranoia if they are really out to get you?

-------------------------------------------------------
sting usually hangs out at nukehaven.net
Find all posts by stingView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
harm
Nuke Soldier
Nuke Soldier


Joined: Sep 20, 2003
Posts: 19

Location: Netherlands

PostPosted: Sun Apr 25, 2004 12:17 pm Reply with quoteBack to top

Hi MrFluffy,

Your are Super!!

I fixed my terrible problem!!
Great work!! Very Happy

Greetings,

Harm
Find all posts by harmView user's profileSend private messageVisit poster's website
PrimalFear
Sergeant
Sergeant


Joined: Mar 13, 2003
Posts: 129


PostPosted: Sun Jun 27, 2004 12:14 pm Reply with quoteBack to top

yip nice fix Fluffy.

oops Sorry ...
Mr.Fluffy
Find all posts by PrimalFearView user's profileSend private message
oradii
Nuke Cadet
Nuke Cadet


Joined: Jul 29, 2004
Posts: 1


PostPosted: Thu Jul 29, 2004 3:05 am Reply with quoteBack to top

Ok, I found the extra items in that table. But what happens if i remove them, is there not another table that is using them?

here is the name of the two extras.

radminblocker
radmingroup

I do not want to just remove them and have something else work. But I do want to be able to add admins and stuff.

Thanks for any help.

Bret
Find all posts by oradiiView user's profileSend private message
MrFluffy
Captain
Captain


Joined: Aug 06, 2003
Posts: 411

Location: Berlin

PostPosted: Thu Jul 29, 2004 3:25 am Reply with quoteBack to top

If you are using the two modules that added these fields, Protector that added radminblocker and NSN Groups that added radmingroup, you should use this instead of deleting the fields:

Quote:
If you want to fix the command that writes to this table, you will find it in admin/modules/authors.php, around line 400:


Code:
    $result = sql_query("insert into ".$prefix."_authors values ('$add_aid', '$add_name', '$add_url', '$add_email', '$add_pwd', '0', '$add_radminarticle', '$add_radmintopic', '$add_radminuser', '$add_radminsurvey', '$add_radminsection', '$add_radminlink', '$add_radminephem', '$add_radminfaq', '$add_radmindownload', '$add_radminreviews', '$add_radminnewsletter', '$add_radminforum', '$add_radmincontent', '$add_radminency', '$add_radminsuper', '$add_admlanguage')", $dbi);



At least in Protector you will find information on how to add the field to the query, in NSN Groups I'm not absolutely sure, but I think it only includes a premodded authors.php.

You have to keep exactly to the order of fields in the table, because the query only fills them from top to bottom, so each variable needs to fit in it's field exactly.

Out of the blue (this should be the default positions), I'd try:
Code:
values ('$add_aid', '$add_name', '$add_url', '$add_email', '$add_pwd', '0', '$add_radminarticle', '$add_radmintopic', '$add_radminuser', '$add_radminsurvey', '$add_radminsection', '$add_radminlink', '$add_radminephem', '$add_radminfaq', '$add_radmindownload', '$add_radminreviews', '$add_radminnewsletter', '$add_radminforum', '$add_radmincontent', '$add_radminency',  '$add_radmingroup', '$add_radminsuper', '$add_admlanguage', '$radminblocker')


Backup! No warranty Wink

_________________
cu, MrFluffy

conrads-berlin.de
nuke-platinum.de
Find all posts by MrFluffyView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
SubZero
Nuke Soldier
Nuke Soldier


Joined: Oct 27, 2004
Posts: 22


PostPosted: Wed Nov 03, 2004 6:17 am Reply with quoteBack to top

I got the same Problem with nuke 7.4 i was running it a while and today i tried to add a new author and nothing was there only a blank page. i got the god account.i saw this article here but i am also new to this php nuke stuff.Can't i just add another author in phpmyadmin ? Please Help
Find all posts by SubZeroView user's profileSend private message
SubZero
Nuke Soldier
Nuke Soldier


Joined: Oct 27, 2004
Posts: 22


PostPosted: Wed Nov 03, 2004 6:21 am Reply with quoteBack to top

Ops i just tried this i installed Admin Secure and Protector a few days ago now when i try to edit the author data from phpmyadmin than this appears -

* If field type is "enum" or "set", please enter the values using this format: 'a','b','c'...
If you ever need to put a backslash ("\") or a single quote ("'") amongst those values, backslashes it (for example '\\xyz' or 'a\'b').
** For default values, please enter just a single value, without backslash escaping or quotes, using this format: a

Dunno what to do.. Help Please
Find all posts by SubZeroView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.232 Seconds - 200 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::