PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
rmount
New Member
New Member


Joined: Nov 17, 2003
Posts: 10

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

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: 6299
Location: Vsetin, Czech Republic

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

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 Visit poster's website
Isaiah
Hangin' Around


Joined: Nov 09, 2004
Posts: 32

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

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
New Member
New Member


Joined: Nov 17, 2003
Posts: 10

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

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?
View user's profile Send private message
montego
Former Admin in Good Standing


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

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

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.
View user's profile Send private message Visit poster's website
rmount
New Member
New Member


Joined: Nov 17, 2003
Posts: 10

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

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!!
View user's profile Send private message
beerfrog
Regular
Regular


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

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

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
beerfrog
Regular
Regular


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

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

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
montego
Former Admin in Good Standing


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

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

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
View user's profile Send private message Visit poster's website
beerfrog
Regular
Regular


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

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

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
montego
Former Admin in Good Standing


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

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

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
View user's profile Send private message Visit poster's website
rackattack
New Member
New Member


Joined: Mar 30, 2009
Posts: 4

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

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 to the forums!
View user's profile Send private message
jakec
Site Admin


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

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

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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum