13:59 Mon Sep  3, 2007
Cheap Hummer!

12:18 Tue Jul  4, 2006
Hummer Camp After

12:15 Tue Jul  4, 2006
Hummer Camp

Help Me Humpa
PHP and MMS Server Help
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


admin page
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Humpa DVD Script
View previous topic :: View next topic  
Author Message
nate
Guest





PostPosted: Tue Dec 27, 2005 10:39 pm    Post subject: admin page Reply with quote

I used humpadvd on my website in the past and really liked it, now I want to incorporate it into phpnuke. I downloaded your module and installed it as described in the readme file. The error i get is "Access Denied" when trying to access the administration page. It is the last access denied in the DVD.php file

I have tried to troubleshoot it and can't get any further. I edited the links.DVD.php file from

adminmenu("admin.php?op=edit_dvds$humpadvd_module_name", "DVD", "dvd.gif");

to

adminmenu("admin.php?op=edit_dvds$humpadvd_module_name", "DVD", "../dvd.gif");

so that the icon shows up in the administration panel.

Another edit that I made that didn't seem to make any difference was change all the OpenTable and CloseTable functions to OpenTabledvd and CloseTabledvd (as you defined in a file) im not sure if you designed it this way or not. Maybe you want it to call the original OpenTable and CloseTable?

Anyway my website is mckervey.com and I cannot get the administration panel to work. Any ideas? Thanks!
Back to top
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Tue Dec 27, 2005 11:44 pm    Post subject: Reply with quote

I don't think I've tried it with anything newer than phpnuke 6.5 or maybe 7.0
What version of phpnuke are you using? I think they've changed a lot of things around in the admin section. Sad
Back to top
View user's profile Send private message
nate
Guest





PostPosted: Wed Dec 28, 2005 12:17 pm    Post subject: nuke version Reply with quote

I am using version 7.8

I am actually using apache2triad with php-nuke installed on top.
Back to top
nate015



Joined: 30 Dec 2005
Posts: 14

PostPosted: Fri Dec 30, 2005 3:44 pm    Post subject: Reply with quote

Any suggestions?
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Fri Dec 30, 2005 6:42 pm    Post subject: Reply with quote

I'm not really sure.
But on line 6, change this:
Code:
$result = sql_query("select radmincontent, radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radmincontent, $radminsuper) = sql_fetch_row($result, $dbi);
if (($radmincontent==1) OR ($radminsuper==1)) {

To this:
Code:
global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper, radmincontent FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1 OR $row['radmincontent'] == 1) {
Back to top
View user's profile Send private message
nate015



Joined: 30 Dec 2005
Posts: 14

PostPosted: Fri Dec 30, 2005 11:31 pm    Post subject: Reply with quote

I replaced
Code:

$result = sql_query("select radmincontent, radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radmincontent, $radminsuper) = sql_fetch_row($result, $dbi);
if (($radmincontent==1) OR ($radminsuper==1)) {

with
Code:

global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper, radmincontent FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1 OR $row['radmincontent'] == 1) {


no luck Sad

I do not have a good understanding of your code, but I will try to read it some more. Please let me know if you think of anything else.
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Fri Dec 30, 2005 11:34 pm    Post subject: Reply with quote

nate015 wrote:
I replaced
Code:

$result = sql_query("select radmincontent, radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radmincontent, $radminsuper) = sql_fetch_row($result, $dbi);
if (($radmincontent==1) OR ($radminsuper==1)) {

with
Code:

global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper, radmincontent FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1 OR $row['radmincontent'] == 1) {


no luck Sad

I do not have a good understanding of your code, but I will try to read it some more. Please let me know if you think of anything else.

I simply took the code out of an admin module from a copy of phpnuke 7.5 I had already. Is the code different in a 7.8 admin module file? Because if you are seeing the "access denied" from the end of the admin module DVD.php, then that should be an extremely easy error to fix. That code is common in all the admin module files.
Back to top
View user's profile Send private message
nate015



Joined: 30 Dec 2005
Posts: 14

PostPosted: Fri Dec 30, 2005 11:36 pm    Post subject: Reply with quote

If you are interested in solving this problem I can give you a temporary VNC session. I am willing to give some form of compensation if you have any suggestions.
Back to top
View user's profile Send private message
nate015



Joined: 30 Dec 2005
Posts: 14

PostPosted: Fri Dec 30, 2005 11:38 pm    Post subject: Reply with quote

Here is the code for the other admin modules for my version of phpnuke (7.Cool.

Code:
global $prefix, $db, $admin_file;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1) {


It works!!!

Thank you very much!
Back to top
View user's profile Send private message
nate015



Joined: 30 Dec 2005
Posts: 14

PostPosted: Fri Dec 30, 2005 11:43 pm    Post subject: Reply with quote

The only other issue I have is the dev_token.

I believe amazon stopped using the dev_token and only uses the assoc_id.

When I used the other humpaDVD I think I set my assoc_id to both the dev_token and assoc_id variable in humpadvdconfig.php ?

I lost my old assoc_id and signed up for a new one but it isn't working (probably because I need something else in dev_token?).

I wouldn't mind using your token if you want, that way if anyone buys anything from my site you will be rewarded. I think that you deserve something for your development.
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Fri Dec 30, 2005 11:44 pm    Post subject: Reply with quote

Nice Exclamation
... though I just finished downloading and unpacking 7.8. Damn that thing takes forever to unpack! Rolling Eyes Confused Shocked
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Sat Dec 31, 2005 12:10 am    Post subject: Reply with quote

nate015 wrote:
The only other issue I have is the dev_token.

I believe amazon stopped using the dev_token and only uses the assoc_id.

When I used the other humpaDVD I think I set my assoc_id to both the dev_token and assoc_id variable in humpadvdconfig.php ?

I lost my old assoc_id and signed up for a new one but it isn't working (probably because I need something else in dev_token?).

I wouldn't mind using your token if you want, that way if anyone buys anything from my site you will be rewarded. I think that you deserve something for your development.

http://www.amazon.com/gp/browse.html/ref=sc_fe_c_4_3435371_4/002-6910297-2294414?%5Fencoding=UTF8&node=12920391&no=3435371&me=A36L942TSJ2AJA
Try signing up for Web Services for associates and use that number for the dev_token.

They seem to have changed things - but it is still working for me. I hadn't added a dvd in awhile, but I just tried and it works.
Back to top
View user's profile Send private message
nate015



Joined: 30 Dec 2005
Posts: 14

PostPosted: Sat Dec 31, 2005 12:19 am    Post subject: Reply with quote

Sorry, not sure if you got my pm. I have an assoc id. When I add a dvd http://mckervey.com/humpa.jpg

it takes me to the following screen

edit:
http://mckervey.com/helpmehumpa.jpg

I thought that was because of my assoc id but maybe i'm wrong.
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Sat Dec 31, 2005 12:26 am    Post subject: Reply with quote

That link I just pasted in is not for an associates id.
Use your associates id to get a Amazon Web Services Subscription ID
Back to top
View user's profile Send private message
nate015



Joined: 30 Dec 2005
Posts: 14

PostPosted: Sat Dec 31, 2005 12:35 am    Post subject: Reply with quote

I found my subscription ID, Access Key ID, and Secret Access Key from my web services account. The subscription ID listed does not seem to work for me.

My subscription ID is 1J98WQ39NA3H19VQ2MG2

can you take a moment to test it in your working humpadvdconfig.php file? This will allow me to see if my problem lies elsewhere.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Humpa DVD Script All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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