Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v1.x Distro
Author Message
rmount
New Member
New Member



Joined: Nov 17, 2003
Posts: 10

PostPosted: Fri Dec 09, 2005 8:43 am Reply with quote

I "upgraded" my 7.5 to Raven's 7.6 last evening. Importing the db data by hand.

Working through most of the issues, but i can't figure out how to make my right column come back on the main page.

I've tried changing:
Code:
if ($index == 1) {

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

in my theme's theme.php file, but it didn't work.

What am i missing? Question
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Fri Dec 09, 2005 1:35 pm Reply with quote

That should be correct.
Is this affecting ALL your modules?
See the rest of the readme.
 
View user's profile Send private message Send e-mail
Isaiah
Hangin' Around



Joined: Nov 09, 2004
Posts: 32

PostPosted: Sat Dec 10, 2005 1:47 pm Reply with quote

Check out which is your Home module, and do this to the module's index.php file.
 
View user's profile Send private message
rmount







PostPosted: Sat Dec 10, 2005 8:14 pm Reply with quote

I did a grep of my entire directory structure and only found one instance (which i had remmed out) in my theme.

I've read through Raven's readme, is there another one i've missed?
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Dec 11, 2005 8:18 am Reply with quote

rmount wrote:
I did a grep of my entire directory structure and only found one instance (which i had remmed out) in my theme.

I've read through Raven's readme, is there another one i've missed?


Each module can "choose" to show the right blocks or not to show them. In the pre-3.1 patch days, this was done by simply setting the variable $index = 1 up front in the module's index.php script file. Post 3.1 patch, this changed to using a constant definition and check instead.

Here is the text that you are missing, but it is in the 3.1 patchset documentation folder's readme.txt file instead of the installation readme (because RavenNuke76 is primarily intended for a fresh install, so you have to dig a bit more for an upgrade):

Code:


Important notes relating to Nuke Patched 3.1:

1- If you want right side blocks to appear in third party add-ons change:
In Modules:
index = 1;
to:
define('INDEX_FILE', true);
In Themes:
if ($index == 1) {
to:
if (defined('INDEX_FILE')) {

2- Additional changes for third party add-ons:
if ($mainfile == 1) {
should be changed to:
if (defined('NUKE_FILE')) {

if ($module == 1) {
should be changed to:
if (defined('MODULE_FILE')) {

if ($footer == 1) {
should be changed to:
if (defined('NUKE_FOOTER')) {

if ($header == 1) {
should be changed to:
if (defined('NUKE_HEADER')) {


This should help point you in the right direction.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
rmount







PostPosted: Sun Dec 11, 2005 4:46 pm Reply with quote

Thanks for the tip montego, i had not checked all those things. I did find one instance (only one) that needed to be changed. I also searched on a few variations to make sure they weren't typed in slightly differently.

Now i feel foolish. Somewhere along the way, i had disabled all the right side blocks and enabled only the default "login" block. Then moved that to the left side so people could login.

Well, i just enabled one of the right side blocks and my right side is back Very Happy

I suppose it could have been the one instance from above, which was in the NukeSentinal module...

Thanks all for you assistance!!
 
beerfrog
Regular
Regular



Joined: Sep 11, 2005
Posts: 54
Location: Sweden

PostPosted: Tue Dec 20, 2005 7:04 am Reply with quote

I'm also "looking" for my rightblocks...cant seem to make them appear Sad

I cant seem to find the correct files to edit...
Isit my nuke-root modules.php i'm supposed to do this?
Code:


In Modules:
index = 1;
to:
define('INDEX_FILE', true);


Because I cant find any such entry:-?

I got an older theme, Xtratos XD-redzone, working by doing only this:
Code:


In Themes:
if ($index == 1) {
to:
if (defined('INDEX_FILE')) {


But no such entries can be changed in the theme I want to use (XD-GF).

Confused / B

_________________
Image 
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
beerfrog







PostPosted: Tue Dec 20, 2005 7:20 am Reply with quote

So the default themes seems to be working so it has to be something with the themes from Xtrato.com Sad

I'll check with them for clues, if anyone here has any plz share...

Cheers / B
 
montego







PostPosted: Tue Dec 20, 2005 7:25 am Reply with quote

beerfrog, look in your root-nuke/modules/ directory and you will see that each module has its own directory. Within each of these, there is an index.php script. The $index=1 code is usually close to the top in that script file. If it is no-where to be found, then that module was intended to not show the right blocks. If you find that code, change it as mentioned above.

Now, with regards to XD-GF, unfortunately, you may need to post the theme.php code here so we can take a look at it. Are you certain that this theme wasn't meant to not show the right-hand blocks? Had you had this theme working on another nuke installation that was pre 3.1 patchset?

Regards, montego
 
beerfrog







PostPosted: Tue Dec 20, 2005 9:13 am Reply with quote

montego wrote:
beerfrog, look in your root-nuke/modules/ directory and you will see that each module has its own directory. Within each of these, there is an index.php script. The $index=1 code is usually close to the top in that script file. If it is no-where to be found, then that module was intended to not show the right blocks. If you find that code, change it as mentioned above.

Now, with regards to XD-GF, unfortunately, you may need to post the theme.php code here so we can take a look at it. Are you certain that this theme wasn't meant to not show the right-hand blocks? Had you had this theme working on another nuke installation that was pre 3.1 patchset?

Regards, montego


Hi!
Thx for trying Smile

My old install with XD-GF is at :www.paeron.net
My new install with XD-GF is at :www.paeron.net/nuke

So yes I know it should show the right blocks...

Regarding psting the theme.php, i will let xtrato have a go at it first...

Thx
 
montego







PostPosted: Tue Dec 20, 2005 9:43 am Reply with quote

beerfrog wrote:
Regarding psting the theme.php, i will let xtrato have a go at it first...


Definitely a better idea to address with the original authors where possible. I had not heard of this theme before so wasn't sure if they were around or not.

Regards,
montego
 
rackattack
New Member
New Member



Joined: Mar 30, 2009
Posts: 4

PostPosted: Fri Apr 03, 2009 12:13 pm Reply with quote

Here is the answer found on xtrato.com boards:

Quote:

Rlgnak12-24-2006, 01:28 AM
for future ppl

open themes/yourtheme/theme.php


find

Function themefooter() {


add on new line after

if (defined('INDEX_FILE')) { global $index; $index = 1; }


http://www.xtrato.com/wp/forum/archive/index.php/t-1040.html
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sat Apr 04, 2009 2:04 am Reply with quote

This is an extremely old post and I believe the fix has been addressed in other posts here. Not that your help is not appreciated of course. Wink
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v1.x Distro

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 ©