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, 56 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 - Can not edit/delete stories [ ]
 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
thenme
Nuke Cadet
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6


PostPosted: Mon Jul 18, 2005 8:20 pm Reply with quoteBack to top

I can't edit or delete stories when logged in as the Admin. Its says
"You aren't authorized to touch this Article!
You can't edit and/or delete articles that you don't published"

phpnuke 7.7 patched

everything else seems to work. I'm not sure what I missed or messed up.
any help would be great.

P.S. sorry if this has been covered I looked for the answer but had no luck.
Thanks.
Find all posts by thenmeView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Tue Jul 19, 2005 5:58 am Reply with quoteBack to top

Are you using the God account?

_________________
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
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
thenme
Nuke Cadet
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6


PostPosted: Tue Jul 19, 2005 12:47 pm Reply with quoteBack to top

I belive so, But I am really new to this. So maybe not. If the God account is the one that I set up right after the phpnuke install then yes. If thats not it no. also if thats not it I don't know how to use it or where to set it up. Or if you could tell me how to check if I am or not that would help to.
Find all posts by thenmeView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Tue Jul 19, 2005 5:27 pm Reply with quoteBack to top

You need to use phpMyAdmin to check your 'authors' table, verify that your 'name' field is set to 'God'

_________________
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
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
thenme
Nuke Cadet
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6


PostPosted: Thu Jul 21, 2005 5:07 pm Reply with quoteBack to top

It seems that I have it right and I am using the god mode.
This is what it said phpmyadmin "nuke_authors"

SQL result

Host: mysql4.opentransfer.com
Database: thenme_phpnuke
Generation Time: Jul 21, 2005 at 09:02 PM
Generated by: phpMyAdmin 2.6.0-pl2 / MySQL 4.0.24-standard-log
SQL-query: SELECT * FROM `nuke_authors` LIMIT 0, 30;
Rows: 1

aid name url email
thenme God http://www.thenme.com webmaster@nmemx.com

Thanks.
Find all posts by thenmeView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Thu Jul 21, 2005 7:06 pm Reply with quoteBack to top

You may need to check superuser level as well
The field 'radminsuper' in that table should be set to 1

_________________
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
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
thenme
Nuke Cadet
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6


PostPosted: Wed Jul 27, 2005 9:23 pm Reply with quoteBack to top

Sorry I've been away from a computer for a couple days. The value in nuke_authors radminsuper is set to 1.
Find all posts by thenmeView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Thu Jul 28, 2005 8:28 am Reply with quoteBack to top

'radminsuper' should let you do this. I see no other checks in the code

Go check modules/News/admin/index.php
and see if you have the following checks

Code:

if (($radminarticle == 1) AND ($aaid == $aid) OR ($radminsuper == 1)) {

_________________
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
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
thenme
Nuke Cadet
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6


PostPosted: Thu Jul 28, 2005 6:41 pm Reply with quoteBack to top

This is the code in the index file. I'm not sure if its right because its not exactly what you wrote.

if (!defined('ADMIN_FILE')) {
die ("Access Denied");
}

global $prefix, $db, $admin_file;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT title, admins FROM ".$prefix."_modules WHERE title='News'"));
$row2 = $db->sql_fetchrow($db->sql_query("SELECT name, radminsuper FROM ".$prefix."_authors WHERE aid='$aid'"));
$admins = explode(",", $row['admins']);
$auth_user = 0;
for ($i=0; $i < sizeof($admins); $i++) {
if ($row2['name'] == "$admins[$i]" AND $row['admins'] != "") {
$auth_user = 1;
}
}

if ($row2['radminsuper'] == 1) {
$radminsuper = 1;
}

if ($row2['radminsuper'] == 1 || $auth_user == 1) {
$adveditor=1;[/size]

Thanks
Find all posts by thenmeView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Thu Jul 28, 2005 8:27 pm Reply with quoteBack to top

You'll want to look further down the code. If you cannot find that line exactly, then there is a problem

_________________
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
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
thenme
Nuke Cadet
Nuke Cadet


Joined: Jul 18, 2005
Posts: 6


PostPosted: Sat Jul 30, 2005 10:42 am Reply with quoteBack to top

So after reading the whole page. The line of code is there 5 times in diffent places. It is exactly the same.

thanks
Find all posts by thenmeView user's profileSend private messageVisit poster's website
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: 1.130 Seconds - 506 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::