Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Tue Mar 03, 2009 9:14 pm Reply with quote

My right side block wont show in my module. I can't figure this out. Everything looks right.

Running the latest RN.

My theme looks right.

Code:
if (defined('INDEX_FILE')) { 


My module looks right.

Code:
define('INDEX_FILE', true);

$index = 1;
 
View user's profile Send private message Visit poster's website ICQ Number
jestrella
Moderator



Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic

PostPosted: Tue Mar 03, 2009 10:58 pm Reply with quote

If you set error reporting on, do you see any error?
if your module is very old, your theme should have code like this
Code:
if (defined('INDEX_FILE') || $index==1) {

_________________
"For those whom have not reach the sky... Every mountain seems high"

Best Regards
Jonathan Estrella
http://about.me/jestrella04 
View user's profile Send private message Visit poster's website
Donovan







PostPosted: Wed Mar 04, 2009 5:52 am Reply with quote

Well my theme is not very old as I said it has this code...

if (defined('INDEX_FILE')) {
 
trunks
Worker
Worker



Joined: Oct 05, 2007
Posts: 152
Location: United Kingdom

PostPosted: Wed Mar 04, 2009 6:15 am Reply with quote

donovan, he said module not theme mate, and i believe this is a module issue.

try this:

open the module's index.php

find:

Code:
index = 1; 

replace with:
Code:
define('INDEX_FILE', true); 


If they still do now show try this:

find:

Code:
if ($mainfile == 1) { 

replace with:
Code:
if (defined('NUKE_FILE')) { 


find:

Code:
if ($module == 1) { 

replace with:
Code:
if (defined('MODULE_FILE')) { 


Let me know how you get on Smile
 
View user's profile Send private message Visit poster's website MSN Messenger
Donovan







PostPosted: Wed Mar 04, 2009 6:31 am Reply with quote

My module says
Code:
define('INDEX_FILE', true);


My themefooter says
Code:
if (defined('INDEX_FILE')) {


My themeheader says
Code:
if (defined('INDEX_FILE')) { 



Why would I have to edit anything in RavenNuke if I am running v2.30.01?

I ran into this years ago and I think it was a third party module I had to change. Something like UserInfoAddons was messing up everything even though it was not active. I don't understand why ALL modules have to have this code even if they are inactive.
 
trunks







PostPosted: Wed Mar 04, 2009 6:43 am Reply with quote

read my post again...
 
jestrella







PostPosted: Wed Mar 04, 2009 7:40 am Reply with quote

Check what trunks said and btw what about your theme... are you using a stock RavenNuke theme or a third party one?
 
spasticdonkey
RavenNuke(tm) Development Team



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

PostPosted: Wed Mar 04, 2009 8:48 am Reply with quote

did you try removing $index = 1; ?
that is just needed for older nukes, isnt it?
 
View user's profile Send private message Visit poster's website
jestrella







PostPosted: Wed Mar 04, 2009 11:32 am Reply with quote

Quote:
that is just needed for older nukes, isnt it?


Yes, but it also ensures backward compatibility with old modules/addons.
 
trunks







PostPosted: Wed Mar 04, 2009 12:40 pm Reply with quote

well with no link and information on the module and theme the problem is on... many of our hands are tied, although the fix i posted should be sufficient, unless other files have been tampered with Smile

also: $index = 1; is not required
 
Donovan







PostPosted: Wed Mar 04, 2009 3:59 pm Reply with quote

My index.php page. This is a new module for my kids swim team I have been working on for a week.

Code:


<?php

/************************************************************************
* Idle Hour Swim Team Module
* By: Steven Donovan
* http://www.idlehourswimteam.org
* Copyright © 2008 by Idle Hour Swim Team
* License: GNU/GPL
************************************************************************/

if ( !defined('MODULE_FILE') ){die("You can't access this file directly...");}
require_once('mainfile.php');
$module_name = basename(dirname(__FILE__));
define('INDEX_FILE', true);

if (!isset($op)) $op = '';
switch ($op) {

   case "information":
      information();
      break;   
   case 'roster':
      roster();
      break;   
   case 'register':
      register();
      break;   
   case 'swimmerprofile':
      swimmerprofile();
      break;   
   case 'teamrecords':
      teamrecords();
      break;
   case 'poolrecords':
      poolrecords();
      break;
   case 'swimmeets':
      swimmeets();
      break;   
   case 'coaches':
      coaches();
      break;
   case 'boardmembers':
      boardmembers();
      break;
   default:
      information();
      break;
}

//===================================================
// Menu
//===================================================
function swim_menu() {
    global $prefix, $db, $bgcolor2, $bgcolor3, $module_name;
   include("header.php");
   OpenTable();
   require "includes/kooltabs/kooltabs.php";
   $kts = new KoolTabs("kts");   
   $kts->styleFolder = "includes/kooltabs/styles/silver";      
   $kts->addTab("root","info","Information","modules.php?name=".$module_name."&op=information");
   $kts->addTab("root","register","Register","modules.php?name=".$module_name."&op=register");
   $kts->addTab("root","roster","Roster","modules.php?name=".$module_name."&op=roster");   
   $kts->addTab("root","records","Records",NULL);
   $kts->addTab("records","teamrecords","Team Records","modules.php?name=".$module_name."&op=teamrecords");   
   $kts->addTab("records","poolrecords","Pool Records","modules.php?name=".$module_name."&op=poolrecords");
   $kts->addTab("root","season","Swim Season",NULL);
   $kts->addTab("season","current","Current","modules.php?name=".$module_name."&op=season");   
   $kts->addTab("season","past","Past","modules.php?name=".$module_name."&op=past");   
   echo"<div class='indent indent_right topspacing bottomspacing'>";   
   echo $kts->Render();      
   echo"</div>";
   CloseTable();   
}


The rest are just functions. Most are hard coded and rough drafts.
 
jestrella







PostPosted: Wed Mar 04, 2009 7:08 pm Reply with quote

Turn error reporting on and check if you get any errors...
Can you see your footer content????
 
Donovan







PostPosted: Wed Mar 04, 2009 7:18 pm Reply with quote

Darnit that was it. I did not have include("footer.php"); in each function.
 
jestrella







PostPosted: Wed Mar 04, 2009 7:24 pm Reply with quote

There you go speedtype
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> 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 ©