Creating a Members Legend - NBS






 

 

Creating a Members Legend - NBS

View Full Version : Creating a Members Legend


nightfox_pc_asst
14-Jun-2005, 08:15 AM
Creating a Members Legend
By Nightfox PC Asst
June 13, 2005

Okay this is going to create a legend in the stats area so that when a member clicks on a name, the members list for that group will open up.

Say you only want to see the Admin of a site, adding this will allow members to view only the Admin or other group listed in the legend without going through a select field search.

Heres how do the first part; Getting the reference links.

1) Goto your ACP Panel > Users and Groups > Manage User Groups
2) Click on a group..

Your code should look something like this in the address bar of the new window that opened.

http://www.nh-pctechsupport.net/index.php?act=Members&max_results=30&filter=4&sort_order=asc&sort_key=name&st=0

3) Open up your Windows Notepad and Copy/Paste the code there, once you are finished with all the groups, minimize this for future use.
4) Repeat step 2 & 3 until you get all the groups you want listed and placed in the notpad.

Now the how to do the second part; Creating the legend.

1) Goto Skin & Templates > Skin Manager > Chose the skin of your choice
2) Left click on Edit Root Skin Template (HTML) > Board Index
3) When the editor window opens up scroll down to Active Users Template Bit
4) Right after the this code;



<div class="thin">{$active[NAMES]}</div> </DIV>
Paste this one:

<table>
<tr>
<td> <a href=' http://www.nh-pctechsupport.net/index.php?act=Members&max_results=30&filter=4&sort_order=asc&sort_key=name&st=0'><span style='color:red'>Admin</a> | <a href='http://www.nh-pctechsupport.net/index.php?act=Members&max_results=30&filter=6&sort_order=asc&sort_key=name&st=0'> <span style='color:blue'>Moderator</a> | <a href='http://www.justpressplay.net/forum/member-list.html&max_results=30&filter=8&sort_order=asc&sort_key=name'><span style='color:#228B22'>JPP Review Staff</a> | <a href='http://www.justpressplay.net/forum/member-list.html&max_results=30&filter=7&sort_order=asc&sort_key=name'><span style='color:orange'>Respected Member</a> | <a href='http://www.justpressplay.net/forum/member-list.html&max_results=30&filter=3&sort_order=asc&sort_key=name'>Members</a>
</td>
</tr>
</table>


Now you will see that a href link in them, replace the ones I have above with the ones that you copy/paste in the notepad.

5) Click Save and Reload Template Bit

And there you have it, a coded legend that will show members your staff, moderators, and members list with ease.

Enjoy,

NF