2013-06-29, 03:41 PM
Hello,
i would like to disable or delete the following things:
#1: [attachment=29646]
and the ignore option from (usercp.php?action=editlists). So only the edit buddy list option will be there.
See here: [attachment=29647]
How can i do that? Any help will be appreciated.
Thanks & Regards,
k1R@
Found the solution for the ignore list.
Anyone else who likes to remove the ignore option, replace the following code with the whole code on (templates -> your template -> User Control Panel Templates -> usercp_editlists):
Still looking for the solution of the (options remove).
Found it. Just had to remove the specific lines in usercp_options template. Even if it looks abit weird now, in the end, it is what i wanted.
But i just noticed the sideboxes as example removed with it..
I had to restore it. ATTENTION: I recommend you to not change the options page in general, it is also removing the purpose of the default options. So if you as example have checked the sidebox or quicky reply before and remove this options from the template, then all these will be disabled too. I only wanted to have it like its hidden, so no one could change this. I hope MyBB gives in their next versions the possibility for the adminstrator to show and hide and create the default usercp content as desirable.
i would like to disable or delete the following things:
#1: [attachment=29646]
and the ignore option from (usercp.php?action=editlists). So only the edit buddy list option will be there.
See here: [attachment=29647]
How can i do that? Any help will be appreciated.
Thanks & Regards,
k1R@
Found the solution for the ignore list.
Anyone else who likes to remove the ignore option, replace the following code with the whole code on (templates -> your template -> User Control Panel Templates -> usercp_editlists):
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->edit_lists}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/usercp.js"></script>
<script type="text/javascript">
lang.remove_buddy = '{$lang->confirm_remove_buddy}';
lang.remove_ignored = '{$lang->confirm_remove_ignored}';
lang.adding_buddy = '{$lang->adding_buddy}';
lang.adding_ignored = '{$lang->adding_ignored}';
</script>
</head>
<body>
{$header}
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
<form action="usercp.php" method="post" id="buddy" onsubmit="return UserCP.addBuddy('buddy');">
<input type="hidden" name="action" value="do_editlists" />
<input type="hidden" name="manage" value="buddy" />
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" align="center"><strong>{$lang->edit_buddy_list}</strong></td>
</tr>
<tr>
<td class="trow1">
<fieldset>
<legend><strong>{$lang->add_buddies}</strong></legend>
<span class="smalltext">{$lang->add_buddies_desc}</span><br />
<div style="width: 120px; float: left; text-align: right;"><strong>{$lang->username_or_usernames}</strong></div>
<div style="margin-left: 130px;"><input type="text" name="add_username" id="buddy_add_username" style="width: 60%;" class="textbox" /> <input type="submit" value="{$lang->add_to_buddies}" id="buddy_submit" class="button" /></div>
<script type="text/javascript" src="jscripts/autocomplete.js?ver=1400"></script>
<script type="text/javascript">
<!--
if(use_xmlhttprequest == "1")
{
new autoComplete("buddy_add_username", "xmlhttp.php?action=get_users", {valueSpan: "username", delimChar: ","});
}
// -->
</script>
</fieldset>
<fieldset id="buddy_container">
<legend><strong>{$lang->current_buddies}</strong></legend>
<ul id="buddy_list" style="list-style: none;">
{$buddy_list}
</ul>
</fieldset>
</td>
</tr>
</table>
</form>
<br />
Still looking for the solution of the (options remove).
Found it. Just had to remove the specific lines in usercp_options template. Even if it looks abit weird now, in the end, it is what i wanted.
But i just noticed the sideboxes as example removed with it..
I had to restore it. ATTENTION: I recommend you to not change the options page in general, it is also removing the purpose of the default options. So if you as example have checked the sidebox or quicky reply before and remove this options from the template, then all these will be disabled too. I only wanted to have it like its hidden, so no one could change this. I hope MyBB gives in their next versions the possibility for the adminstrator to show and hide and create the default usercp content as desirable.