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 |
#232
|
||||
|
||||
I believe it is possible to set it up like that regarding your first point. It would simply require the table / td code to be rewritten to display it the other way round than as default.
Your second point may not be easily done as Sarcoths hack is basically like showgroups.php and feeds information straight from what usergroups you have set. However, this doesnt mean to say its impossible as I think the code in the two templates can be modded to so the table displays differently. If i get some free time before Sarcoth does, ill try look into it, but cant promise anything due to a busy work schedule at this time... |
#233
|
||||
|
||||
compatible with 3.6.8?
|
#234
|
|||
|
|||
I don't mind that this is grouped by forum usergroups, but I would like the users in those usergroups sorted by their character Class and then Character Name.
So in SQL it would be ORDER BY usergroup, class, name I.E. two of those would be custom fields. Its way too rusty with PHP these days, anyone want to give me a hand with some additional sorting of this? |
#235
|
||||
|
||||
Yes it is compatible mate, there are no reported issues.
|
#236
|
|||
|
|||
Quote:
Below the print_users function, create a seperate function: PHP Code:
*NOTE* If you want to arrange by the actual vBulletin username/login, I believe you can replace the above ['field7'] with ['username'] Now, scroll down until you see the chunk of code: PHP Code:
PHP Code:
GUILD ROSTER Council: Bian - Druid Irk - Druid Lila - Necro Aaler - Ranger Fina - Ranger Taje - Warrior Members: Aamoon - Bard Beats - Bard Eyo - Bard Yian - Bard Kabb - Berzerker Vash - Berzerker Bin - Cleric Fye - Cleric Hika - Cleric Laur - Cleric etc etc etc. Hope thats clear, and that i didn't forget to add anything |
#237
|
|||
|
|||
I like that idea bludysky. Is there a way to do that and set the order you want classes to be in? By this I mean like a ranking structure such as:
Council: Bian - GEN Irk - LTG Lila - MG Aaler - BG Fina - BG Members: Aamoon - COL Beats - LTC Eyo - MAJ Yian - CPT Kabb - 1LT Vash - PVT and so on Or even just a way to be able to move names up and down on the roster in the order you want them to be displayed in. Thanks |
#238
|
|||
|
|||
Well I suppose you could do that by adjusting the myCmpName function. To do a more complex compare and sort. Would be a bit tricky and would be somewhat slow'ish though I would think. Instead of just doing a compare between two fields, you could do some switch statements to sort them into the right classes, and then do a compare on the name. At least I think that would work.
|
#239
|
|||
|
|||
Thanks! jsut what i needed
|
#240
|
|||
|
|||
Quote:
|
#241
|
|||
|
|||
Quote:
My Roster You'll need to modify your showroster.php and include something similiar to the below. After Code:
$usercount++; Code:
$classurl = 'images/spacer.gif'; if ($user[field9] == '1 - Area General') { $classurl = 'forum/images/custom/AGEN.gif'; } if ($user[field9] == '2 - Brigade General') { $classurl = 'forum/images/custom/BGEN.gif'; } if ($user[field9] == '3 - General') { $classurl = 'forum/images/custom/GEN.gif'; } if ($user[field9] == '4 - Lieutenant General') { $classurl = 'forum/images/custom/LTG.gif'; } if ($user[field9] == '5 - Colonel') { $classurl = 'forum/images/custom/COL.gif'; } if ($user[field9] == '6 - Lieutenant Colonel') { $classurl = 'forum/images/custom/LTC.gif'; } if ($user[field9] == '7 - Major') { $classurl = 'forum/images/custom/MAJ.gif'; } if ($user[field9] == '8 - Captain') { $classurl = 'forum/images/custom/CPT.gif'; } if ($user[field9] == '9 - Lieutenant') { $classurl = 'forum/images/custom/LT.gif'; } if ($user[field9] == '10 - Sergeant') { $classurl = 'forum/images/custom/SGT.gif'; } if ($user[field9] == '11 - Corporal') { $classurl = 'forum/images/custom/CPL.gif'; } if ($user[field9] == '12 - Private 1st Class') { $classurl = 'forum/images/custom/PFC.gif'; } $classimage = '<img src="'.$classurl.'" border="0" alt="'.$user[field9].'">'; Code:
<td class="$bgclass" nowrap="nowrap" align="center">$classimage1</td> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|