SimplePortal

Customization => Themes and Graphics => Topic started by: alblove on April 01, 2010, 11:12:32 PM

Title: Frontpage Layouts ???
Post by: alblove on April 01, 2010, 11:12:32 PM
Someone has layots for simpleportal fronpage like has TP ???
Title: Re: Frontpage Layouts ???
Post by: ccbtimewiz on April 02, 2010, 12:05:37 AM
You're supposed to make your own?
Title: Re: Frontpage Layouts ???
Post by: Nathaniel on April 03, 2010, 08:27:44 AM
What exactly do you mean by layouts? If you are referring to the positioning of blocks and which blocks you have, then that is something that each admin can do for themselves.
Title: Re: Frontpage Layouts ???
Post by: alblove on April 03, 2010, 08:53:14 AM
Look my site and last post are shown:

header
--------------------
--------------------
--------------------
--------------------
footer

i'd like to have somthing like this:

               header
SB_____lastposts_____SB_
|    |_______|_______|__|
|    |_______|_______|    |
|    |_______|_______|    |
|    |_______|_______|    |
footer

or better (and if posible i need to resize images post more then 300px)

               header
SB_         lastposts       SB_
|    |____|_____|____|__|
|    |____|_____|____|    |
|    |____|_____|____|    |
|    |____|_____|____|    |
                 footer

I hope you understand me :)

tns in advance
Title: Re: Frontpage Layouts ???
Post by: Nathaniel on April 03, 2010, 06:53:09 PM
So you want to add more 'sides' to the middle of your portal? Or have blocks in the middle which are next to each other?
Title: Re: Frontpage Layouts ???
Post by: alblove on April 04, 2010, 06:22:26 AM
look my site.
in the middle are lastaposts and i want it in 2 column if is possible   :P
Title: Re: Frontpage Layouts ???
Post by: [SiNaN] on April 06, 2010, 06:01:25 AM
Your site? Can you link to it?
Title: Re: Frontpage Layouts ???
Post by: alblove on April 12, 2010, 08:34:44 AM
Your site? Can you link to it?

ops sorry

my site is http://www.alblove.com

i want make the midle column of latest posts in two columns.
is it possible ?
Title: Re: Frontpage Layouts ???
Post by: alblove on April 16, 2010, 11:16:42 AM
no one can made the midle column in two parts ???
Title: Re: Frontpage Layouts ???
Post by: Nathaniel on April 25, 2010, 07:45:46 AM
Well, it isn't a particularly pretty solution, but it works. I suggest that you backup your 'smf_sp_blocks' table before trying it, as it changes the side ids.

You will also have to move some blocks around once the changes are made.

Essentially these edits mean that you have two new sides, top2 and bottom2. There will be a 'left' top and a 'right' top, so there are two columns in the top section instead of the one, same with the bottom section.

1) Upload the attached Portal.template.php file to your '/Themes/Default/' folder.

2) Edits for your Sources/Subs-Portal.php file.
Code: ("Find") [Select]
$context['SPortal']['sides'] = array(
1 => array(
'id' => '1',
'name' => 'left',
'active' => !empty($modSettings['showleft']),
),
2 => array(
'id' => '2',
'name' => 'top',
'active' => true,
),
3 => array(
'id' => '3',
'name' => 'bottom',
'active' => true,
),
4 => array(
'id' => '4',
'name' => 'right',
'active' => !empty($modSettings['showright']),
),
);

Code: ("Replace") [Select]
$context['SPortal']['sides'] = array(
1 => array(
'id' => '1',
'name' => 'left',
'active' => !empty($modSettings['showleft']),
),
2 => array(
'id' => '2',
'name' => 'top',
'active' => true,
),
3 => array(
'id' => '5',
'name' => 'top2',
'active' => true,
),
4 => array(
'id' => '3',
'name' => 'bottom',
'active' => true,
),
5 => array(
'id' => '6',
'name' => 'bottom2',
'active' => true,
),
6 => array(
'id' => '4',
'name' => 'right',
'active' => !empty($modSettings['showright']),
),
);

3) Edits for your 'Sources/PortalAdminBlocks.template.php' file:

Code: ("Find") [Select]
// We have 4 sides...
$context['sides'] = array(
'left' => array(
'id' => '1',
'name' => 'adminLeft',
'label' => $txt['sp-positionLeft'],
'help' => 'sp-blocksLeftList',
),
'top' => array(
'id' => '2',
'name' => 'adminTop',
'label' => $txt['sp-positionTop'],
'help' => 'sp-blocksTopList',
),
'bottom' => array(
'id' => '3',
'name' => 'adminBottom',
'label' => $txt['sp-positionBottom'],
'help' => 'sp-blocksBottomList',
),
'right' => array(
'id' => '4',
'name' => 'adminRight',
'label' => $txt['sp-positionRight'],
'help' => 'sp-blocksRightList',
),
);

Code: ("Replace") [Select]
// We have 4 sides...
$context['sides'] = array(
'left' => array(
'id' => '1',
'name' => 'adminLeft',
'label' => $txt['sp-positionLeft'],
'help' => 'sp-blocksLeftList',
),
'top' => array(
'id' => '2',
'name' => 'adminTop',
'label' => $txt['sp-positionTop'] . ' ' .  $txt['sp-positionLeft'],
'help' => 'sp-blocksTopList',
),
'top2' => array(
'id' => '3',
'name' => 'adminTop2',
'label' => $txt['sp-positionTop'] . ' ' .  $txt['sp-positionRight'],
'help' => 'sp-blocksTopList',
),
'bottom' => array(
'id' => '4',
'name' => 'adminBottom',
'label' => $txt['sp-positionBottom'] . ' ' .  $txt['sp-positionLeft'],
'help' => 'sp-blocksBottomList',
),
'bot2' => array(
'id' => '5',
'name' => 'adminBottom2',
'label' => $txt['sp-positionBottom'] . ' ' .  $txt['sp-positionRight'],
'help' => 'sp-blocksBottomList',
),
'right' => array(
'id' => '6',
'name' => 'adminRight',
'label' => $txt['sp-positionRight'],
'help' => 'sp-blocksRightList',
),
);

Code: ("Find") [Select]
if ($to < 1 || $to > 4)
Code: ("Replace") [Select]
if ($to < 1 || $to > 6)
Code: ("Find") [Select]
$sides = array(1 => 'left', 2 => 'top', 3 => 'bottom', 4 => 'right');

Code: ("Replace") [Select]
$sides = array(1 => 'left', 2 => 'top', 3 => 'top2', 4 => 'bottom', 5 => 'bottom2', 6 => 'right');
4) Make these edits to your 'Themes/default/PortalAdminBlocks.template.php' file.
Code: ("Find") [Select]
<td class="sp_center">', $side['id'] != 1 ? $block['moveleft'] : '', $block['row'] != 1 ? $block['moveup'] : '', $block['row'] != count($context['blocks'][$side['name']]) ?  $block['movedown'] : '', $side['id'] != 4 ? $block['moveright'] : '', '</td>

Code: ("Replace") [Select]
<td class="sp_center">', $side['id'] != 1 ? $block['moveleft'] : '', $block['row'] != 1 ? $block['moveup'] : '', $block['row'] != count($context['blocks'][$side['name']]) ?  $block['movedown'] : '', $side['id'] != 6 ? $block['moveright'] : '', '</td>
SimplePortal 2.3.8 © 2008-2024, SimplePortal