Author |
Message |
rmount
New Member


Joined: Nov 17, 2003
Posts: 10
|
Posted:
Fri Dec 09, 2005 8:43 am |
|
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:
to:
Code:if (defined('INDEX_FILE')) {
|
in my theme's theme.php file, but it didn't work.
What am i missing?  |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Fri Dec 09, 2005 1:35 pm |
|
That should be correct.
Is this affecting ALL your modules?
See the rest of the readme. |
|
|
|
 |
Isaiah
Hangin' Around

Joined: Nov 09, 2004
Posts: 32
|
Posted:
Sat Dec 10, 2005 1:47 pm |
|
Check out which is your Home module, and do this to the module's index.php file. |
|
|
|
 |
rmount

|
Posted:
Sat Dec 10, 2005 8:14 pm |
|
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
|
Posted:
Sun Dec 11, 2005 8:18 am |
|
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. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
rmount

|
Posted:
Sun Dec 11, 2005 4:46 pm |
|
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
I suppose it could have been the one instance from above, which was in the NukeSentinal module...
Thanks all for you assistance!! |
|
|
|
 |
beerfrog
Regular


Joined: Sep 11, 2005
Posts: 54
Location: Sweden
|
Posted:
Tue Dec 20, 2005 7:04 am |
|
I'm also "looking" for my rightblocks...cant seem to make them appear
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 |
_________________ Only registered users can see links on this board! Get registered or login! |
|
 |
 |
beerfrog

|
Posted:
Tue Dec 20, 2005 7:20 am |
|
So the default themes seems to be working so it has to be something with the themes from Xtrato.com
I'll check with them for clues, if anyone here has any plz share...
Cheers / B |
|
|
|
 |
montego

|
Posted:
Tue Dec 20, 2005 7:25 am |
|
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

|
Posted:
Tue Dec 20, 2005 9:13 am |
|
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
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

|
Posted:
Tue Dec 20, 2005 9:43 am |
|
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


Joined: Mar 30, 2009
Posts: 4
|
Posted:
Fri Apr 03, 2009 12:13 pm |
|
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; }
|
Only registered users can see links on this board! Get registered or login! |
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Sat Apr 04, 2009 2:04 am |
|
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.  |
|
|
|
 |
|