Version: 1.00, by afterlab
Developer Last Online: Jul 2022
Version: 2.2.x
Rating:
Released: 05-03-2002
Last Update: Never
Installs: 13
No support by the author.
<font size="3">Updated Buddy List Code</font> Because we always don't need to "Add A New Buddy"
============================================
This hack will update the Buddy List coding in getinfo. The old code was displayed always as "Add Buddy". This new code will replace that with either "Currently On Buddy List" or "Add Buddy" depending on whether or not you've added that member to your buddy list.
Compatibility: This hack will work with vB 2.0.3 and higher. This hack will also work with many getinfo (Profile) modifications, so regardless of what you've done it should work.
Install Time: 1-2 Minutes
Download: Instructions are in attachment.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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:
Code:
$isignore
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
Just a few cosmetic tweaks to make the links look a little better for the updated Buddy List code.
In the getinfo_addbuddy template, I put...
PHP Code:
<a href="member2.php?s=$session[sessionhash]&action=addlist&userlist=buddy&userid=$userinfo[userid]"><font color="{ linkcolor }">Add $userinfo[username] to your Buddy List</font></a>
(without the extra spaces in the linkcolor replacement tag)
And in the getinfo_isbuddy template, a modification of LoveShack's isignore:
PHP Code:
<font color="{ linkcolor }">$userinfo[username] is currently on your Buddy List
[<a href="member2.php?s=$session[sessionhash]&action=removelist&userlist=buddy&userid=$userinfo[userid]">remove</a>]</font>
(again without the extra spaces in the linkcolor replacement tag)