Version: 4.1.0, by Sarcoth
Developer Last Online: Mar 2017
Category: Profile Enhancements -
Version: 4.1.0
Rating:
Released: 02-07-2010
Last Update: 01-04-2011
Installs: 318
Uses Plugins Auto-Templates
Additional Files Translations
No support by the author.
Customizable Roster
Introduction:
This Mod is ideal for a Guild/Clan roster, but it is also a great replacement for the memberlist. Customize it any way you like: add or remove columns with just a few easy edits. The installer includes permission control that allows you to set which groups appear on the roster and which ones can view it. The most popular option is the ability to control advanced sorting; check it out!
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). When upgrading from version, make a copy of all your templates, then revert the templates back to their default, and then uninstall the older version. Also, make sure you delete the bitfield_showroster.xml file in the /includes/xml directory; this will cause database errors if not deleted.
Step 1: Download the showroster_vX.X.X.zip file and unzip it.
Step 2: Upload the files to their correct directories.
Upload the showroster.php to the /forum/ directory.
Delete the bitfield_showroster.xml in the /forum/includes/xml/ directory (if there).
Update the settings for your roster: usergroups allowed to view the roster, usergroups that are displayed on the roster, the title and field# for each of your columns on the roster, and any of the many other settings.
Is there a way to display a users age in the roster? Have been trying to work out where the age comes from when added to memberlist.php but with no joy.
Is there a way to display a users age in the roster? Have been trying to work out where the age comes from when added to memberlist.php but with no joy.
There's a way. The question you need to ask, are your members going to like having their age displayed? I have a lot of older memebers on my forums, many women. That's usually a no-no for them. Although, we could probably set it to use the same settings as the memberlist and only show age for those that approve it...but that kind of defeats the point does it not? I will look at the code when I get a chance, but don't expect a quick turnaround.
There's a way. The question you need to ask, are your members going to like having their age displayed? I have a lot of older memebers on my forums, many women. That's usually a no-no for them. Although, we could probably set it to use the same settings as the memberlist and only show age for those that approve it...but that kind of defeats the point does it not? I will look at the code when I get a chance, but don't expect a quick turnaround.
Well we are called The Old Gits Army lol - but I guess having the age displayed based on their preferences would be best. Would be great if you manage to incorporate this into your mod at some stage in the future.
@Gleedo - I spent a couple hours on this today. Apparently, I have the code needed to display birthdays already in the .php file. All I did was change one of the column's (in the showroster_userbits template) to birthday and that did the trick.
For example, find:
Code:
<vb:if condition="$show[field8th] AND exec_switch_bg()"><td>{vb:var userinfo.{vb:var columns[column8]}}</td></vb:if>
Change to:
Code:
<vb:if condition="$show[field8th] AND exec_switch_bg()"><td>{vb:var userinfo.birthday}</td></vb:if>
Now, the same thing should be true for just changing the word birthday to age to show the user's age, but it doesn't work. Something must be missing, but I don't see what it could be. I think it "should" work. If the birthday works, the age should work. It uses the birthday code when figuring out the age. I've double checked the memberlist.php for any missing code, but I don't see it. Sorry, maybe someone else will know what to look for.
I checked into this on my test and live site. The Usernames are linking to their profiles and the avatars look fine. I did notice that now users without avatars have a message: "No Avatar Specified" instead of it just being blank. I will have to look into fixing that, but I am not sure how to fix your problem. I'm blocked from your site here at work so I will try to take a look at it this weekend.
I did notice that now users without avatars have a message: "No Avatar Specified" instead of it just being blank.
Thats because the roster is expecting a noavatar.jpg (or something like that) which does not exist (for me at least) in the style images folder, so I changed the path so it would look for it in images/misc and then added the avatar in there