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: 349
  • 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]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: Move Portal left blocks to the left of the page (image included)  (Read 4410 times)

0 Members and 1 Guest are viewing this topic.

Offline Titanium13

  • Newbie
  • Posts: 3
  • SMF Version: 2.0.6
  • SP Version: 2.3.5
Hello!,
Well I trying to move the left portal blocks all to the left of the page, in a way they can ocupy the forum from the header till the bottom. To do this I made a new div aligned to the left of the page and tried to put some code from sp_left but it couldn't put it working, so i just called the template_above_portal() function like this:
Code: [Select]
<div id="sidebar" style="background-color: #2a2a2a; width: 220px; height:1000px float: left;">
<div >
', template_portal_above(), '
     </div>
<div id="wrapper">
<div id="header">
(...)

well it was placed where I wanted it but now I have the block in two places: where I wanted and where they are originally (aligned to the left of forum body). I tried to work out how to removed that and maintain my "left sidebar" but I couldn't manage to do it.



Basically what I want is to maint the thing that is in the blue box and erased the one in the green box.


Thanks in advance!

Cumps,
Titanium13
« Last Edit: January 25, 2014, 10:13:52 PM by Titanium13 »

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Move Portal left blocks to the left of the page (image included)
« Reply #1 on: January 24, 2014, 03:55:15 PM »
Hello and welcome to SimplePortal!

What you need to do is, remove the following code:

Themes/default/Portal.template.php

Code: (Find) [Select]
if (!empty($modSettings['showleft']) && !empty($context['SPortal']['blocks'][1]))
{
echo '
<td id="sp_left"', !empty($modSettings['leftwidth']) ? ' width="' . $modSettings['leftwidth'] . '"' : '', $context['SPortal']['sides'][1]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : '', '>';

foreach ($context['SPortal']['blocks'][1] as $block)
template_block($block);

echo '
</td>';
}

Then for the part of the code you've provided, do the following:

Code: (Find) [Select]
<div >
', template_portal_above(), '
     </div>

Code: (Replace) [Select]
<div>';

foreach ($context['SPortal']['blocks'][1] as $block)
template_block($block);

echo '
</div>
And slowly, you come to realize... It's all as it should be...

Offline Titanium13

  • Newbie
  • Posts: 3
  • SMF Version: 2.0.6
  • SP Version: 2.3.5
Re: Move Portal left blocks to the left of the page (image included)
« Reply #2 on: January 25, 2014, 10:13:32 PM »
Thank you! It worked well :)

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Move Portal left blocks to the left of the page (image included)
« Reply #3 on: January 26, 2014, 03:24:20 PM »
You're welcome. ;)
And slowly, you come to realize... It's all as it should be...