I've recently installed RN and am unable to get my custom built modules working. When I go into admin for the module it comes up with "access denied". I've searched various topics on here but can not find what I need to do to get them working. I guess the code required needs to be changed but I don't know what....?
Could someone please advise......?
Here are some examples of code from my admin - modules file:
Code:
if ( !defined('ADMIN_FILE') )
{
die ("Access Denied");
}
global $prefix, $db, $bgcolor2;
$aid = trim($aid);
$result = $db->sql_query("select radminreviews, radminsuper from ".$prefix."_authors where aid='$aid'");
list($radminreviews, $radminsuper) = $db->sql_fetchrow($result);
if (($radminreviews==1) OR ($radminsuper==1)) {
Code:
function events_post($id,$title,$sub_title,$date,$time,$where,$price,$phone,$email,$website,$details,$arenas,$flyer) {
global $prefix, $db, $bgcolor2,$user, $cookie;
include("header.php");
GraphicAdmin();
Joined: Apr 06, 2006 Posts: 2415 Location: Iowa, USA
Posted:
Tue Jul 24, 2007 11:10 am
I don't think radminreviews is a standard Nuke column on the authors table. That may be causing the SQL statement to fail and denying you access. Take a look at one of the standard modules admin/index.php files and use that as a model.
Joined: Aug 29, 2004 Posts: 9071 Location: Arizona
Posted:
Wed Jul 25, 2007 5:48 am
Joe UKS, yes, it looks like you came from a pre 7.5 version of nuke. With 7.5, the individual module "radmin___" columns were removed. Even 7.6 changed the administration a bit more, but I cannot recall how. So, like Gremmie said, take one of the provided modules as a model.
View next topic View previous topic
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