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: 407
  • 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: Side Blocks Only on Certain Theme...  (Read 24807 times)

0 Members and 1 Guest are viewing this topic.

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Side Blocks Only on Certain Theme...
« on: May 26, 2015, 01:07:01 PM »
I am planning on adding a new mobile theme to my site, and a mod that changes mobiles to that theme.
However, I'd like to set the portal to be on that theme, but not to display the side blocks on it.

Is there any way to do this?

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Side Blocks Only on Certain Theme...
« Reply #1 on: May 26, 2015, 01:24:49 PM »
The idea is the same as the other topic, do it via css. Allow the block to be displayed in all themes, and for the themes you don't want it to show up, deny it via css, something like:
Code: [Select]
#sp_block_ID  { display: none; } that goes in your theme css main file (bootstrap.css for example).
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: Side Blocks Only on Certain Theme...
« Reply #2 on: May 26, 2015, 01:34:26 PM »
You know how long and how many I'd have to do, for that to work? LOL
But, I wonder if would work doing something similar:

Code: [Select]
#sp_left  { display: none; }
#sp_right  { display: none; }

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Side Blocks Only on Certain Theme...
« Reply #3 on: May 26, 2015, 01:39:02 PM »
It should, otherwise just
Code: [Select]
#sp_block_id, #sp_block_id etc { display: none } I don't think you have more than 10 blocks per side at maximum :) Won't really take long ;)
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: Side Blocks Only on Certain Theme...
« Reply #4 on: May 26, 2015, 01:47:17 PM »
Takes a while to get all the block ID's and write it up... LOL ;)
Going to try my idea first, then if not, I'll have to do it that way.

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Side Blocks Only on Certain Theme...
« Reply #5 on: May 26, 2015, 04:09:15 PM »
Just enable all blocks, inspect the page and memorize each number or type them down, it's surely faster than c/p one by one :P (Pls no kill me ;D )
« Last Edit: May 27, 2015, 12:52:05 PM by ♦ Ninja ZX-10RR ♦ »
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: Side Blocks Only on Certain Theme...
« Reply #6 on: May 26, 2015, 04:17:12 PM »
Better yet, my fine trouted friend.
I did even more than I expected, with my way above.

I now have side blocks on big screens, and none on small screens!

portal.css file, copy to the mobile theme you are using. I have selected Redsy.

Find:

Code: [Select]
#sp_left
{
vertical-align: top;
}
#sp_right
{
vertical-align: top;
}

Replace with:

Code: [Select]
#sp_left
{
vertical-align: top;
    padding-right: 10px;
}
#sp_right
{
vertical-align: top;
    padding-left: 10px;
}

Then you find:

Code: [Select]
body
{
min-width: 750px;
}

Replace it with:

Code: [Select]
@media only screen and (max-width: 750px), only screen and (min-resolution: 300dpi) {

#sp_main #sp_center {
display: block;
width: auto !important;
padding: 0;
}
#sp_left  { display: none; }
#sp_right  { display: none; }
}

This makes it so the side blocks have the correct space between them on big screens, but do not show up at all, on mobile devices. :)

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Side Blocks Only on Certain Theme...
« Reply #7 on: May 26, 2015, 05:25:25 PM »
Well yes you optimized it with the "responsive fix" :) Nice work indeed!
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline xpress

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Side Blocks Only on Certain Theme...
« Reply #8 on: May 27, 2015, 11:22:06 AM »
How will I get the block I'd?????? Cos I don't understand the I'd you talking about.

Offline xpress

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Side Blocks Only on Certain Theme...
« Reply #9 on: May 27, 2015, 11:47:25 AM »
Guess the I'd you mean is Left or Right!!!!!!?

And please the theme I must to edit. Is it

Boostrap.css in the mobile theme I want to use? Or portal.css

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Side Blocks Only on Certain Theme...
« Reply #10 on: May 27, 2015, 12:58:42 PM »
Hi and welcome to SimplePortal.
First thing please post a single message instead of two, just use the edit message button ;)

