Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
godfather
Repeat Offender



Joined: May 27, 2008
Posts: 25

PostPosted: Wed May 28, 2008 5:50 am Reply with quote

Since Im on a roll with questions here is another.
Ive altered the theme on the site and with the new theme ive lost the blocks on the home page from the right hand side, Ive read there is quite a simple fix to this but Im unsure how to apply the changes.

Can anyone help?
View user's profile Send private message
Guardian
Mr. Awesome



Joined: Dec 09, 2006
Posts: 234

PostPosted: Wed May 28, 2008 7:04 am Reply with quote

In your theme.php find:
Code:
if ($index == 1) {

and change to:
Code:
if (defined('INDEX_FILE')) {

_________________
Code Authors Nuke Reviews
View user's profile Send private message
godfather
Repeat Offender



Joined: May 27, 2008
Posts: 25

PostPosted: Wed May 28, 2008 7:00 pm Reply with quote

OMG

You a re star!!! Class mate many many thanks. IOU a large BEER. Very Happy
View user's profile Send private message
godfather
Repeat Offender



Joined: May 27, 2008
Posts: 25

PostPosted: Wed May 28, 2008 8:38 pm Reply with quote

Would this be the same process for admin, forum and any other modules that dont have the blocks on the RHS?
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 722

PostPosted: Wed May 28, 2008 9:21 pm Reply with quote

For the right blocks to show in certain modules you have to add a line like this...

Code:
define('INDEX_FILE', true);


So if you wanted the right blocks to show up in the downloads module, you would open up modules/Downloads/index.php and add the above line in.
View user's profile Send private message Visit poster's website
Guardian
Mr. Awesome



Joined: Dec 09, 2006
Posts: 234

PostPosted: Wed May 28, 2008 9:23 pm Reply with quote

If you have a module that is not displaying right side blocks and you want it to, you need to add this line into the modules index.php file
Code:
define('INDEX_FILE', true);

This is used instead of what you probably already have - something like
Code:
 $index=1

_________________
Code Authors Nuke Reviews
View user's profile Send private message
godfather
Repeat Offender



Joined: May 27, 2008
Posts: 25

PostPosted: Wed May 28, 2008 9:56 pm Reply with quote

Thanks guys Smile
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


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