Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
izone
Involved
Involved



Joined: Sep 07, 2004
Posts: 354
Location: Sweden

PostPosted: Fri Jun 17, 2005 6:58 am Reply with quote

Ok it is strange but somebody asked me this question and I cann't let it go.

The question: How can I do to show a center up block above the News insted of now showing below it???

This is the 10 000$ question!!!

Best Regards.
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Fri Jun 17, 2005 2:19 pm Reply with quote

Huh?
More specific please..
 
View user's profile Send private message
izone







PostPosted: Fri Jun 17, 2005 2:30 pm Reply with quote

hitwalker,

As it is now, if you have News module in the frontpage of nuke, and some center blocks in the frontpage, you see all News at the top of the page (index.php) and blocks is placed under the News.

How can I change it to position the blocks at the top and News under?

Sorry my english!

And one more thing, I was just kidding about 10 000$ OffTopic
 
hitwalker







PostPosted: Fri Jun 17, 2005 2:43 pm Reply with quote

hi ,

no 10.000?

well ok then.. Smile

i hope i understand you correctly...but here..admin.php?op=BlocksAdmin is where you set the possition of your blocks.

You can change it by using the arrows to change places...
If thats not what you mean you might talk about the place where the news mod shows.
Thats standard the new mod and is in center.
all other blocks can be set to center up or center down..
In that way you must find a setup you like...
You can also choose a differend inde MOD if you like but most sites use the news...
 
izone







PostPosted: Fri Jun 17, 2005 2:50 pm Reply with quote

Thanks for reply hitwalker,

Quote:

If thats not what you mean you might talk about the place where the news mod shows


Thats just what I mean.

Quote:

Thats standard the new mod and is in center.


is there an easy way to change this standard?

I guess not.

But thanks a lot for always answering to my qustions.
 
hitwalker







PostPosted: Fri Jun 17, 2005 2:59 pm Reply with quote

well i guess it can be changed but like i said,from the sites i remember they have completely different sites.
but you can easely manipulate it...
just add blocks,but put them all center up...then the news drops dow....simple solution..
 
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Fri Jun 17, 2005 3:03 pm Reply with quote

Try This:

Open your header.php

Find:
Code:
global $home;

if ($home == 1) {
    message_box();
    blocks(Center);
        include("includes/cblocks1.php");
}


Change it to read:
Code:
global $home;

if ($home == 1) {
    message_box();
    include("includes/cblocks1.php");
    blocks(Center);
}


Let me know if that does it for you.

_________________
Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. 
View user's profile Send private message
izone







PostPosted: Fri Jun 17, 2005 3:04 pm Reply with quote

64bitguy,

thanks.

I do it right now and coming back with answer.
 
izone







PostPosted: Fri Jun 17, 2005 3:13 pm Reply with quote

well in the header.php I have this code:

Code:


global $home;
if(defined("HOME_FILE")) {
   message_box();
   blocks(Center);
}


and when I change it white that one you gave me nuke dosn't work. White page only.
 
64bitguy







PostPosted: Fri Jun 17, 2005 3:16 pm Reply with quote

Replace:

Code:
global $home;

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


With:
Code:
global $home;

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


Sorry, I thought you were using the same version of conditional center blocks that I am, but this should fix it for your version.
 
izone







PostPosted: Fri Jun 17, 2005 3:19 pm Reply with quote

No, still the News is up and c block is below it.
 
64bitguy







PostPosted: Fri Jun 17, 2005 3:22 pm Reply with quote

Oh.. my bad.. I thought you were using NSN Center Blocks... You are talking about regular Center blocks.

I'll see if I can find the answer to that.

What version of Nuke are you using?
 
izone







PostPosted: Fri Jun 17, 2005 3:23 pm Reply with quote

Thanks.

I'm testing 7.8 and 7.7 right now.
 
izone







PostPosted: Fri Jun 17, 2005 3:25 pm Reply with quote

sorry I forgott to tell that when using the code that you gave me, the news and c block dosn't shows and only thing is the articles showing.
 
64bitguy







PostPosted: Fri Jun 17, 2005 3:48 pm Reply with quote

Well, I have no idea what is wrong with your test domain, because on mine, by default Center "UP" blocks show up after the "Messages" block and before the "News" articles by default.

The only time I've seen this a problem is when using NSN Conditional Center blocks and I provided the fix for that above.

You can see it demonstrated at my 7.7 test domain at: [ Only registered users can see links on this board! Get registered or login! ]
 
izone







PostPosted: Fri Jun 17, 2005 3:54 pm Reply with quote

ok maybe I couldn't make me understod.

If you see your demo page I want the "Welcome to 77.64BIT.US - Nuke 7.7 Test Domain" be shown under the sentinel block. Not abov it.

thanks
 
64bitguy







PostPosted: Fri Jun 17, 2005 4:19 pm Reply with quote

That's the Message's Block.

Then in that case, you would do the change I noted above which would move messages below the center blocks.

You can see it demonstrated at my test domain (for about 30 minutes until I change it back).

Edit the header.php file (in the root of your install, not in your theme folder) and reverse the blocks and message_box() sections to be like this:

Code:
online();

head();
include("includes/counter.php");
global $home;
if ($home == 1) {
   blocks(Center);
   message_box();

}
 
izone







PostPosted: Fri Jun 17, 2005 4:23 pm Reply with quote

Wave

Great!!!

Thanks 64bitguy,

that is what I was looking for.

You are the best.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©