| View previous topic :: View next topic |
| Author |
Message |
nate Guest
|
Posted: Tue Dec 27, 2005 10:39 pm Post subject: admin page |
|
|
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
|
Posted: Tue Dec 27, 2005 11:44 pm Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
nate Guest
|
Posted: Wed Dec 28, 2005 12:17 pm Post subject: nuke version |
|
|
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
|
Posted: Fri Dec 30, 2005 3:44 pm Post subject: |
|
|
| Any suggestions? |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Fri Dec 30, 2005 6:42 pm Post subject: |
|
|
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 |
|
 |
nate015
Joined: 30 Dec 2005 Posts: 14
|
Posted: Fri Dec 30, 2005 11:31 pm Post subject: |
|
|
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
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 |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Fri Dec 30, 2005 11:34 pm Post subject: |
|
|
| 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
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 |
|
 |
nate015
Joined: 30 Dec 2005 Posts: 14
|
Posted: Fri Dec 30, 2005 11:36 pm Post subject: |
|
|
| 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 |
|
 |
nate015
Joined: 30 Dec 2005 Posts: 14
|
Posted: Fri Dec 30, 2005 11:38 pm Post subject: |
|
|
Here is the code for the other admin modules for my version of phpnuke (7. .
| 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 |
|
 |
nate015
Joined: 30 Dec 2005 Posts: 14
|
Posted: Fri Dec 30, 2005 11:43 pm Post subject: |
|
|
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 |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Fri Dec 30, 2005 11:44 pm Post subject: |
|
|
Nice
... though I just finished downloading and unpacking 7.8. Damn that thing takes forever to unpack!  |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Sat Dec 31, 2005 12:10 am Post subject: |
|
|
| 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 |
|
 |
nate015
Joined: 30 Dec 2005 Posts: 14
|
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Sat Dec 31, 2005 12:26 am Post subject: |
|
|
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 |
|
 |
nate015
Joined: 30 Dec 2005 Posts: 14
|
Posted: Sat Dec 31, 2005 12:35 am Post subject: |
|
|
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 |
|
 |
|