Author |
Message |
Donovan
Client

Joined: Oct 07, 2003
Posts: 735
Location: Ohio
|
Posted:
Tue Mar 03, 2009 9:14 pm |
|
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;
|
|
|
|
 |
 |
jestrella
Moderator

Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic
|
Posted:
Tue Mar 03, 2009 10:58 pm |
|
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 |
|
|
 |
Donovan

|
Posted:
Wed Mar 04, 2009 5:52 am |
|
Well my theme is not very old as I said it has this code...
if (defined('INDEX_FILE')) { |
|
|
|
 |
trunks
Worker


Joined: Oct 05, 2007
Posts: 152
Location: United Kingdom
|
Posted:
Wed Mar 04, 2009 6:15 am |
|
donovan, he said module not theme mate, and i believe this is a module issue.
try this:
open the module's index.php
find:
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:
replace with:
Code:if (defined('MODULE_FILE')) {
|
Let me know how you get on  |
|
|
|
 |
Donovan

|
Posted:
Wed Mar 04, 2009 6:31 am |
|
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

|
Posted:
Wed Mar 04, 2009 6:43 am |
|
|
|
 |
jestrella

|
Posted:
Wed Mar 04, 2009 7:40 am |
|
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
|
Posted:
Wed Mar 04, 2009 8:48 am |
|
did you try removing $index = 1; ?
that is just needed for older nukes, isnt it? |
|
|
|
 |
jestrella

|
Posted:
Wed Mar 04, 2009 11:32 am |
|
Quote: | that is just needed for older nukes, isnt it? |
Yes, but it also ensures backward compatibility with old modules/addons. |
|
|
|
 |
trunks

|
Posted:
Wed Mar 04, 2009 12:40 pm |
|
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
also: $index = 1; is not required |
|
|
|
 |
Donovan

|
Posted:
Wed Mar 04, 2009 3:59 pm |
|
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

|
Posted:
Wed Mar 04, 2009 7:08 pm |
|
Turn error reporting on and check if you get any errors...
Can you see your footer content???? |
|
|
|
 |
Donovan

|
Posted:
Wed Mar 04, 2009 7:18 pm |
|
Darnit that was it. I did not have include("footer.php"); in each function. |
|
|
|
 |
jestrella

|
Posted:
Wed Mar 04, 2009 7:24 pm |
|
There you go  |
|
|
|
 |
|