The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Customizable Roster (Member List) Details »» | |||||||||||||||||||||||||
Customizable Roster (Member List) [How to] get a working Guild/Clan Roster Note: This modification is now discontinued - this means that while it will remain available for download and use, support will no longer be provided as the thread is no longer monitored. Please see the 3.7 release of this modification for future updates here. Introduction: This Mod started off as a [How to] template modification. I have since added in permission control and an installer. Those that install this Mod will need to make adjustments to two templates and one phrase depending on what you want displayed. I'll include instructions for each step as well as optional changes you can make at your decretion. Click the following link for a Guild Roster preview: http://vanguard.sacredhaven.org/forums/showroster.php You'll notice that I use the "Extra Profile Fields Page" by Wired1. It isn't needed for the Roster, but I think it makes the field updates look nicer for the users. Installation: Step 0: If you are upgrading from a previous version, save a copy of your old showroster.php and rename your showroster templates (I recommend giving them an underscore prefix; Example: _SHOWROSTER). Step 1: Download the attached showrosterXXX.zip file. Step 2: Upload the files to their correct directories. Upload the showroster.php to the /forum/ directory.Step 3: Admincp > Plugin & Products > Manage Products > Add/Import Product Import the product-showroster.xml file.Step 4: Admincp > Languages & Phrases > Phrase Manager > Phrase Type: ShowRoster > showroster_title --> Edit Change this to whatever you want as the title of your roster.Step 5: Admincp > User Profile Fields > Add New/Update User Profile Field Add all the Profile Fields you plan to use and keep track of their number(s) (i.e. field6, field7, etc.).Step 6: Admincp > Styles & Templates > Expand > ShowRoster Templates > showroster_header This template contains the headers for each of your columns. Add/Edit/Remove columns to your preference. Be sure to update the colspan to the number of columns you have.Step 7: Admincp > Styles & Templates > Expand > ShowRoster Templates > showroster_userbits This template gets the data from each of the fields you want to have viewed on your roster. Add/Edit/Remove columns and/or the nowrap="nowrap" to your preference. Be sure to update each of the field#'s to match the fields from Step 5.Step 8: Admincp > Usergroups > Usergroup Manager > Edit Usergroup All instructions are included in the instructions.txt and optional.txt. Enjoy!!! Versions: v1.1.3 - April 22, 2007
v1.1.2 - April 20, 2007
v1.1.1 - April 19, 2007
v1.1 - April 5, 2007 (Mod Revamp)
v1.03 - April 2, 2007
v1.01 - March 27, 2007
v1.01 - March 9, 2007
v1.0 - March 6, 2007 (Initial Release) Show Your Support
|
Comments |
#52
|
|||
|
|||
Quote:
Edit: Figured it out...see two posts down. |
#53
|
||||
|
||||
Ok ive managed to understand the variant and add images. This is my example below:
www.sog-team.co.uk/forum/showroster.php This is the information contained in the templates: showroster_usergroup Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="8">$user[title]</td> </tr> <tr> <td class="thead">$vbphrase[user_name]</td> <td align="center" class="thead">Real Name</td> <td align="center" class="thead">Country</td> <td align="center" class="thead">Flag</td> <td align="center" class="thead">Games</td> <td align="center" class="thead">Contact</td> <td align="center" class="thead">Xfire</td> $usergroupbits </table> <br /> Code:
<tr> <td class="$bgclass"> <a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a> </td> <td align="center" class="$bgclass" nowrap="nowrap">$user[field12]</td> <td align="center" class="$bgclass" nowrap="nowrap">$user[field10] </td> <td align="center" class="$bgclass" nowrap="nowrap"><img src="images/flags/$user[field10].gif"></td> <td align="center" class="$bgclass" nowrap="nowrap">$user[field8]</td> <td align="center" class="$bgclass" nowrap="nowrap"><a href="private.php?$session[sessionurl]do=newpm&u=$user[userid]" rel="nofollow"><img src="images/imagesblue/sendpm.gif" Border=0></a> <a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$user[userid]" rel="nofollow"><img src="images/imagesblue/email.gif" Border=0></a> <td align="center" class="$bgclass" nowrap="nowrap"><if condition="$user[field14]"><a href="xfire:add_friend?user=$user[field14]"><IMG STYLE="border: none;" SRC="images/misc/icon_xfire.gif"></a></if></td> </tr> Hope that helps |
#54
|
|||
|
|||
OK...I figured it out.
I had ALL of my usergroups included on the View Forum Leaders. (Namely because I want all my users to show on this special page if they filled out the custom field irregardless of their usergroup). Problem is, there's too many to list...so the white page. When I took the biggest usergroup off of the View Forum Leaders...the page started displaying perfectly. So...two things:
|
#55
|
|||
|
|||
Quote:
Meaning. If Germany is their country, are you referring to Germany.gif? EDIT: I just saw your second post. That's exactly what I was going to be suggesting as long as the files were in the same format as the country name. Otherwise, I was going to put some code in the PHP file that would make the whole word lowercase. Glad you got it working. |
#56
|
|||
|
|||
Quote:
Quote:
Sorry, that's not the direction I'll be going with the the roster. |
#57
|
|||
|
|||
Thanks Sarcoth,
I'd like it to only show users who have entered anything into field5. (so if nothing was entered in field5, they would not be included) Thanks a lot for your assistance! |
#58
|
|||
|
|||
Quote:
Code:
if (sizeof($groupcache) >= 1) { ksort($groupcache); // alphabetically sort usergroups foreach ($groupcache AS $users) { ksort($users); // alphabetically sort users $usergroupbits = ''; foreach ($users AS $user) { exec_switch_bg(); $user = process_showgroups_userinfo($user); ($hook = vBulletinHook::fetch_hook('showgroups_user')) ? eval($hook) : false; eval('$usergroupbits .= "' . fetch_template('showroster_usergroupbit') . '";'); } ($hook = vBulletinHook::fetch_hook('showroster_usergroup')) ? eval($hook) : false; eval('$usergroups .= "' . fetch_template('showroster_usergroup') . '";'); } } Code:
if (sizeof($groupcache) >= 1) { ksort($groupcache); // alphabetically sort usergroups foreach ($groupcache AS $users) { ksort($users); // alphabetically sort users $usergroupbits = ''; foreach ($users AS $user) { if ($user['field5'] != '') { exec_switch_bg(); $user = process_showgroups_userinfo($user); ($hook = vBulletinHook::fetch_hook('showgroups_user')) ? eval($hook) : false; eval('$usergroupbits .= "' . fetch_template('showroster_usergroupbit') . '";'); } } ($hook = vBulletinHook::fetch_hook('showroster_usergroup')) ? eval($hook) : false; eval('$usergroups .= "' . fetch_template('showroster_usergroup') . '";'); } } |
#59
|
|||
|
|||
I managed to get the users avatar working in mine using https://vborg.vbsupport.ru/showthread.php?t=83150
I am using this for more of an "About Us" page http://www.goblinarmy.com/community/aboutus.php My showroster_usergroup Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="3">$user[title]</td> </tr> <tr> <td class="thead">Member</td> <td class="thead">Biography</td> <td class="thead">Favorites</td> $usergroupbits </table> <br /> My showroster_usergroupbit Code:
<tr height=150> <td class="$bgclass"> <a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a><br>$user[usertitle]<br> <if condition="$vbulletin->userinfo['avatarid']"> <img src="$user[avatarpath]" alt="$bbuserinfo[username]'s Avatar" border="0" /> <else /> <if condition="$vbulletin->userinfo['hascustomavatar']"> <if condition="$vbulletin->options['usefileavatar']"> <img src="$vboptions[avatarurl]/avatar$user[userid]_$user[avatarrevision].gif" title="$user[username]'s Avatar" alt="Avatar" border="0" /> <else /> <img src="image.php?u=$user[userid]&dateline=$avatar[dateline]" title="$user[username]'s Avatar" alt="Avatar" border="0" /> </if> <else /> <img src="$stylevar[imgdir_misc]/noavatar.gif" alt="guestavatar.gif" title="No Avatar Specified" border="0" /> </if> </if> </td> <td class="$bgclass"><b>Real name:</b><br> $user[field14]<br><br> <b>Location:</b><br> $user[field2]<br><br> <b>Ocupation:</b><br> $user[field4]<br><br> <b>Interests:</b><br> $user[field3]</td> <td class="$bgclass"><b>Map:</b><br> $user[field13]<br><br> <b>Second Map:</b><br> $user[field15]<br><br> <b>Weapon:</b><br> $user[field11]<br><br> <b>Sec Weapon:</b><br> $user[field12]</td> </tr> |
#60
|
|||
|
|||
That great SgtOliver. The funny thing is I have been working on it since yesterday and just got it work about an hour ago but went out to lunch. I'll post my changes here for you anyhow. Use them if you are interested.
Open the showroster.php file. *************************** Find: Code:
require_once('./global.php'); Code:
require_once(DIR . '/includes/functions_user.php'); Find: Code:
($hook = vBulletinHook::fetch_hook('showgroups_user')) ? eval($hook) : false; eval('$usergroupbits .= "' . fetch_template('showroster_usergroupbit') . '";'); Code:
$avatarurl=fetch_avatar_url($user[userid]); if (!$avatarurl) { $avatarurl = 'images/spacer.gif'; } else { $avatarurl = $vbulletin->options['bburl'] . '/' . $avatarurl[0]; } $avatarimage='<img src="'.$avatarurl.'" border="0">'; Add a column for the Avatar header to your showroster_usergroup template. Code:
<td class="thead">Avatar</td> Add a column for the Avatar image to your showroster_usergroupbit template. Code:
<td class="$bgclass">$avatarimage</td> You would also have to make some table adjustments (ie. colspan) to get it all even again. The spacer.gif image I am using is attached if you want to use that as well. That's it. |
#61
|
||||
|
||||
Thanks Sacroth.
I have another question, how do you create the title for the page like the one in your demo "Clan Roster"? Ie the title you have "Sacred Haven - Vanguard Guild Roster" |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|