No idea if this is of interest to most people, and although I've done a search on this it may have been released before now (?), but what the heck - I'm posting it anyway
This will add the 'buddy' icon to the member list, as demonstrated here:
Hopefully these instructions are clear enough, as this is my first published mod!
Backup your memberlist.php file
- In memberlist.php, right at the top (~ line 4), find:
Add to this postbit_buddy so it looks like this:
Scroll down to around line 150, and find the line:
Before it, add:
Save & close memberlist.php, and upload
Log into your forum control panel, and go to 'edit templates'
We're editing the templates memberlist and memberlistbit
Now, I'm assuming we'll be adding a new column to accommodate the buddy icons - if you want to replace one, I'm sure you can figure it out from just seeing the variables used here
In memberlist, find the line:
Change it to:
(remove the spaces after and before the { } characters)
(if you're NOT adding a new column, ignore that last step)
I have my columns in the order of "User Name, Buddy List, Email..." but the order is up to you
Scroll down in memberlist and find:
Right after it add:
(remove the spaces after and before the { } characters)
Save changes
Go to edit memberlistbit
If you're keeping the same order as me, find:
And directly under it add:
(remove the spaces after and before the { } characters)
Now, you can save the changes and check out your members list to see if the changes are in effect (which they should be!). You'll also probably see that the column colours are out of order.
To fix this, after the line we just added, change the order of the bgcolor tags until you have them in correct order (ie, firstaltcolor, secondaltcolor, firstaltcolor, secondaltcolor, and so on).
Save changes.
Everything should now be working
Mark
This will add the 'buddy' icon to the member list, as demonstrated here:
Hopefully these instructions are clear enough, as this is my first published mod!
Backup your memberlist.php file
- In memberlist.php, right at the top (~ line 4), find:
PHP Code:
$templatesused = "postbit_useremail,icq,aim,yahoo,postbit_homepage,postbit_sendpm,postbit_profile,memberlistbit,numbernav_pages,numbernav,memberlist,memberlistsearch";
PHP Code:
$templatesused = "postbit_useremail,icq,aim,yahoo,postbit_homepage,postbit_buddy,postbit_sendpm,postbit_profile,memberlistbit,numbernav_pages,numbernav,memberlist,memberlistsearch";
PHP Code:
eval("\$userinfo[profile] = \"".gettemplate("postbit_profile")."\";");
PHP Code:
eval("\$userinfo[buddy] = \"".gettemplate("postbit_buddy")."\";");
Log into your forum control panel, and go to 'edit templates'
We're editing the templates memberlist and memberlistbit
Now, I'm assuming we'll be adding a new column to accommodate the buddy icons - if you want to replace one, I'm sure you can figure it out from just seeing the variables used here
In memberlist, find the line:
PHP Code:
<td bgcolor="{ categorybackcolor }" colspan="6">
PHP Code:
<td bgcolor="{ categorybackcolor }" colspan="7">
(if you're NOT adding a new column, ignore that last step)
I have my columns in the order of "User Name, Buddy List, Email..." but the order is up to you
Scroll down in memberlist and find:
PHP Code:
<td bgcolor="{ tableheadbgcolor }" align="center"><smallfont color="{ tableheadtextcolor }"><b>User Name</b></smallfont></td>
PHP Code:
<td bgcolor="{ tableheadbgcolor }" align="center"><smallfont color="{ tableheadtextcolor }"><b>Buddy List</b></smallfont></td>
Save changes
Go to edit memberlistbit
If you're keeping the same order as me, find:
PHP Code:
<td bgcolor="{ firstaltcolor }" align="left"><normalfont><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$userinfo[userid]">$userinfo[username]</a></normalfont></td>
PHP Code:
<td bgcolor="{ secondaltcolor }">$userinfo[buddy]</td>
Now, you can save the changes and check out your members list to see if the changes are in effect (which they should be!). You'll also probably see that the column colours are out of order.
To fix this, after the line we just added, change the order of the bgcolor tags until you have them in correct order (ie, firstaltcolor, secondaltcolor, firstaltcolor, secondaltcolor, and so on).
Save changes.
Everything should now be working
Mark