collapse collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 162
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: Frontpage Layouts ???  (Read 3611 times)

0 Members and 1 Guest are viewing this topic.

Offline alblove

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Frontpage Layouts ???
« on: April 01, 2010, 11:12:32 PM »
Someone has layots for simpleportal fronpage like has TP ???

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Frontpage Layouts ???
« Reply #1 on: April 02, 2010, 12:05:37 AM »
You're supposed to make your own?

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Frontpage Layouts ???
« Reply #2 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.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline alblove

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Frontpage Layouts ???
« Reply #3 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

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Frontpage Layouts ???
« Reply #4 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?
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline alblove

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Frontpage Layouts ???
« Reply #5 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

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Frontpage Layouts ???
« Reply #6 on: April 06, 2010, 06:01:25 AM »
Your site? Can you link to it?
And slowly, you come to realize... It's all as it should be...

Offline alblove

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Frontpage Layouts ???
« Reply #7 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 ?
« Last Edit: April 12, 2010, 08:37:10 AM by alblove »

Offline alblove

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Frontpage Layouts ???
« Reply #8 on: April 16, 2010, 11:16:42 AM »
no one can made the midle column in two parts ???

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Frontpage Layouts ???
« Reply #9 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>
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

 

SimplePortal 2.3.7 © 2008-2021, SimplePortal