UBB.Dev
Posted By: intensity Turn off Sidebar off option - 10/06/2003 7:48 AM
Hi, I tried finding the thread in the modifactions forum for JustDave's Sidebar mod. We are using the sidebar for advertising and would like to take away the option for having the sidebar turned off.

Thanks
Posted By: JoshPet Re: Turn off Sidebar off option - 10/06/2003 8:03 AM
Not sure *exactly* which variation of this that you have.

But in editdisplay.tmpl

You should have this:

<select name="showsidebar" class="formboxes">
<option value="0" {$sidebarselect[0]}>Off</option>
<option value="1" {$sidebarselect[1]}>Left</option>
<option value="2" {$sidebarselect[2]}>Right</option>
</select>
<br /><br />


Simply remove the "off" option like this:

<select name="showsidebar" class="formboxes">
<option value="1" {$sidebarselect[1]}>Left</option>
<option value="2" {$sidebarselect[2]}>Right</option>
</select>
<br /><br />
Posted By: intensity Re: Turn off Sidebar off option - 10/06/2003 5:54 PM
Thanks Josh, I figured thats what I needed to do. Better question is what will happen with the users who have it selected off? Users who have it selected off will have it off until save their display preferences. So should I do a SQL command to change their option? Any guru's want to give me the command to save me 30 minutes of reading?
Posted By: Dave_L_dup1 Re: Turn off Sidebar off option - 10/06/2003 6:35 PM
Put sidebar on left for users who have sidebar off:

UPDATE w3t_Users SET U_SideBar=1 WHERE U_SideBar=0
© UBB.Developers