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

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Responsive  (Read 13036 times)

0 Members and 1 Guest are viewing this topic.

Offline Petter

  • Jr. Member
  • **
  • Posts: 53
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Responsive
« on: November 25, 2013, 05:01:25 AM »

Is there a way to make the side columns collapse automatically at small window sizes? Or when using mobile phones?


well.. there could be way to use JavaScript to detect screen resolution and if detected dimensions are lower than **px x **px run:
Code: [Select]
$modSettings['showleft'] = '0';
$modSettings['showright'] = '0';


I remember that I tried to make something with JS screen resolution detection, but it never worked as it should... Maybe someone else can help more


I'm sure that there is better way to deal with this than disabling blocks :E

Offline Petter

  • Jr. Member
  • **
  • Posts: 53
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Responsive
« Reply #1 on: December 09, 2013, 05:12:07 AM »
This is mentioned at: http://www.idesign360.com/community/index.php/topic,424.msg1913/
No answer, but I do think the site is using Simpleportal with automatic collapse of the sidebar (try resizing browser window). Can anyone find out how it´s done?

Offline Petter

  • Jr. Member
  • **
  • Posts: 53
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Responsive
« Reply #2 on: December 10, 2013, 04:11:42 AM »
I only have a column on the right side. Would it be easier to have it just pop down under the main content when the window size is narrow?


Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Responsive
« Reply #3 on: December 11, 2013, 08:51:45 AM »
It should be easier to hide it. You could add something like this at the end of portal.css file:

Code: [Select]
@media only screen and (max-width: 480px)
{
#sp_right
{
display: none;
visibility: hidden;
}
}
And slowly, you come to realize... It's all as it should be...

Offline Petter

  • Jr. Member
  • **
  • Posts: 53
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Responsive
« Reply #4 on: December 11, 2013, 09:21:57 AM »
Thanks SiNaN!
Works fine! I will use this on my site.


I read at http://www.responsivegridsystem.com
on how to make the column show below the main content, but did not understand.
With
Code: [Select]
@media only screen and (max-width: 780px)
{
   #sp_right
   {
      width: 100%;
   }
}
the column covers the main content.
Maybe that grid system is not applicable the way SP is built?

Since the column is loaded even if its hidden, I thought the best is to make use of it and show it below.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Responsive
« Reply #5 on: January 02, 2014, 05:43:47 PM »
We're using a table to keep the blocks intact. So it's not as easy to just display it below. This will probably change in the next versions thought, when we get to re-code the templates.
And slowly, you come to realize... It's all as it should be...

Offline Petter

  • Jr. Member
  • **
  • Posts: 53
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Responsive
« Reply #6 on: January 03, 2014, 03:33:41 AM »
We're using a table to keep the blocks intact. So it's not as easy to just display it below. This will probably change in the next versions thought, when we get to re-code the templates.


Could it be a built in feature to let the right side column disappear/ show below at small screen sizes?
« Last Edit: January 13, 2014, 06:22:26 AM by Petter »

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Responsive
« Reply #7 on: January 03, 2014, 10:03:37 AM »
Maybe. The responsive design thing is getting popular, so we may consider that.
And slowly, you come to realize... It's all as it should be...

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: Responsive
« Reply #8 on: January 06, 2014, 08:12:16 PM »
Probably due to the new age of more portable equipment being able to view the Internet.

Tables are becoming less and less used as building blocks for the foundation of a template and used specifically for organizing actual data now.

Offline Petter

  • Jr. Member
  • **
  • Posts: 53
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Responsive
« Reply #9 on: February 15, 2014, 07:22:08 AM »
If I want the column to disappear at small window sizes, I can see 3 options. I would be very glad if anyone can tell me if they are possible, and which would be the best.


1. Hide the side column with "@media only screen and (max-width: 480px)" and make it show again when clicking a button? Possible?


2. Hide the side column with "@media only screen and (max-width: 480px)" and make a set of identical blocks at the bottom that are hidden at "@ (min-width: 480px)". The effect would be that the side column seems to pop under the main content at small widths. Possible?


3. No SP-column. Use a responsive sidebar menu like http://mmenu.frebsite.nl  and call SP-blocks to it. Possible?

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Responsive
« Reply #10 on: February 17, 2014, 05:08:06 AM »
They are all possible but it's for you to decide which one is the best for your case. I've shown the basic method of having screen size specific CSS declarations above. I won't be able to give you the exact code you want though.
And slowly, you come to realize... It's all as it should be...