Second thing is the solution, there are 2:
A) In the block list page (admin panel) hover on one of the buttons present next to the block name (activate, modify, move, delete). You will see an id=X in the URL that will be displayed in the bottom-left of your browser (the one that tells you where you are going to end up by clicking a link).

B) Create the block, go to where it is supposed to be displayed, right click, inspect element. Look of for something like "div id="#sp_block_X" the X will be replaced by the number you are looking for.

To clarify, the "Recent Posts" block here on SimplePortal is ID=38, even if the theme is a bit custom it should be clear anyways.

Regards
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline xpress

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Side Blocks Only on Certain Theme...
« Reply #11 on: May 27, 2015, 04:54:41 PM »
Which css will I edit to input the #block id to display non! Bootstarp.css or portal.css

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Side Blocks Only on Certain Theme...
« Reply #12 on: May 27, 2015, 05:31:01 PM »
How can I know without seeing it? portal.css should always work by the way. Also... Try it and if it doesn't work do the other one?
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline xpress

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Side Blocks Only on Certain Theme...
« Reply #13 on: May 27, 2015, 05:34:21 PM »
What am trying to say is! I activate both my L/R s.portal. I don't want the L/R portal to display on mobile! I only Want it to show on computer if I access my forum with my desktop!

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Side Blocks Only on Certain Theme...
« Reply #14 on: May 27, 2015, 05:38:54 PM »
Yes, follow the instructions and the links already provided.
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: Side Blocks Only on Certain Theme...
« Reply #15 on: May 27, 2015, 05:41:58 PM »
Since my issue, the reason of this topic, is done, I have marked it as solved. :)

Offline xpress

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Side Blocks Only on Certain Theme...
« Reply #16 on: May 27, 2015, 06:03:32 PM »
Since my issue, the reason of this topic, is done, I have marked it as solved. :)

Don't marked it solve! Please am only asking for the css to edit!

If I edit the portal.css it may not display on computer too. Cos the portal.css work for the theme name am using!

@BurkeKnight you already through with this! Tell me the solution or answer to my question or problem am having!!!

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Side Blocks Only on Certain Theme...
« Reply #17 on: May 27, 2015, 06:32:37 PM »
First off, we are all volunteers. As such requesting things like that is kind of impolite.
Secondly, this topic was created by BurkeKnight and it was (and is) about an issue with side blocks that has been solved by both BurkeKnight himself and me co-operating with him.
Third point is that the topic, to him, is solved. As such, it WILL stay solved because he is opening poster.
Fourth one is to follow the instructions me and BurkeKnight already provided. Do note you will need an hard refresh to see the changes in a css file, which means either purging the forum cache or pressing ctrl+f5 instead of just f5 while refreshing the page.
Last thing:
How can I know without seeing it? portal.css should always work by the way. Also... Try it and if it doesn't work do the other one?

Regards
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: Side Blocks Only on Certain Theme...
« Reply #18 on: May 27, 2015, 08:53:44 PM »
@BurkeKnight you already through with this! Tell me the solution or answer to my question or problem am having!!!

I already told you the answers I know.
I do not know what your forum has for mods, or what your theme has for files.
I do not even know what your forum looks like.
There is no way I can answer anymore without information to use to figure it out.

Offline xpress

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Side Blocks Only on Certain Theme...
« Reply #19 on: May 28, 2015, 06:02:51 AM »
@BurkeKnight you already through with this! Tell me the solution or answer to my question or problem am having!!!

I already told you the answers I know.
I do not know what your forum has for mods, or what your theme has for files.
I do not even know what your forum looks like.
There is no way I can answer anymore without information to use to figure it out.

My mobile & computer theme is Reseller. The block side bar is still showing on mobile. So am asking for the css to edit in the reseller theme. To stop showing the side bar on mobile. Only want it to show on computer.