Search     
The Online Community for Aircraft Mechanics!
  
Home Forums Topics Top Headlines Your Account
Directory
· Home
· Audio
· Downloads
· FAQ
· Feedback
· Forums
· News Archive
· Recommend Us
· Search
· Site Map
· Submit News
· Surveys
· Top 10
· Topics
· Web Links
· World News
· Your Account
 
Login
Welcome, Guest
Nickname
Password
(Register)

Membership:
Latest: cenkemre21
Today: 0
Yesterday: 0
Overall: 490

Visitation:
Guests: 14
Members: 0
Total: 14


You are Anonymous user. You can register for free by clicking here
 
Last Seen Members
superg: 10 days ago
audai: 52 days ago
monika: 66 days ago
bycanertk: 70 days ago
ual_tech: 101 days ago
planemech669: 114 days ago
HORUS: 115 days ago
planedoctor: 116 days ago
blacklord83: 128 days ago
Ü ¬z¸¯³]: 128 days ago
missleigh: 132 days ago
 
Today in Aviation History
1953
Scott Crossfield in Douglas Skyrocket, 1st to break Mach 2 (1,300 MPH).
1980
Steve Ptacek in Solar Challenger makes 1st solar-powered flight.
 
Site Info
About PlaneDoctor.com
Advertising on this site
 

PlaneDoctor.com :: View topic - Problem with admin section
 
  Forum FAQ Search Profile

Post new topic Reply to topic
PlaneDoctor.com Forum Index » All about Audio Module » Problem with admin section   
View previous topic :: View next topic
AuthorProblem with admin section
ragu
Intern
Intern


Joined: Aug 02, 2006
Posts: 5
Location: USA

Reply with quote
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.
PostPosted:
Thu Aug 03, 2006 1:26 am
Top of PageView users profileSend private message
planedoctor
Site Admin
Site Admin


Joined: Oct 08, 2002
Posts: 306

Reply with quote
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.
anim_smoke.gif
_________________
PostPosted:
Thu Aug 03, 2006 8:33 am
Top of PageView users profileSend private messageVisit posters website
ragu
Intern
Intern


Joined: Aug 02, 2006
Posts: 5
Location: USA

Reply with quote
nope that didnt work either .. anymore ideas?

Thank You,
Ragu
PostPosted:
Thu Aug 03, 2006 7:23 pm
Top of PageView users profileSend private message
planedoctor
Site Admin
Site Admin


Joined: Oct 08, 2002
Posts: 306

Reply with quote
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.
_________________
PostPosted:
Fri Aug 04, 2006 9:59 am
Top of PageView users profileSend private messageVisit posters website
ragu
Intern
Intern


Joined: Aug 02, 2006
Posts: 5
Location: USA

Reply with quote
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.
PostPosted:
Fri Aug 04, 2006 11:31 am
Top of PageView users profileSend private message
planedoctor
Site Admin
Site Admin


Joined: Oct 08, 2002
Posts: 306

Reply with quote
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!
_________________
PostPosted:
Sat Aug 05, 2006 5:20 pm
Top of PageView users profileSend private messageVisit posters website
ragu
Intern
Intern


Joined: Aug 02, 2006
Posts: 5
Location: USA

Reply with quote
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 !!!
PostPosted:
Sat Aug 05, 2006 7:43 pm
Top of PageView users profileSend private message
planedoctor
Site Admin
Site Admin


Joined: Oct 08, 2002
Posts: 306

Reply with quote
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!!
_________________
PostPosted:
Sun Aug 06, 2006 4:21 pm
Top of PageView users profileSend private messageVisit posters website
Display posts from previous:   
All times are GMT - 4 Hours
Post new topic Reply to topic
PlaneDoctor.com Forum Index » All about Audio Module » Problem with admin section  

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

Click here to view this sites Privacy Policy
© 2002 Planedoctor Web Services All Rights Reserved
Bulletin Board Powered by phpBB © 2001 phpBB Group
Version 2.0.6 of PHP-Nuke Port by Tom Nitzschner © 2002 www.toms-home.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: 12271 Seconds