| Author | Problem with admin section |
ragu Intern


Joined: Aug 02, 2006 Posts: 5
Location: USA
|
|
| I installed this on my 7.6 nuke and when you go to the admins section ... there is 2 audio images under my modules section. How do I remove one ... and what file would I look in to remove one of them. |
|
Posted:
Thu Aug 03, 2006 1:26 am |
|
 |
planedoctor Site Admin


Joined: Oct 08, 2002 Posts: 306
|
|
Hey,
You will need to comment/uncomment out a line in the file below:
modules\Audio\admin\index.php
Open in a text editor and you will see the code below
| Code: |
/* USE THE NEXT LINE FOR PHPNUKE VERSION 7.5 and 7.6 */
// if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
/* FOR PHPNUKE VERSION 7.7 AND UP USE LINES BELOW AND COMMENT OUT ABOVE LINES */
if (!defined('ADMIN_FILE')) {
die ("Access Denied");
} |
Change that to look like this for Nuk 7.6
| Code: |
/* USE THE NEXT LINE FOR PHPNUKE VERSION 7.5 and 7.6 */
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
/* FOR PHPNUKE VERSION 7.7 AND UP USE LINES BELOW AND COMMENT OUT ABOVE LINES */
// if (!defined('ADMIN_FILE')) {
// die ("Access Denied");
// } |
I think this might be your problem.
 _________________
|
|
Posted:
Thu Aug 03, 2006 8:33 am |
|
 |
ragu Intern


Joined: Aug 02, 2006 Posts: 5
Location: USA
|
|
nope that didnt work either .. anymore ideas?
Thank You,
Ragu |
|
Posted:
Thu Aug 03, 2006 7:23 pm |
|
 |
planedoctor Site Admin


Joined: Oct 08, 2002 Posts: 306
|
|
I have an Idea.
Did you by chance add this file.
admin\modules\audio.php
to your nuke site?
PhpNuke Architecture was changed in version 7.5 to make add-on modules 100% modular.
This version of Audio moved the admin directory to the audio directory.
With this change all files and directory's are now within audio.
So your the admin area of audio is now ONLY within the "audio" directory.
You probably have one in the "admin" directory and one in the "audio/admin" directory. _________________
|
|
Posted:
Fri Aug 04, 2006 9:59 am |
|
 |
ragu Intern


Joined: Aug 02, 2006 Posts: 5
Location: USA
|
|
| ya thats what i thought also ... but nope ... there aint anything in there. The only thing i have for this outside of the modules section is the gif which is in images/admin/*.gif ... I tried deleting that but then my 2 images in the admins section is gone. Isnt it suppose to be calling it from the modules/images/ instead of images/admin/ ? If so what would I edit ... I thhink if I fix this then my problem will be fixed. |
|
Posted:
Fri Aug 04, 2006 11:31 am |
|
 |
planedoctor Site Admin


Joined: Oct 08, 2002 Posts: 306
|
 |
|
Did you change the lines in the
modules/Audio/admin/case.php
and
modules/Audio/admin/links.php
They require changes simular to the index.php
The way nuke builds the admin links is by looking for the directorys listed in the modules directory. It then looks in the admin directory and pulls info from the case.php to get language, functions and includes. It uses the links.php file to define the admin menu ops, language and image used in the menu.
If you have 2 links.php files this might cause your problem, but most likely your links.php file looks like this
| Code: |
/* USE THE NEXT LINES FOR PHPNUKE VERSION 7.5 and 7.6 */
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
adminmenu("admin.php?op=Audio", ""._WEBAUDIO."", "audio.gif");
/* FOR PHPNUKE VERSION 7.7 AND UP USE LINES BELOW AND COMMENT OUT ABOVE LINES */
if (!defined('ADMIN_FILE')) {
die ("Access Denied");
}
global $admin_file;
adminmenu("".$admin_file.".php?op=Audio", ""._WEBAUDIO."", "audio.gif");
|
You have probably forgotten to comment out the language for PHPNUKE version 7.7 and up.
The file for 7.6 should look like this
| Code: |
/* USE THE NEXT LINES FOR PHPNUKE VERSION 7.5 and 7.6 */
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
adminmenu("admin.php?op=Audio", ""._WEBAUDIO."", "audio.gif");
/* FOR PHPNUKE VERSION 7.7 AND UP USE LINES BELOW AND COMMENT OUT ABOVE LINES */
// if (!defined('ADMIN_FILE')) {
// die ("Access Denied");
// }
// global $admin_file;
// adminmenu("".$admin_file.".php?op=Audio", ""._WEBAUDIO."", "audio.gif");
|
Let me know! _________________
|
|
Posted:
Sat Aug 05, 2006 5:20 pm |
|
 |
ragu Intern


Joined: Aug 02, 2006 Posts: 5
Location: USA
|
|
BOOM !!! that was it .... I forgot to finish to finish commenting everything out ... DUH lol.
Heres what I had:
| Code: |
/* USE THE NEXT LINES FOR PHPNUKE VERSION 7.5 and 7.6 */
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) {
die //("Access Denied"); }
adminmenu("admin.php?
op=Audio", ""._WEBAUDIO."", "audio.gif");
/* FOR PHPNUKE VERSION 7.7 AND UP USE LINES BELOW AND COMMENT OUT ABOVE LINES */
// if (!defined('ADMIN_FILE')) {
//die ("Access Denied");
// }
global $admin_file;
adminmenu("".$admin_file.".php?op=Audio", ""._WEBAUDIO."", "audio.gif");
|
I must have been really tired ;) .. thanks alot for your help ... and a great module. Keep up the good work man. Hey in your next release you sould maybe try and add a mini player for each file .... Like put a mini player option so you can play each file from the module itself. Just a thought and again GREAT WORK !!! |
|
Posted:
Sat Aug 05, 2006 7:43 pm |
|
 |
planedoctor Site Admin


Joined: Oct 08, 2002 Posts: 306
|
|
LOL...glad that was it.
Funny how most of the time is something really stupid.
I once spent over 1/2 hour looking for a error in some code I was writing. The error was that I was missing a "." in one line. It was so small I missed it!! _________________
|
|
Posted:
Sun Aug 06, 2006 4:21 pm |
|
 |
|