SimplePortal
Customization => Themes and Graphics => Topic started by: alblove on April 01, 2010, 11:12:32 PM
-
Someone has layots for simpleportal fronpage like has TP ???
-
You're supposed to make your own?
-
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.
-
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
-
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?
-
look my site.
in the middle are lastaposts and i want it in 2 column if is possible :P
-
Your site? Can you link to it?
-
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 ?
-
no one can made the midle column in two parts ???
-
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.
$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']),
),
);
$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:
// 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',
),
);
// 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',
),
);
if ($to < 1 || $to > 4)
if ($to < 1 || $to > 6)
$sides = array(1 => 'left', 2 => 'top', 3 => 'bottom', 4 => 'right');
$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.
<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>
<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>