PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  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
ninja
New Member
New Member


Joined: Jul 26, 2009
Posts: 11

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

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: 1253
Location: Texas, USA

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

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
ninja
New Member
New Member


Joined: Jul 26, 2009
Posts: 11

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

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
View user's profile Send private message
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