SimplePortal

Customization => Custom Coding => Topic started by: phantomm on November 30, 2011, 04:51:50 PM

Title: Moving Bottom Blocks
Post by: phantomm on November 30, 2011, 04:51:50 PM
How to move 'Bottom Blocks' above Info center?
Title: Re: Moving Bottom Blocks
Post by: Blue on November 30, 2011, 05:33:02 PM
Can you explain better what do you want in order for me to be able to help? :)
Title: Re: Moving Bottom Blocks
Post by: phantomm on December 01, 2011, 04:18:05 AM
I added in bottom block Shoutbox, and I want to have this SB above info center
Title: Re: Moving Bottom Blocks
Post by: AngelinaBelle on December 02, 2011, 10:31:20 AM
Do you wish to move the block from one of Simple Portal's block lists to another one?
Or do you wish to use a Simple Portal block in a position where Simple Portal has no panel?
Title: Re: Moving Bottom Blocks
Post by: phantomm on December 02, 2011, 01:37:21 PM
I know that my english s*cks, but... :)

I wrote earlier - I want to move block/panel/shoutbox (whatever will be easier for you) with shoutbox (from SP) above info center. Don't know what more can I say..
Title: Re: Moving Bottom Blocks
Post by: Chen Zhen on December 02, 2011, 02:09:54 PM
I know that my english s*cks, but... :)

I wrote earlier - I want to move block/panel/shoutbox (whatever will be easier for you) with shoutbox (from SP) above info center. Don't know what more can I say..

Navigate to file: Themes/default/BoardIndex.template.php
(same edit to any theme that has its own equivalent file)

Find:
Code: [Select]
template_info_center();

Replace with:
Code: [Select]
/* template_info_center(); */
 



Create a bottom php block with the following:
Code: [Select]
global $sourcedir;
@require_once($sourcedir.'/BoardIndex.php');

BoardIndex();
template_info_center();

Set the block with the following:

You will then be able to put it in the order you wish.
Title: Re: Moving Bottom Blocks
Post by: AngelinaBelle on December 02, 2011, 03:06:42 PM
Or you could try moving both of these blocks in the header blocks list, so they would be at the top of the page.
Then you could put the shoutbox before the custom php block with the info center.
Title: Re: Moving Bottom Blocks
Post by: phantomm on December 02, 2011, 03:13:43 PM
@Underdog, thank you! That's exactly what I wanted :)

@AngelinaBelle, I don't think that I understand what do you mean.. but instructions from Underdog solved my problem ;)
Title: Re: Moving Bottom Blocks
Post by: AngelinaBelle on December 06, 2011, 09:12:56 AM
I am glad Underdog understood you better than I did.
Regards!
Title: Re: Moving Bottom Blocks
Post by: Lout on June 17, 2012, 07:02:48 PM
Hi,

I've followed the steps above to successfully locate the shoutbox above the Info Center by adding the Info Center to a block but it is slightly out of line with the rest of the forum as seen in the pic attached. Is there a way of adjusting the padding to shift it a few pixels to the left and if so, how?

Thanks in advance.
Title: Re: Moving Bottom Blocks
Post by: Old Fossil on June 17, 2012, 09:20:55 PM
Lout

Please do not invade another users topic specially when their topic is solved.

You would do better to start a fresh topic otherwise it will be missed.
Title: Re: Moving Bottom Blocks
Post by: Lout on June 17, 2012, 10:07:15 PM
The topic isn't actually marked as solved though, additionally my question directly relates to the posts previously, however have it your way, I'll create a new topic and use up further server space by uploading the attachment again.
Title: Re: Moving Bottom Blocks
Post by: AngelinaBelle on June 18, 2012, 10:13:45 AM
Lout -- this is another way of tackling the same problem.

A link to your page would help us understand better.
Title: Re: Moving Bottom Blocks
Post by: Lout on June 18, 2012, 07:36:05 PM
Hi Angelina,

It's fine - I created another topic here (http://simpleportal.net/index.php?topic=11455.0) but worked out the solution myself. I did post the solution though in case it helps anyone else.  8)
Title: Re: Moving Bottom Blocks
Post by: AngelinaBelle on June 21, 2012, 08:25:27 AM
I'm glad you figured it out.  Thanks for posting the solution.  It might help someone else.
SimplePortal 2.3.8 © 2008-2024, SimplePortal