TinyPortal

Development => Support => Topic started by: dannbass on October 12, 2007, 05:49:39 PM

Title: Hide bars in more sections
Post by: dannbass on October 12, 2007, 05:49:39 PM
I know is not possible now, but could it be possible to add more to this section:

// for some very large forum sections, give the option to hide bars
if($context['TPortal']['hidebars_profile']=='1' && $context['TPortal']['action']=='profile')
tp_hidebars('all');
elseif($context['TPortal']['hidebars_pm']=='1' && $context['TPortal']['action']=='pm')
tp_hidebars('all');
elseif($context['TPortal']['hidebars_memberlist']=='1' && $context['TPortal']['action']=='mlist')
tp_hidebars('all');


and in this section as well...

elseif($what=='tp_hidebarsprofile'){
                       db_query("UPDATE {$tp_prefix}settings SET value='$value' WHERE name='hidebars_profile'", __FILE__, __LINE__);
                       $go=10;
                   }
                   elseif($what=='tp_hidebarspm'){
                       db_query("UPDATE {$tp_prefix}settings SET value='$value' WHERE name='hidebars_pm'", __FILE__, __LINE__);
                       $go=10;
                   }
                   elseif($what=='tp_hidebarsmemberlist'){
                       db_query("UPDATE {$tp_prefix}settings SET value='$value' WHERE name='hidebars_memberlist'", __FILE__, __LINE__);
                       $go=10;
                   }


For example the calendar, since those are actions as well... I'm actually just interested to have the calendar without the left bar.

Thanks!
Title: Re: Hide bars in more sections
Post by: IchBin on October 12, 2007, 07:38:48 PM
You can follow my tut if you'd like. Other wise you'll have to wait until the next TP. :)
http://www.tinyportal.net/index.php?topic=13031.msg108852#msg108852

Title: Re: Hide bars in more sections
Post by: dannbass on October 12, 2007, 07:43:55 PM
Great!! That I'll do!!
Thanks a lot IchBinâ,,¢!!