Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable invisible mode?
#1
Is there a way to disable invisible mode so the users can't use it?
#2
As far as I'm aware, there is no way to do this using the user group permissions. However you can hide the option from your users by deleting a portion of a template. Note that this wont un-hide hidden members.

Go into your themes templates and find the usercp_options template. Its in the User Control Panel Templates set (bottom of the page). Your looking for the part of the template which houses the invisible checkbox object and all the surrounding parts. You need to delete that part. In the default template this would be the chunk of code to get rid of

Code:
<html>
<head>
<title>$settings[bbname] - $lang->edit_options</title>
$headerinclude
</head>
<body>
$header
<form action="usercp.php" method="post">
<table width="$theme[tablewidth]" border="0" align="center">
<tr>
$usercpnav
<td valign="top">
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>$lang->edit_options</strong></td>
</tr>
<tr>
<td width="50%" class="trow1" valign="top">
<fieldset class="trow2">
<legend><strong>$lang->login_cookies_privacy</strong></legend>
<table cellspacing="0" cellpadding="$theme[tablespace]">
<tr>
[color=#ff0000][b]<td valign="top" width="1"><input type="checkbox" name="invisible" id="invisible" value="yes" $invisiblecheck /></td>
<td><span class="smalltext"><label for="invisible">$lang->invisible_mode</label></span></td>
</tr>[/b][/color]
<tr>
<td valign="top" width="1"><input type="checkbox" name="remember" id="remember" value="yes" $remembercheck /></td>
<td><span class="smalltext"><label for="remember">$lang->remember_me</label></span></td>
</tr>
</table>
</fieldset>
<br />
<fieldset class="trow2">
<legend><strong>$lang->messaging_notification</strong></legend>
<table cellspacing="0" cellpadding="$theme[tablespace]">
<tr>
<td valign="top" width="1"><input type="checkbox" name="allownotices" id="allownotices" value="yes" $allownoticescheck /></td>
<td><span class="smalltext"><label for="allownotices">$lang->allow_notices</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" name="hideemail" id="hideemail" value="yes" $hideemailcheck /></td>
<td><span class="smalltext"><label for="hideemail">$lang->allow_emails</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" name="emailnotify" id="emailnotify" value="yes" $emailnotifycheck /></td>
<td><span class="smalltext"><label for="emailnotify">$lang->email_notify</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" name="receivepms" id="receivepms" value="yes" $receivepmscheck /></td>
<td><span class="smalltext"><label for="receivepms">$lang->receive_pms</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" name="pmpopup" id="pmpopup" value="yes" $pmpopupcheck /></td>
<td><span class="smalltext"><label for="pmpopup">$lang->pm_popup</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" name="pmnotify" id="pmnotify" value="yes" $pmnotifycheck /></td>
<td><span class="smalltext"><label for="pmnotify">$lang->pm_notify</label></span></td>
</tr>
</table>
</fieldset>
<br />
<fieldset class="trow2">
<legend><strong>$lang->date_time_options</strong></legend>
<table cellspacing="0" cellpadding="$theme[tablespace]">
<tr>
<td><span class="smalltext">$lang->date_format</span></td>
</tr>
<tr>
<td>
<select name="dateformat">
<option value="">$lang->use_default</option>
<option value="1" $dateselect[1]>01-25-2004</option>
<option value="2" $dateselect[2]>01-25-04</option>
<option value="3" $dateselect[3]>01.25.2004</option>
<option value="4" $dateselect[4]>01.25.04</option>
<option value="5" $dateselect[5]>25-01-2004</option>
<option value="6" $dateselect[6]>25-01-04</option>
<option value="7" $dateselect[7]>25.01.2004</option>
<option value="8" $dateselect[8]>25.01.04</option>
<option value="9" $dateselect[9]>January 25th, 2004</option>
<option value="10" $dateselect[10]>Saturday, January 25th, 2004</option>
<option value="11" $dateselect[11]>25th January 1998</option>
<option value="12" $dateselect[12]>Saturday, 25th January 2004</option>
</select>
</td>
</tr>
<tr>
<td><span class="smalltext">$lang->time_format</span></td>
</tr>
<tr>
<td>
<select name="timeformat">
<option value="">$lang->use_default</option>
<option value="1" $timeselect[1]>08:15 pm</option>
<option value="2" $timeselect[2]>08:15 PM</option>
<option value="3" $timeselect[3]>20:15</option>
</select>
</td>
</tr>
<tr>
<td><span class="smalltext">$lang->time_offset</span></td>
</tr>
<tr>
<td >$tzselect</td>
</tr>
</table>
<table cellspacing="0" cellpadding="$theme[tablespace]">
<tr>
<td valign="top" width="1"><input type="checkbox" name="dst" id="dst" value="yes" $dstcheck /></td>
<td><span class="smalltext"><label for="dst">$lang->dst</label></span></td>
</tr>
</table>
</fieldset>
</td>
<td width="50%" class="trow1" valign="top">
<fieldset class="trow2">
<legend><strong>$lang->forum_display_options</strong></legend>
<table cellspacing="0" cellpadding="$theme[tablespace]">
$tppselect
<tr>
<td><span class="smalltext">$lang->thread_view</span></td>
</tr>
<tr>
<td>
<select name="daysprune">
<option value="">$lang->use_default</option>
<option value="1" $daysprunesel[1]>$lang->thread_view_lastday</option>
<option value="5" $daysprunesel[5]>$lang->thread_view_5days</option>
<option value="10" $daysprunesel[10]>$lang->thread_view_10days</option>
<option value="20" $daysprunesel[20]>$lang->thread_view_20days</option>
<option value="50" $daysprunesel[50]>$lang->thread_view_50days</option>
<option value="75" $daysprunesel[75]>$lang->thread_view_75days</option>
<option value="100" $daysprunesel[100]>$lang->thread_view_100days</option>
<option value="365" $daysprunesel[365]>$lang->thread_view_year</option>
<option value="1000" $daysprunesel[1000]>$lang->thread_view_all</option>
</select>
</td>
</tr>
</table>
</fieldset>
<br />
<fieldset class="trow2">
<legend><strong>$lang->thread_view_options</strong></legend>
<table cellspacing="0" cellpadding="$theme[tablespace]">
<tr>
<td valign="top" width="1"><input type="checkbox" name="showsigs" id="showsigs" value="yes" $showsigscheck /></td>
<td><span class="smalltext"><label for="showsigs">$lang->show_sigs</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" name="showavatars" id="showavatars" value="yes" $showavatarscheck /></td>
<td><span class="smalltext"><label for="showavatars">$lang->show_avatars</label></span></td>
</tr>
<tr>
<td valign="top" width="1"><input type="checkbox" name="showquickreply" id="showquickreply" value="yes" $showquickreplycheck /></td>
<td><span class="smalltext"><label for="showquickreply">$lang->show_quick_reply</label></span></td>
</tr>
$pppselect
<tr>
<td colspan="2"><span class="smalltext">$lang->thread_mode</span></td>
</tr>
<tr>
<td colspan="2"><select name="threadmode"><option value="">$lang->use_default</option><option value="linear" $threadview[linear]>$lang->linear</option><option value="threaded" $threadview[threaded]>$lang->threaded</option></select></td>
</tr>
</table>
</fieldset>
<br />
<fieldset class="trow2">
<legend><strong>$lang->other_options</strong></legend>
<table cellspacing="0" cellpadding="$theme[tablespace]">
<tr>
<td valign="top" width="1"><input type="checkbox" name="showcodebuttons" id="showcodebuttons" value="1" $showcodebuttonscheck /></td>
<td><span class="smalltext"><label for="showcodebuttons">$lang->show_codebuttons</label></span></td>
</tr>
<tr>
<td colspan="2"><span class="smalltext">$lang->style</span></td>
</tr>
<tr>
<td colspan="2">$stylelist</td>
</tr>
<tr>
<td colspan="2"><span class="smalltext">$lang->board_language</span></td>
</tr>
<tr>
<td colspan="2"><select name="language"><option value="">$lang->use_default</option><option value="0">-----------</option>$langoptions</select></td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
<br />
<div align="center">
<input type="hidden" name="action" value="do_options">
<input type="submit" class="submit" name="regsubmit" value="$lang->update_options">
</div>
</td>
</tr>
</table>
</form>
$footer
</body>
</html>
[Image: sig-mint.png]
#3
Thank you very much!
#4
Marking as solved
[Image: sig-mint.png]


Forum Jump:


Users browsing this thread: 1 Guest(s)