Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules
Author Message
ninja
New Member
New Member



Joined: Jul 26, 2009
Posts: 11

PostPosted: Fri Jul 31, 2009 11:21 am Reply with quote

hi guys

ok i have some self created modules and am trying to get them to work with RN Very Happy

i tried adding

Code:
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_once('header.php');
OpenTable();

// html code with echo statements here

CloseTable();
include_once('footer.php');

?>



but this dosnt show the rblocks on the right hand side rather it shows them on the left ??
where have i gone wrong

TIA
 
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Fri Jul 31, 2009 12:15 pm Reply with quote

that looks good to me, it's might be a theme or html problem, check your page for compliance errors. which theme are you using?

also if I'm writing an html page I like doing it like this:
Code:
OpenTable();

include('myhtml.html');
CloseTable();


rather than echo-ing all the html in php... but thats just me. also allows you to serve up different pages for users
Code:
OpenTable();

if(is_user($user)){
include('myhtmlforusers.html');
}else{
include('myhtmlforanony.html');
}
CloseTable();

just write html page in xhtml and place inyour custom module dir, making sure only to include what is inbetween the body tags, as the head and body tags will be generated by rn.
 
View user's profile Send private message Visit poster's website
ninja







PostPosted: Fri Jul 31, 2009 1:39 pm Reply with quote

heya

Thanks that worked like a champ

and thanks for the tip about diffrent users that was something i was gonna ask a bit latter on Razz
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©