Main Menu
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 log in.

Who's Online

  • Dot Guests: 1117
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

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]


Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

[Code Request] Hide side panels in theme

Started by velorooms, January 06, 2013, 02:42:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

velorooms

If anybody is about, have another little coding request.

At the moment, i have a tablet theme that doesnt have the side panels by setting that theme to not load side panels in the portal blocks but that has its flaws, in that guest blocks show up in the theme as do all blocks not seen by the user as default.

A better way to do it would be using the built in hide side panels feature which i have disabled as default deliberately.

the code in question is

a href="#side" onclick="return sp_collapseSide(1)">ev
<img src="http://velorooms.com/Themes/tabwide/images/sp/collapse.png" alt="collapse" id="sp_collapse_side1"/>


and
<a href="#side" onclick="return sp_collapseSide(4)">ev
<img src="http://velorooms.com/Themes/tabwide/images/sp/collapse.png" alt="collapse" id="sp_collapse_side4"/>


Now, is there anyway that his could be built into the themes index template, so that when loading that theme it automatically hid the two side panels?
Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5