| Author |
Message |
draxx Worker


Joined: Nov 19, 2003 Posts: 186
|
Posted:
Sun Mar 29, 2009 12:58 pm |
|
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 |
|
|
 |
draxx Worker


Joined: Nov 19, 2003 Posts: 186
|
Posted:
Sun Mar 29, 2009 1:14 pm |
|
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. |
|
|
|
 |
draxx Worker


Joined: Nov 19, 2003 Posts: 186
|
Posted:
Sun Mar 29, 2009 1:39 pm |
|
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!
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!  |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
Posted:
Sun Mar 29, 2009 1:40 pm |
|
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. |
|
|
|
 |
draxx Worker


Joined: Nov 19, 2003 Posts: 186
|
Posted:
Sun Mar 29, 2009 1:44 pm |
|
| 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! Hheheheh I type too fast sometimes. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Mon Mar 30, 2009 8:41 am |
|
How about a link so I can see this because I just don't have a frame of reference  |
|
|
|
 |
|
|
|
|