Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
Shapeandlight
New Member
New Member



Joined: Feb 25, 2006
Posts: 6
Location: Western Michigan

PostPosted: Sat Feb 25, 2006 8:18 pm Reply with quote

I am trying to fix a small problem right now with my blocks, I read the area in which if your blocks were not showing on the right side of your page you had to do this --

• After installing the latest patches my Right Blocks are gone! This is usually the result of your theme not using the latest security feature(s)in the latest patches.

In your theme.php find:

if ($index == 1) {

and change to:

if (defined('INDEX_FILE')) {

Also make sure that your modules have define('INDEX_FILE', true); if you want the right blocks to appear.

Now the first part of this was easy to change and it didn’t seem to screw anything up to this point, however it is the second part I am having a problem with.

 Also make sure that your modules have define(‘INDEX_File’,true); ???? Ok, seems easy for someone who would know where to look for this area and where to put it. (laughs) In each module, where to I find the area to put this or to change it?

If anyone has anything to help this poor old man find his way I would really be happy.

Thank you

_________________
Who said I wasn't ready for the big time? 
View user's profile Send private message Send e-mail Visit poster's website
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sat Feb 25, 2006 9:07 pm Reply with quote

ok that is simple explained....
when you open the index.php from a mod,like search or web_links or downloads you see this (or not) line almost on top..

define('INDEX_FILE', true);

thats what they mean...

ok so from ravens distro the index of the download mod looks like...

if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
if (isset($min)) {
$min = intval($min);
}
if (isset($show)) {
$show = intval($show);
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "- "._UDOWNLOADS."";
require_once("modules/$module_name/d_config.php");
define('INDEX_FILE', true);


thats it...
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

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 ©