MyBB Community Forums

Full Version: how to remove ignore list?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Tried search, but couldn't find it

in MyBB 1.6
Is it possible to remove/disable ignore list and "add to ignore" function (or make it invisible for end-users somehow?)

Well, ideally I would remove "add to ignore" option and rename "Buddy/ignore list" to just "Buddy list". Is it possible?

Thanks!
Remove the links to the ignore list in your templates. I don't know which templates they are, I'll get back to you later.
(2010-09-23, 05:47 PM)Kyuubi Wrote: [ -> ]Remove the links to the ignore list in your templates. I don't know which templates they are, I'll get back to you later.

Thank you!!!
I thought about editing the templates, but I'm not confident enough to touch it, as I don't want to mess up the codeSmile
Will be waiting for your reply
Thanks!

Why do you want to remove this feature?
(2010-09-23, 10:15 PM)Islander Wrote: [ -> ]
(2010-09-23, 05:47 PM)Kyuubi Wrote: [ -> ]Remove the links to the ignore list in your templates. I don't know which templates they are, I'll get back to you later.

Thank you!!!
I thought about editing the templates, but I'm not confident enough to touch it, as I don't want to mess up the codeSmile
Will be waiting for your reply
Thanks!
If you mess up just revert the template. ^_^ Are copy and paste the whole code for that part and if you mess up just paste in the good code. ^_^

(2010-09-23, 10:54 PM)Uncontrol Wrote: [ -> ]Why do you want to remove this feature?

Well, the forum's main audience is mostly mature like-minded people from local communities, interested in serious discussions on the forum's topic. Most of these people know each other in real life. The "add to ignore" feature just looks "unfriendly" on this particular forum, and many people just will not understand why it's there.

At the same time, I would like to keep the "add to buddy list" option

Thanks for asking Smile

(2010-09-23, 11:37 PM)blake Wrote: [ -> ]If you mess up just revert the template. ^_^ Are copy and paste the whole code for that part and if you mess up just paste in the good code. ^_^

Yes I know that, but my problem is that I don't know which code to try to remove, how it looks like, and even where exactly (in which template) to look for it Shy
Thanks for the answer.
So basically I need to change 2 things
1) In UserCP rename "Buddy/Ignore List" to "Buddy List".
2) in UserCP hide (remove) "Edit Ignore List" block.

Sounds to me like it should be possibleSmile

Ok, it seems that I found the templates that should be edited.
In User Control Panel Templates:
usercp_editlists and usercp_editlists_user

However I'm still not sure what code to delete... Sad
Open usercp_editlists, find and delete:
        <br />
        <form action="usercp.php" method="post" id="ignored" onsubmit="return UserCP.addBuddy('ignored');">
            <input type="hidden" name="action" value="do_editlists" />
            <input type="hidden" name="manage" value="ignored" />
            <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_ignore_list}</strong></td>
                </tr>
                <tr>
                    <td class="trow1">
                        <fieldset>
                            <legend><strong>{$lang->add_ignored_users}</strong></legend>
                            <span class="smalltext">{$lang->add_ignored_users_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="ignored_add_username" style="width: 60%;" class="textbox" /> <input type="submit" value="{$lang->ignore_users}" id="ignored_submit" class="button" /></div>
                            <script type="text/javascript">
                            <!--
                                if(use_xmlhttprequest == "1")
                                {
                                    new autoComplete("ignored_add_username", "xmlhttp.php?action=get_users", {valueSpan: "username", delimChar: ","});
                                }
                            // -->
                            </script>
                        </fieldset>
                        <fieldset id="ignored_container">
                            <legend><strong>{$lang->current_ignored_users}</strong></legend>
                            <ul id="ignore_list" style="list-style: none;">
                                {$ignore_list}
                            </ul>
                        </fieldset>
                    </td>
                </tr>
            </table>
        </form>

To change what's shown on the User CP navigation menu: ACP >> Configuration >> Languages >> *yourlang* >> usercpnav.lang.php >> ucp_nav_editlists

In ./member.php comment out lines 1777 -1785, like so:
/*        $ignore_list = explode(',', $mybb->user['ignorelist']);
        if(in_array($mybb->input['uid'], $ignore_list))
        {
            $buddy_options .= "<br /><a href=\"./usercp.php?action=do_editlists&amp;manage=ignored&amp;delete={$mybb->input['uid']}&amp;my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/remove_ignore.gif\" /> {$lang->remove_from_ignore_list}</a>";
        }
        else
        {
            $buddy_options .= "<br /><a href=\"./usercp.php?action=do_editlists&amp;manage=ignored&amp;add_username=".urlencode($memprofile['username'])."&amp;my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/add_ignore.gif\" /> {$lang->add_to_ignore_list}</a>";
        } */
(2010-09-24, 10:32 AM)AJS Wrote: [ -> ]...........................


Everything works right as I wanted!!!
THANK YOU SO MUCH!!!!!!!!!!