| Author | Problem on PHPNuke 7.5 |
gs Intern


Joined: Jul 01, 2005 Posts: 8
Location: Ireland
|
|
Posted:
Fri Jul 01, 2005 9:47 pm |
|
 |
planedoctor Site Admin


Joined: Oct 08, 2002 Posts: 306
|
|
Posted:
Fri Jul 01, 2005 11:27 pm |
|
 |
gs Intern


Joined: Jul 01, 2005 Posts: 8
Location: Ireland
|
|
Hi Doc, i'm usin nuke 7.5
So do i just change
if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }
$result = sql_query("select radminlink, radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminlink, $radminsuper) = sql_fetch_row($result, $dbi);
if (($radminlink==1) OR ($radminsuper==1)) {
To
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminlink, radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if (($row['radminlink'] == 1) OR ($row['radminsuper'] == 1)) {
EDIT
Nah i tryed that no change  |
|
Posted:
Sat Jul 02, 2005 1:26 am |
|
 |
planedoctor Site Admin


Joined: Oct 08, 2002 Posts: 306
|
|
I have updated the files to work in 7.5 and >
I will be cleaning the code and placing it in the download area soon. _________________
|
|
Posted:
Tue Jul 19, 2005 9:30 pm |
|
 |
gs Intern


Joined: Jul 01, 2005 Posts: 8
Location: Ireland
|
|
Thanks i'm working on it...
Edit..
I'll tell ya what happened..
First i removed the origional admin files, there were 4 right? case, links, language (text file) and modules (audio.php
The language file was a .txt.. so i removed the origional defines listed in that language file.
Next i uploaded that new admin folder;
modules/audio/admin
I think that's all...
So i went to my admin menu area in nuke and the top group of blocks are in there (Administration Menu)..
But the bottom row is gone (Modules Administration / access denied)
And i put that piece of code in also, i.e.
define("_WEBAUDIO","Audio");
to your Admin (main) directory language files. |
|
Posted:
Wed Jul 20, 2005 5:18 am |
|
 |
gs Intern


Joined: Jul 01, 2005 Posts: 8
Location: Ireland
|
|
Same prob still, i deleted everythign and went with the new install. I'm usin 7.5
Access denied still, i'll smoke another cigg  |
|
Posted:
Wed Jul 20, 2005 2:00 pm |
|
 |
planedoctor Site Admin


Joined: Oct 08, 2002 Posts: 306
|
|
OK I will download and install a copy of nuke ver 7.5 to test.
Will post outcome of testing and changes for this version if required. _________________
|
|
Posted:
Wed Jul 20, 2005 2:41 pm |
|
 |
planedoctor Site Admin


Joined: Oct 08, 2002 Posts: 306
|
|
I have changed the files in Audio 1.6 to accommodate version 7.5, 7.6 and 7.7 now.
There were a couple line changes in the admin files.
I tested with PhpNuke 7.5 _________________
|
|
Posted:
Wed Jul 20, 2005 4:32 pm |
|
 |
planedoctor Site Admin


Joined: Oct 08, 2002 Posts: 306
|
|
The files are set for nuke 7.7
to use them in 7.5 or 7.6 you will need to comment/uncomment the first few lines in the 3 admin files under audio.
Real easy to do, just follow instructions. _________________
|
|
Posted:
Wed Jul 20, 2005 4:35 pm |
|
 |
gs Intern


Joined: Jul 01, 2005 Posts: 8
Location: Ireland
|
 |
|
First of all, Thanks for updating Audio Module,
I wasn't sure what to comment out so i just guessed:
For case here's what i did:
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* 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");
// }
For index here's what i did:
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* 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");
// }
For links:
/************************************************************************/
/* 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");
// }
Now i think everything's back, but is there supose to be 2 audio icons ?  |
|
Posted:
Wed Jul 20, 2005 7:17 pm |
|
 |
planedoctor Site Admin


Joined: Oct 08, 2002 Posts: 306
|
|
You probably see one icon in the upper admin area, and one in the lower.
The one is the lower is correct. The upper one is there due to there still being files in the real admin directory for audio. With these removed the upper icon/link will be gone. _________________
|
|
Posted:
Wed Jul 20, 2005 7:46 pm |
|
 |
gs Intern


Joined: Jul 01, 2005 Posts: 8
Location: Ireland
|
|
Posted:
Wed Jul 20, 2005 7:56 pm |
|
 |
|