PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
tehw1n
Hangin' Around


Joined: Jul 15, 2008
Posts: 49

PostPosted: Tue Nov 03, 2009 5:24 pm Reply with quote Back to top

I've created a few custom modules for my site - and they work fine enough on their own, but they are clearly not integrating with the permissions groups and most importantly the block-modules main menu.
I'm missing a majority of the ACP > Module Edit options in my custom modules. Normally you can edit the following options:

Custom Module Name:
Who can View This?
What Groups:
Visible in Modules Block?

Mine only shows:
Custom Module Name:

It shows as active - but invisible in the Module Menu.
I basically just copied the majority of this code from another RN module, and created my own table content at the bottom. I'm still really new to this, how much am I missing here? Smile

Code:
<?php

if ( !defined('MODULE_FILE') ) {
    die ('You can\'t access this file directly...');
}

require_once('mainfile.php');
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
define('INDEX_FILE', true); //comment this out to hide right blocks
if (defined('INDEX_FILE')) { $index = 1; } else {$index = 0; } // auto set right blocks for pre patch 3.1 compatibility

include('header.php');

$cookie[0] = intval($cookie[0]);
if (!empty($cookie[1])) {
   $row = $db->sql_fetchrow($db->sql_query("SELECT name, username, user_email FROM ".$user_prefix."_users WHERE user_id='$cookie[0]'"));
   if (!empty($row['name'])) {
      $sender_name = stripslashes($row['name']);
   } else {
      $sender_name = stripslashes($row['username']);
   }
   $sender_email = stripslashes($row['user_email']);
}

OpenTable();
echo "<h1>New Module Header Here</h1>";
echo "blah blah blah";
CloseTable();

include_once('footer.php');
?>
View user's profile Send private message
tehw1n
Hangin' Around


Joined: Jul 15, 2008
Posts: 49

PostPosted: Tue Nov 03, 2009 5:29 pm Reply with quote Back to top

oh.. jsut answered my own question. This module was marked as "Put in Home"
When you do this, the module Edit options are limited as I noted above.

took it out of Home, and all is well.
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1536
Location: North Carolina

PostPosted: Tue Nov 03, 2009 5:33 pm Reply with quote Back to top

Does the module have a seperate language file? If not, remove the
Code:
get_lang($module_name);
and see if that helps.
View user's profile Send private message Send e-mail Visit poster's website
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1536
Location: North Carolina

PostPosted: Tue Nov 03, 2009 5:33 pm Reply with quote Back to top

Cool
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum