SimplePortal

Customization => Custom Coding => Topic started by: velorooms on January 06, 2013, 02:42:28 PM

Title: [Code Request] Hide side panels in theme
Post by: velorooms on January 06, 2013, 02:42:28 PM
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

Code: [Select]
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
Code: [Select]
<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?
SimplePortal 2.3.8 © 2008-2024, SimplePortal