PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
draxx
Worker
Worker


Joined: Nov 19, 2003
Posts: 186

PostPosted: Sun Mar 29, 2009 12:58 pm Reply with quote Back to top

Basically I want center blocks to appear in all modules - and not just the home module.

Since I have the blocks by module installed (which I realize may not work for this without modification) but I figure I am close to being able to have different center blocks in all the modules ... or no center blocks if I so choose.

I'm almost sure there is a single line of code somewhere that is telling it "if not home page skip center blocks" .... anyone have any idea where that line is?

After reading the other topic I will go investigate header.php ... but I rather expected it to be somewhere in blocks functions ?


Last edited by draxx on Sun Mar 29, 2009 1:40 pm; edited 1 time in total
View user's profile Send private message
draxx
Worker
Worker


Joined: Nov 19, 2003
Posts: 186

PostPosted: Sun Mar 29, 2009 1:14 pm Reply with quote Back to top

Okay that was fast.
At the bottom of header.php I find:

if (defined('HOME_FILE')) {
message_box();
blocks('Center');
}

I changed it to this:

if (defined('HOME_FILE')) {
message_box();
blocks('Center');
} else {
blocks('Center');

}

And I do get the option to add center blocks at the top but when I add them at the bottom they don't appear.

So now I wonder if this has to do with the blocks function I modified or something else and I will go investigate that now.

I wanted to post back here just in case someone already knows whats up with that.
View user's profile Send private message
draxx
Worker
Worker


Joined: Nov 19, 2003
Posts: 186

PostPosted: Sun Mar 29, 2009 1:39 pm Reply with quote Back to top

Okay silly me ...

in Footer there is a similar line as in header for the bottom blocks.

I just had to add a similar else statement and now it displays them in all modules as defined by the block manager.

OMG you guys this is just sooooooooooo slick! If you guys don't include this in the next version I'm gonna ... well ... pull a single strand of hair off each one of your heads! Laughing Wink

Hey don't get me wrong - its not a "ravennuked" mod - it would need to be translated for proper database calls ... but the dynamic content that I can now display ..... the power that I have gotten from changing 5 lines of code and adding 1 sql table(someone elses work) and 1 admin section(someone elses work) for blocks management is just amazing.

Okay I admit I did edit the admin section some... it wouldent return you to the right page when you changed a blocks position and that was annoying ..... and when you arrange blocks you do it with the arrows like in the old version .... I much prefer the new way but changing that I think is over my head so I run with it the way it is....

But in ravennuke files all I have changed is 5 lines ..... Just 5 LINES! Smile
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Mar 29, 2009 1:40 pm Reply with quote Back to top

It shouldn't be related to your changes.

This will require some digging to figure out. I am not sure what displays the "bottom" blocks. I would assume that blocks('Center'); displays both. If that is true I think you are going to have a problem getting this to work.
View user's profile Send private message
draxx
Worker
Worker


Joined: Nov 19, 2003
Posts: 186

PostPosted: Sun Mar 29, 2009 1:44 pm Reply with quote Back to top

Palbin wrote:
It shouldn't be related to your changes.

This will require some digging to figure out. I am not sure what displays the "bottom" blocks. I would assume that blocks('Center'); displays both. If that is true I think you are going to have a problem getting this to work.


Beat ya to it Palbin! Smile Hheheheh I type too fast sometimes.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Mar 30, 2009 8:41 am Reply with quote Back to top

How about a link so I can see this because I just don't have a frame of reference Bang Head
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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
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