Excellent hack!
Of course, if you're going to do that for the buddy list, you might as well do it for the ignore list ;D
Here's how:
1. In member.php, after (added as part of afterlab's hack):
PHP Code:
$buddy_list = "-$bbuserinfo[buddylist]";
if (strpos($buddy_list, $userinfo[userid])) {
eval("\$isbuddy = \"".gettemplate("getinfo_isbuddy")."\";");
} else {
eval("\$isbuddy = \"".gettemplate("getinfo_addbuddy")."\";");
}
add the following:
PHP Code:
// ignore emblem hack
$ignore_list = "-$bbuserinfo[ignorelist]";
if (strpos($ignore_list, $userinfo[userid])) {
eval("\$isignore = \"".gettemplate("getinfo_isignore")."\";");
} else {
eval("\$isignore = \"".gettemplate("getinfo_addignore")."\";");
}
// end ignore emblem hack
2. Create two new templates:
Template 1: getinfo_isignore:
Code:
<font color="{ linkcolor }">$userinfo[username] is currently on your Ignore List
[<a href="member2.php?s=$session[sessionhash]&action=removelist&userlist=ignore&userid=$userinfo[userid]">remove</a>]</font>
Template 2: getinfo_addignore:
Code:
<a href="member2.php?s=$session[sessionhash]&action=addlist&userlist=ignore&userid=$userinfo[userid]">
<font color="{ linkcolor }">Add $userinfo[username] to your Ignore List</font></a>
3. Edit the getinfo template:
Find the following:
Code:
<a href="member2.php?s=$session[sessionhash]&action=addlist&userlist=ignore&userid=$userinfo[userid]">
<font color="{ linkcolor }">Add $userinfo[username] to Your Ignore List</font></a>
Replace with:
4. Save, upload, and you're done
Thanks for the hack, afterlab!
Edit: Oops. I forgot I had to add spaces in between the brackets in { linkcolor } (make sure to take those out if you should use this