View Full Version : Profile Enhancements - Customizable Roster
Sarcoth
02-07-2010, 10:00 PM
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!
Click Here For A Preview (http://sacredhaven.org/forumsh/showroster.php)
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). 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).
Step 3: Admincp > Plugin & Products > Manage Products > Add/Import Product
Import the product-showroster_v4.x.x.xml file.
Step 4: 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 5: Admincp > Settings > Options > ShowRoster Settings
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.
Step 6: Admincp > Styles & Templates > Expand > ShowRoster Templates > SHOWROSTER, showroster_header, and showroster_userbits
You only need to adjust these if you have custom adjustments to make. Otherwise, there is no longer a need to change these.
NOTE: See installation and upgrading instructions in the included corresponding txt files.
Version Updates: See 2nd post (https://vborg.vbsupport.ru/showpost.php?p=1977586&postcount=2).
FAQ: See 3rd post (https://vborg.vbsupport.ru/showpost.php?p=1977587&postcount=3).
Screenshots: See 4th post (https://vborg.vbsupport.ru/showpost.php?p=1977589&postcount=4).
PLEASE CLICK INSTALLED (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=235326).
Support will be given to those that do.
Sarcoth
02-08-2010, 04:42 PM
Version Updates:
Version 4.0.0 - February 8, 2010
Release of this hack for vBulletin version 4.0.x.
This version works on both 4.0.0 and 4.0.1; message below for more information.
Version 4.0.1 - March 11, 2010
Converted all code to the new vBulletin 4.x format.
Improved sorting: Now each column will be sorting ASC and if you click on it again, it will go DESC.
Less php and template edits. You can now set everything from the options area.
The avatar, profilepic, birthday fields have not been added yet. I'll add them back if people show more interest in this mod.
Version 4.0.2 - March 17, 2010
The ShowRoster Title can now be set from the ShowRoster Settings.
Online Status indicator works again.
Online Status indicator can now be turned off/on in the ShowRoster Settings.
showroster_userbits template has been updated; online status and musername has been made into a table for a nicer layout.
showroster_header template has been updated; user_name field is now centered.
Default sorting has been added to the ShowRoster Settings.
Made a fix to the plugin Viewing ShowRoster Location Display.
Removed the phasegroup from the product file since the title is now set in the ShowRoster Settings. Also had to update the showroster.php file; $phrasegroups = array() part.
Added the Last Visit/Activity column with an option to turn it off.
Found and fixed a problem with one of the IF statements in the SHOWROSTER and showroster_header templates.
Added the Profile Picture column with an option to turn it on; default is off.
Added the Avatar column with an option to turn it on; default is off.
Updated the Viewing plugin to display whatever the user enters for the title.
TD class has been removed from the showroster_userbits template so the user data looks better for all website styles.
Version 4.0.3 - March 25, 2010
What usergroups are displayed on the roster can now be managed from the ShowRoster Settings. This is a huge thing because now you won't need to Edit Usergroups individually and there is no longer a use for the bitfield_showroster.xml file.
includes folder, xml folder, and bitfield_showroster.xml file removed from installation package; no longer needed.
showroster_permissions and showroster_add phrases removed from the install file; no longer needed.
installcode and uninstallcode for table removed from the install file; no longer needed.
Updated the Navbar plugin to check the permissions of the access_groups and to register/render the code for the navbar template.
Updated the navbar template to only display the Roster tab to those in the access_groups list.
New setting has been added to the ShowRoster Settings that allows the admin to select where the Roster tab should appear on the Navbar: Left, Middle, or Right.
Updated the Navbar plugin to check for the Roster tab location.
Added an option to each column for the default sorting; either ASC or DESC. Changes were made to SHOWROSTER template, showroster.php, and to the install file.
Added an option which allows an admin to set whether a column is sorted as groups or in a single table. Changes were made to SHOWROSTER and showroster templates, showroster.php, and to the install file.
Added an option which allows an admin to filter out users from the roster if they leave a certain field blank. Changes were made to the showroster.php and to the install file.
Added an option which allows an admin to filter out users from the roster when sorting certain fields. The users will not appear on the roster if the sorted field is blank. Changes where made to the showroster.php and to the install file.
Many adjustments have been made to the showroster.php and showroster_header template so the new sorting option will work correctly.
4 stylevar vB4 variables have been fixed in the SHOWROSTER and showroster_header templates.
The roster title has been changed around a bit and the member count has been moved to work with all browsers.
The sorting links have been moved the mini navbar. They have been placed in a sorting options dropdown.
The navbar plugin has been adjusted and all coding has been copied to the showroster.php file. This allowed me to use the code from the php file in the mini navbar while allowing the Roster tab to still appear in the menu (whether on the Roster page or not).
Usergroups are now sorted in the order the id's are entered for the "Usergroups displayed on the roster" setting.
Version 4.0.4 - July 24, 2010
All templates have been updated to work better with the vBulletin 4.x.
CSS template has been added to help with the template updates.
The Roster tab on the navbar can now be turned off.
You can now choose whether to view just primary or secondary usergroups. Or just leave this alone to keep using the default of both. Check the Showroster Settings document and the FAQ post (2 posts down) for more information.
There is now an ability to use multiple roster on a single site. Although, each roster will use the same columns. Check the Showroster Settings document and the FAQ post (2 posts down) for more information.
Along with the ability to select usergroup ID's to be displayed on the roster, you can also select which usergroups to be blocked from using this new setting. This is for security purposes.
Version 4.0.5 - August 12, 2010
Templates: statbits has been added for the new statistics table. SHOWROSTER has had some code added to work with the new statbits template. Small changes have been made to other templates.
CSS template has had some new code added to address the new statistics table.
A new option settings "ShowRoster Group Settings" has been added for use with the new statistics table.
A lot of new code has been added to the showroster.php file to work with the new statistics table.
The image path that is used when a user does not have an avatar has been fixed.
Version 4.1.0 - January 4, 2011
id's and mid's are included in the sort functions.
Allow the Roster tab to be removed.
Allow the Roster tab to be renamed.
Fully redid the navtab code, many times.
Removed the stats template when sorting.
Navtab positioning is fully controlled via the plugin; change the execution order to move its order.
Border should now adjust correctly for all styles.
Future Releases:
Completed:
Possible Future Add-ons:
Maybe find a way to show how the roster tab can have a dropdown menu for multiple rosters.
Sarcoth
02-08-2010, 04:44 PM
Main FAQ
Q: I set the "Usergroups displayed on the roster", yet none of those users are appearing! What is wrong?
A: Calm down. You probably have the following set: "Choose a field to be filtered (I.E. field7). Users that leave this field blank will not appear on the roster." Make that field blank until you are ready to use it.
Advanced Usergroup Settings FAQ
Q: What is the Primary/Secondary usergroup setting?
A: All users on your forum are placed in a Primary Usergroup. Some are also added to Additional Usergroups (membergroups). You would use this setting if you want to have your users only in Primary Usergroups or Additional Usergroups to appear on your roster. By default, both options are used. This means, if you have two usergroups shown on your roster, then a user could appear twice on the roster if they are in both usergroups. Most should not need this feature, but feel free to play with it if you like.
Q: What about using the m= function for my roster?
A: You will need to turn on the Primary/Secondary usergroup setting to use this function. This will allow you to have a default roster, and then use the ?m= function if you would like to view the roster in other ways. m=1 is used if you want to see users in both the primary/secondary groups, m=2 is used to view users only in the primary groups, and m=3 is used to view users only in the secondary groups.
Q: What is the ID usergroup setting?
A: This is the main setting that will allow you to have multiple rosters. It can be used in conjunction with the primary/secondary usergroup setting for more indepth rosters. Just add an ?id= followed by all the usergroups you want to view (comma separated), and it will display those usergroups for you. I.E. showroster?id=13,14,15,16.
Q: What about the ID usergroup block setting?
A: This setting is for security purposes and allows you to block certain usergroups from being displayed with the ?id= setting. After all, we don't want anyone to stumble across any of your private groups and have access to all the users in that group.
I'll add things here as questions come up.
Sarcoth
02-08-2010, 04:44 PM
Screenshots
Sarcoth
02-08-2010, 04:45 PM
Reserved.
abdobasha2004
02-08-2010, 06:30 PM
wow
nice work !
ProFifaLeagues
02-08-2010, 06:54 PM
Superb looking i will give this a try tonight many thanks!!
GrossKopf
02-08-2010, 06:56 PM
Yours looks so much nicer than mine: http://flotgaming.net/forums/showroster.php
Am I missing something?
It appears it shows the user groups based on their user group ID. Is there a way to change this? The reason I ask is because on my page, it shows the regular clan members before the admins. I'd like the admins listed first.
Crrrazzzy
02-08-2010, 07:39 PM
is there a way to select a specific usergroup out and only show that one
ie ..... showroster.php?group=301
whereas 301 is the usergroup id
Bouncer222
02-08-2010, 07:46 PM
Installed! Great! Easy to manage all my site members now!
Question... How do I order in which order the usergroups appear from top to bottom? www.brotherhoodofgamers.com/showroster.php
GrossKopf
02-08-2010, 07:48 PM
Installed! Great! Easy to manage all my site members now!
Question... How do I order in which order the usergroups appear from top to bottom? www.brotherhoodofgamers.com/showroster.php
It appears it shows the user groups based on their user group ID. I hope that a future release can allow us to organize this.
Sarcoth
02-08-2010, 08:29 PM
It appears it shows the user groups based on their user group ID. I hope that a future release can allow us to organize this.
The optional_changes.txt has a way for you to adjust how things are ordered. Let me know if that helps. Otherwise, describe what you want in depth and I'll see what I can think up. Make sure you give me the id's and names of the groups you are planning to use.
BTW, if you want me to look at your roster you'll need to turn on the access for unregistered. :)
Sarcoth
02-08-2010, 08:31 PM
is there a way to select a specific usergroup out and only show that one
ie ..... showroster.php?group=301
whereas 301 is the usergroup id
Interesting. I'm sure there is a way, I just need to think on it for a bit.
Sarcoth
02-08-2010, 08:38 PM
Installed! Great! Easy to manage all my site members now!
Question... How do I order in which order the usergroups appear from top to bottom? www.brotherhoodofgamers.com/showroster.php
I can't get to the code right now, but I'll look at it in a couple hours. I may have something in the optional_changes.txt though, so check it out. I noticed you have a field for your members steam ID's. If you can provide me with a full link to one of those, I can probably make those ID's into links for your roster. Not hard to do. Also, don't forget to update the field names of your sorting area.
Bouncer222
02-08-2010, 10:45 PM
I can't get to the code right now, but I'll look at it in a couple hours. I may have something in the optional_changes.txt though, so check it out. I noticed you have a field for your members steam ID's. If you can provide me with a full link to one of those, I can probably make those ID's into links for your roster. Not hard to do. Also, don't forget to update the field names of your sorting area.
Wow making all those IDS into links... that is amazing. so once you click them, it takes you to their profile page... sweet. But I think you would need a converter and I have some place where I can get a converter for them into a link...
Anyway my Steam ID is: STEAM_0:1:17768031
It should link to my profile at: http://steamcommunity.com/id/bogbouncer
What also shows up on that roster is Steam Player ID but its named as Xfire at the moment of this post by accident...will fix that, that one is: bogbouncer (as you can see its on the link after /id/
And I looked at the extra txt file.. there was nothing about making the usergroups in a certain order I believe.
Thanks.
Sarcoth
02-09-2010, 12:47 AM
Wow making all those IDS into links... that is amazing. so once you click them, it takes you to their profile page... sweet. But I think you would need a converter and I have some place where I can get a converter for them into a link...
Anyway my Steam ID is: STEAM_0:1:17768031
It should link to my profile at: http://steamcommunity.com/id/bogbouncer
What also shows up on that roster is Steam Player ID but its named as Xfire at the moment of this post by accident...will fix that, that one is: bogbouncer (as you can see its on the link after /id/
What are you using the IDs for then? What's the use for it? The IDs need to be part of a common URL, otherwise we won't be able to create a link with those.
Bouncer222
02-09-2010, 01:11 AM
The ids we use as a community to identify players.. not gonna explain exactly right now..
Here is the html to convert it https://forums.alliedmods.net/showthread.php?t=60899&page=24
That's not the first post of that thread through just so you know, but I think that poster's html is the best. Hopefully you can figure out how to incorporate it so it does it automatically?
Bouncer222
02-09-2010, 01:12 AM
BTW I would like the actual STEAM ID to remain as numbers, just that when you click on it.. it leads them to their profile page. So basically it would convert it in the "background"
Sarcoth
02-09-2010, 01:13 AM
It appears it shows the user groups based on their user group ID. Is there a way to change this? The reason I ask is because on my page, it shows the regular clan members before the admins. I'd like the admins listed first.
It appears it shows the user groups based on their user group ID. I hope that a future release can allow us to organize this.
I just looked over the code and it is sorting by Title by default (alphabetically). If you want to to change it to ID, you can do that by changing something in the .php file. Those instructions are definitely in the optional_changes.txt file (#2). If that doesn't put them in the order you want, you'll need to do some special coding in there. If you look at my example, I use title and I named my titles alphabetically so they would be organized the way I want them. I then add code to rename the titles what I want. I'll provide you with the code later, but you'll need to adjust it if that's the way you want to go.
Question... How do I order in which order the usergroups appear from top to bottom? www.brotherhoodofgamers.com/showroster.php
Open the showroster.php, find: if ($grouporder == '') { $grouporder = 'asc'; }
Change to: if ($grouporder == '') { $grouporder = 'DESC'; }
Sarcoth
02-09-2010, 01:19 AM
BTW I would like the actual STEAM ID to remain as numbers, just that when you click on it.. it leads them to their profile page. So basically it would convert it in the "background"
Cool, I think I can do something with that. I'll look into it when I can.
Bouncer222
02-09-2010, 01:21 AM
Sweet man, thanks for taking a step out to help me out on this and even offering it without me asking for it! Really appreciated and makes it much easier to manage our members!
Let me know when its ready.
Bouncer222
02-09-2010, 01:29 AM
Sorry for another post... but that thread I linked to might confuse you a bit.. so here is the actual converter! http://forums.alliedmods.net/showpost.php?p=750532&postcount=118
dgkrob
02-13-2010, 09:49 PM
Hi Guys,
I'm hoping you may be able to help as im being really stupid and cant remember how to get this working correctly.
On the rosta i want to be able to add a piece of text in that is a url thats pre-defined i.e in field 5 i have it set to Armory Page that in their profile they just put the word Grushdeva and then on the rosta it will show "Grushdeva" but when you click on it it takes you through to www.thewebpage.com/Grushdeva.
Here is what i have got in the showroster_userbits-: <tr>
<td class="$bgclass">
$user[onlinestatus] <a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>
</td>
<td class="$bgclass" nowrap="nowrap" align="center"><a href="http://eu.wowarmory.com/character-sheet.xml?r=Hellscream&cn=">$user[field5]</a></td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field6]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field7]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field8]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field9]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field12]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field11]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[datejoined]</td>
</tr>
The problem i get is when you click on the name Grushdeva it just takes me to the first part of the url and doesnt add the name on the end.
I hope that makes sense.....
Can anyone tell me what ive done wrong in that code {Highlighted in red} so i can get it to recognize and add the name to the end of the url automatically from the info they fill out on their profile page?
Thanks in advance
Rob
Sarcoth
02-14-2010, 08:37 AM
<td class="$bgclass" nowrap="nowrap" align="center"><a href="http://eu.wowarmory.com/character-sheet.xml?r=Hellscream&cn=">$user[field5]</a></td>
Can anyone tell me what ive done wrong in that code {Highlighted in red} so i can get it to recognize and add the name to the end of the url automatically from the info they fill out on their profile page?
Try this first:
<td class="$bgclass" nowrap="nowrap" align="center"><a href="http://eu.wowarmory.com/character-sheet.xml?r=Hellscream&cn=$user[field5]">$user[field5]</a></td>
If that fails, let me know and I'll do some testing.
dgkrob
02-14-2010, 12:31 PM
yea that worked thanks allot Sarcoth
Sarcoth
02-16-2010, 07:07 PM
Anyway my Steam ID is: STEAM_0:1:17768031 (SteamID#)
It should link to my profile at: http://steamcommunity.com/id/bogbouncer (ProfileID)
I looked into this a bit last night but I'm failing to understand. First, where are you getting the SteamID#. I looked all over for my SteamID# and I couldn't find it. I found my steam profile page, but not the other.
Just out of curiousity. Is there a reason you are using the SteamID# over the ProfileID? The later would only require a simple link that everyone uses and then it would grab the ProfileID for each person separately.
Bouncer222
02-16-2010, 07:17 PM
We use steam id to better identify our members. So is it posible to make it clickable so that once u click it, it takes you to their profile?
Sarcoth
02-17-2010, 04:28 AM
We use steam id to better identify our members. So is it posible to make it clickable so that once u click it, it takes you to their profile?
I think it is. I'll need to still look into it further. But, I'd like to know where you get the SteamID# from. I think it would help me understand it better.
Bouncer222
02-17-2010, 04:50 AM
well there are different ways to get it... we use a program.. but the steam ids are already in people's profile, they are forced to put it in when they register. so its tied to a field.
Currently im having issues with my site 4.0.2 totally f*cked it up and its all messed up.
Sarcoth
02-17-2010, 12:18 PM
So, you mean the SteamID# (STEAM_0:1:17768031) is generated by a program? It just seems strange to me that you do it this way. Use a program to generate a SteamID#, then you put that SteamID# into the profile field, and then you want to use more code to change the SteamID# back into your Steam profile name. What's the point? Wouldn't it just be easier to put in the Steam profile name and use that as a link?
For example, I just installed the Gamercard Blocks mod two days ago to try to understand what you are trying to do. But, there's nothing in that mod for the SteamID#, it instead just uses my steamcommunity/id/PROFILENAME. That to me seems the easier way to go. At least for the roster. My mod won't do anything special like pull in awards or groups from Steam, it would only be used to provide a link to the member's Steamcommunity home page...right?
I may still look into it more on Monday, but I just want to understand the reasoning behind wanting to use the SteamID#. Personally, I'd rather focus on making this mod better myself.
Current Plans & Status Update for this mod: I'm currently trying to make it more friendly so less edit's are needed. I'd really like to get it so you can do all the edits from the AdminCP rather than going into the code. I've converted all the template variables to the new vB4 format, so that is one thing that will definitely be done. I'd like to get the other part done too though before releasing the next version.
Bouncer222
02-17-2010, 02:31 PM
K not to be offensive, but why does it matter how we get it as it is pretty irrelevant?
Our site is tied to our gaming servers, so we use Steam IDS to give out admin.
Now with the steam id converter I posted earlier are you able to make the links clickable to go to their profile homepage? All I want is so once you click it, you go to their profile homepage on the steam community site.
Simple as that.
Sarcoth
02-17-2010, 05:09 PM
Well, I wanted to know so I could do some testing since I really don't like giving out untested code. I know a way is possible, but I was hoping to have all information in front of me before testing. I really don't want to ask again though so I'm going to pass. I have an alternative for you though that is a lot simpler and I've already tested it. Create another field and ask the users to enter their steamcommunity IDs (i.e. bogbouncer).
Then use that field to provide the link for your SteamID#. Basically, you'll still display only the SteamID#, but it will then use the other field to generate your link.
<td class="$bgclass" nowrap="nowrap" align="center"><if condition="($user[field42] == '')">$user[field9]<else /><a href="http://steamcommunity.com/id/$user[field42]">$user[field9]</a></if></td>
field9 = to the field number of your SteamID#. (i.e. STEAM_0:1:17768031)
field42 = to the field number of your Steam Profile ID. (i.e. bogbouncer)
Much easier. Enjoy and good luck with your roster.
Sarcoth
02-22-2010, 10:58 PM
I would like the roster to not be separated by usergroup and I would rather have it so that everyone is together in one table, would this be possible ?
Any help would greatly be appreciated
Thanks for the awesome hack & any help u may offer
Danny
Two ways.
If you want to make this permanent, then go into the showroster.php file:
Find: if ($groupsort == '') { $groupsort = 'title'; }
Replace with: if ($groupsort == '') { $groupsort = ''; }
If you want to make this one of the sorting options, go into the SHOWROSTER template:
Find any of the sort fields, i.e.: <td class="tcat" width="14%" align="center"><a href="$sorturl&order=asc&groupsort=field11">Field11</a></td>
Replace with: <td class="tcat" width="14%" align="center"><a href="$sorturl&order=asc&groupsort=''">Users</a></td>
Sarcoth
02-25-2010, 02:05 PM
STATUS UPDATE: I have given this mod a complete facelift. All of the old code has been converted to vB4 effectively. While trying to look for ways to do some things, I learned that a lot of vbulletin code has been changed, and because of that I was able to remove various things from mine (namely the functions). I still need to test the avatar and profilepic part, but everything else appears to be working.
My biggest roadblock right now is trying to find a way to move the permissions to an options menu rather than using the edit usergroup area. I was able to move the access permissions for that over, but I still don't know how to get the usergroups that need to be displayed on the roster moved.
I also need to get the columns moved to the showroster option menu as well as some other things I am adding. My goal right now is to make it so you don't have to do any edits to the php or the templates (unless you require something outside what the default roster does).
For those interested, I hope to have an update posted within the next two weeks.
anuanu
03-08-2010, 10:00 PM
Heres a hard question...
If I have field 5, 6, 7, 8 displayed for all "normal" users but I want only fields 9, 10, 11 showing for certain users(or usegroups) how would I go about doing this?
Covert-OPs_
03-09-2010, 01:16 AM
Is this mod working with 4.0.2?
betts02
03-09-2010, 05:50 AM
How would i go about adding
<vb:if condition="$post['fieldXX']"><tr><td class="vbmenu_option">
<iframe src="http://gamercard.xbox.com/{vb:raw post.fieldXX}.card" scrolling="no" frameBorder
To this roster so it shows the xbox live gamer card also ?
cheers in advance
ProFifaLeagues
03-09-2010, 05:57 AM
STATUS UPDATE: I have given this mod a complete facelift. All of the old code has been converted to vB4 effectively. While trying to look for ways to do some things, I learned that a lot of vbulletin code has been changed, and because of that I was able to remove various things from mine (namely the functions). I still need to test the avatar and profilepic part, but everything else appears to be working.
My biggest roadblock right now is trying to find a way to move the permissions to an options menu rather than using the edit usergroup area. I was able to move the access permissions for that over, but I still don't know how to get the usergroups that need to be displayed on the roster moved.
I also need to get the columns moved to the showroster option menu as well as some other things I am adding. My goal right now is to make it so you don't have to do any edits to the php or the templates (unless you require something outside what the default roster does).
For those interested, I hope to have an update posted within the next two weeks.
Keep up the great work :up:
Bouncer222
03-09-2010, 10:07 PM
Hey how can we re-order the way usergroups are listed?
Heres mine http://www.brotherhoodofgamers.com/showroster.php
I wana re-order the way usergroups are listed top to bottom, and is it possible for me to put a centered image above each usergroup? If so how? Thanks.
Sarcoth
03-10-2010, 12:15 PM
Heres a hard question...
If I have field 5, 6, 7, 8 displayed for all "normal" users but I want only fields 9, 10, 11 showing for certain users(or usegroups) how would I go about doing this?
I'll try to answer this one tonight.
Is this mod working with 4.0.2?
Yes, it is working for me.
How would i go about adding
<vb:if condition="$post['fieldXX']"><tr><td class="vbmenu_option">
<iframe src="http://gamercard.xbox.com/{vb:raw post.fieldXX}.card" scrolling="no" frameBorder
To this roster so it shows the xbox live gamer card also ?
cheers in advance
I can't swear this will work the way you want without some testing, but instead of using post.field, you should use the $user[field15].
<vb:if condition="$user[fieldXX]"><tr><td class="vbmenu_option">
<iframe src="http://gamercard.xbox.com/$user[field15].card" scrolling="no" frameBorder
I'll have to do some testing on it later and let you know. To be honest though, this will change completely with the update I am hoping to get out soon. I changed a lot of stuff on how things are done.
Hey how can we re-order the way usergroups are listed?
Heres mine http://www.brotherhoodofgamers.com/showroster.php
I wana re-order the way usergroups are listed top to bottom, and is it possible for me to put a centered image above each usergroup? If so how? Thanks.
The best way to order the usergroups is by redoing them. The default code does the usergroups in order of title. You could order them by usergroupid instead, but that means you may have to redo them from scratch. The alternative is to keep it ordered by title and rename your usergroups to something like a-usergroup1, b-usergroup2, c-usergroup3. Then in the php code, you could set up a case/if statement. if title=a-usergroupa then $title=usergroupa. Then you would have to use $title in the template rather to fix the problem. I'll try to put together a how-to on how to do this once I get the update done. I need to iron out the current release right now.
Sarcoth
03-11-2010, 07:29 PM
4.0.1 is now available. Please read the instructions before you upgrade. There have been a LOT of changes to the code. Let me know if there are any problems with the update. Please take note that some options have not been added back yet. I'll readd them if more people show interest. Feel free to ask questions or request code feedback. I will only respond to those that have clicked installed. Also, if the requests are too complex, I may not be able to help you till I have more time (summer). I'll do my best though.
Next version: The goal for the next version is to further improve sorting, add more column options, and to finally remove the requirement of editting usergroups. The last one of the list there is something I've been trying for a couple months now and I just can't figure out how to move it to the Settings/Options area.
I'd like to thank everyone that has clicked install.
Sarcoth
03-12-2010, 12:57 PM
I found something I missed when converting the code to vB4. This is causing a problem when clicking on the username links. To fix it, you'll need to go into the showroster_userbit template.
Find: {vb:raw userinfo.onlinestatus} <a href="member.php?$session[sessionurl]u=$userinfo[userid]">{vb:raw userinfo.musername}</a>
Change to: {vb:raw userinfo.onlinestatus} <a href="member.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}-{vb:raw userinfo.username}">{vb:raw userinfo.musername}</a>
I'll get the zip file updated and uploaded. Now that I notice, apparently the online status indicator isn't working either. I'll try to get that fixed in the next version.
Sarcoth
03-14-2010, 05:34 AM
I'm putting the updates for the next version in the 3rd post: https://vborg.vbsupport.ru/showpost.php?p=1977587&postcount=3.
Once enough people show interest, I'll go ahead and get the new version posted. Otherwise, I'll do it as soon as I have everything I want added.
juan71287
03-14-2010, 01:24 PM
this looks cool thanks a lot want it :)
how replace join date on last visit\activity?
<vb:if condition="$show[coldatejoined]"><td class="{vb:var bgclass}" nowrap="nowrap" align="center">{vb:raw userinfo.lastvisit}</td></vb:if>
Result:
field joined date, text in field 1268459774
kevius
03-14-2010, 05:01 PM
Great ! i'm very happy with this mod. Hope to see 4.0.2 soon !!
Sarcoth
03-15-2010, 01:21 AM
how replace join date on last visit\activity?
<vb:if condition="$show[coldatejoined]"><td class="{vb:var bgclass}" nowrap="nowrap" align="center">{vb:raw userinfo.lastvisit}</td></vb:if>
Result:
field joined date, text in field 1268459774
Try changing the {vb:raw userinfo.lastvisit} to {vb:raw userinfo.datejoined}. I'll tell you for sure tomorrow if that doesn't work. I'll get it added in the next version though so you don't have to edit anything. Sorting won't work for it though.
Front Range 4x4
03-15-2010, 06:02 AM
Nice job Sarcoth! Installed, any tips on getting the users avatars to display?
In it that and the problem - me is not necessary registration date in a roaster. It is necessary for me, that date of last visiting of a forum was in the field deduced
If try {vb:raw userinfo.datejoined} registration date is deduced normally.
Sarcoth
03-15-2010, 12:34 PM
@ k10i - I apologize, but I don't understand what you are saying.
@ Front Range - I'll work on that today and if I get it figured out, I'll let you know what to do.
Sarcoth
03-15-2010, 03:08 PM
In it that and the problem - me is not necessary registration date in a roaster. It is necessary for me, that date of last visiting of a forum was in the field deduced
If try {vb:raw userinfo.datejoined} registration date is deduced normally.
I see what you were asking now. You want to have Last Visit displayed. Use the following:
{vb:raw userinfo.lastactive}
I have it in the next version already.
Sarcoth
03-15-2010, 03:37 PM
Nice job Sarcoth! Installed, any tips on getting the users avatars to display?
I have the Profile Pics and Avatars now working, but there was a lot of code changes to the php file involved. Rather than give a walk through on how to do it all, I'd rather wait until the new version is released. There are still a lot of things I'd like to update, but I may release it tonight or tomorrow. If not, Friday will be the target release day. Why not Wed or Thurs? I have a couple tests those days and I will be busy studying and taking tests.
Front Range 4x4
03-15-2010, 05:07 PM
I think everyone would rather wait until you're ready to release the update. Thanks for your effort.
CoZmicShReddeR
03-16-2010, 08:24 AM
I think what your doing is totally awesome!
I tried this update for some reason nothing is working with the styles...
But then I might have goofed something... I do have profile fields that have the same numbers. Will look into it more later today...
Sarcoth
03-16-2010, 01:36 PM
@ Cozmic - That's the first time I've heard of it not working. Let me know if you continue to have issues and let me know what you've done. Double check my instructions too.
CoZmicShReddeR
03-16-2010, 07:34 PM
Template in the database from Show Roster 4.00 didn't uninstall had to use phpmyadmin and remove it...
There was other information that that didn't uninstall from 4.00 had to remove from database as well...
I think it was a glitch from the older version with the group permissions not being uninstalled...
Found a blank permissions row in user groups add group showroster in admincp
under it was the show roster permissions
After I wiped everything from the database I cleared the catche and reinstalled worked beautiful!
Great job on this your surely headed in a great direction!:up:
I see what you were asking now. You want to have Last Visit displayed. Use the following:
{vb:raw userinfo.lastactive}
I have it in the next version already.
thx, all work )
Sarcoth
03-16-2010, 11:35 PM
Template in the database from Show Roster 4.00 didn't uninstall had to use phpmyadmin and remove it...
There was other information that that didn't uninstall from 4.00 had to remove from database as well...
I think it was a glitch from the older version with the group permissions not being uninstalled...
Found a blank permissions row in user groups add group showroster in admincp
under it was the show roster permissions
After I wiped everything from the database I cleared the catche and reinstalled worked beautiful!
Great job on this your surely headed in a great direction!:up:
Ahhh, did you try to revert the template (That's in Step 0)? That's the way to remove your edited templates without having to go into the DB. I'm glad you got it working though.
thx, all work )
NP.
Sarcoth
03-17-2010, 01:37 PM
4.0.2 has been released. Let me know if you encounter any problems upgrading.
If you are upgrading from 4.0.0, you need to uninstall everything first and revert your templates if you made changes. Remember to back everything up first (templates & php file). Upload the new files (php and bitfield.xml) and install the product.xml.
If you are upgrading from 4.0.1, you probably don't need to uninstall everything. Backup your templates if you made changes though. Upload the new php file; no changes to the bitfield file.
There are a lot of settings that you can change in the ShowRoster Settings so enjoy. Remember to adjust the Usergroup setting so the correct usergroups can view the roster. I forgot to add permissions for the Roster tab AGAIN so I'll try to add that next time. Basically, all usergroups can see the tab, but only the usergroups you add can see the page. I'm going to try to also give you more ability to control where the tab is displayed in the next version. Eventually, I also want to control the sorting from the mini menu where you see Default Sort, but I'm still not quite sure on how I'm going to do that yet.
I have a lot of things I'd like to do, so I'll continue upgrading this as time permits. I'll get back to work on upgrades Friday. I have a test tomorrow though so back to studying. Feel free to ask questions and I'll answer them the best I can.
Oh, and the PHP file is a little dirty. I haven't removed unneeded code this version because I want to make sure everything is working fine before I start removing things. I put // in front of those items so it won't hurt or slow down anything.
Sarcoth
03-19-2010, 01:55 PM
I had a major breakthrough yesterday; the displaygroups option finally works which will allow you to avoid editing each usergroup. The install now allows you to make all setting adjustments from the ShowRoster Settings page.
Since it is only one update, I'm not going to release a package for it yet, but if you are interested, I'll attach a sneak preview of the two files here. If you use these, please remember to delete the bitfield_showroster.xml file in the includes/xml directory (it is no longer needed). You'll also have to do an uninstall this time around to remove the showrosteraddpermissions column in your usergroup table.
Please forgive the code mess in the php file. I usually don't clean up things until it is ready for full release.
Enjoy!
EDIT: xml removed and added back 2 posts down.
CoZmicShReddeR
03-19-2010, 04:08 PM
Well 4.02 is sweet!
I did try to load the pre-release product xml for 4.03 said there was an error "XML Error: Invalid document end at Line 412"
But there were only 322 lines of code.
Sarcoth
03-19-2010, 05:05 PM
@ Cozmic - I'm not sure why you are getting that error. I just did a full uninstall of the mod and then a fresh install with no errors.
I just finished adding the permissions to the roster tab, so I'll provide a fresh file here. The showroster.php file isn't changing so I won't add that again (look up 2 posts). I'll gladly put my time into figuring out the problem you are having since I'd hate to see that happen during the release. Try the new file and describe everything in detail to me.
CoZmicShReddeR
03-19-2010, 05:14 PM
Yeah silly me I tried to install the showroster.php wasn't paying attention!:eek:
Sarcoth
03-19-2010, 05:17 PM
ROFL. Good one. :p
CoZmicShReddeR
03-19-2010, 06:10 PM
Ok so the next release we will be able to chose the display groups order?
Also I had to revert from the test 4.03 because it wasn't allowing me to add a group to show roster the input was there but the field there was no text...
Sarcoth
03-19-2010, 06:43 PM
@ Cozmic - Actually, I don't have a clue on how to setup a display order for the usergroups. The display setting I added won't care what order you type the numbers, it only sees the numbers as the usergroups you are allowing to be displayed.
So, that means you no longer control that setting from the usergroups area. Just type in all the usergroups you want on the roster in the ShowRoster Settings options area:
Usergroups displayed on the roster (comma separated ID list). Example: 19,13,24,20,17,18
I probably should have put them in numerical order, but that's how I added them as I went.
It is the 3rd setting down on the list. If you remove the bitfield xml file in the includes/xml folder, the input line in the edit usergroups area should be gone.
ViktorDA
03-19-2010, 07:52 PM
Thank you! This is wonderful!
I turned on the avatar, but the picture does not appear avatar - help.
Can I do this: in Showroster included only one group, but the result Showroster can watch all the groups?
Sarcoth
03-19-2010, 07:57 PM
@ Viktor - Click install please.
Another setting somewhere else must be interfering with your avatar selection. I just turned mine on and it works fine. I'll go install this on my operation site so you can see what it looks like.
I'm not sure what your 2nd question is asking though.
Front Range 4x4
03-19-2010, 08:14 PM
I installed the update but don't get the avatar or last visited. :(
ViktorDA
03-19-2010, 08:20 PM
@ Viktor - Click install please.
Sorry. Fixed.
I'm not sure what your 2nd question is asking though.
Not quite understand ... Can or not?
Sarcoth
03-19-2010, 08:21 PM
@ Viktor - Okay, it's installed. A bit crowded because of everything I have on, but it is working. I think I know the problem though because it didn't work for me at first either. I had all my templates edited from the previous version. You need to click on each of your edited showroster templates and then click on revert (to the right). When you do that, they will revert over to the newer version.
BEFORE you do that though, please remember to backup each of your templates. Copy/Paste them to a notepad or something. Do this in case you need to customize the new ones for some reason.
Let me know if that wasn't it. But, to be honest, I don't know what else it could be since mine worked. Here's the link to my roster:
http://sacredhaven.org/forumsh/showroster.php
Sarcoth
03-19-2010, 08:23 PM
I installed the update but don't get the avatar or last visited. :(
Same to you Front Range. Make sure the templates are reverted. :) Backup prior if you need to. I'm heading home now so I'll check back on your status later tonight.
Sarcoth
03-19-2010, 08:27 PM
Not quite understand ... Can or not?
I don't understand your question.
ViktorDA
03-19-2010, 08:30 PM
Here's the link to my roster:
http://sacredhaven.org/forumsh/showroster.php
Yes ... Beautifully ...
You do not know how to configure URL ShowRoster of vBSEO to display a friendly URL?
ViktorDA
03-19-2010, 08:40 PM
I don't understand your question.
Forgive me, I'm bad at english. :(
I want to include ShowRoster only for one group of users. What would have looked ShowRoster all groups. Now ShowRoster sees only one group that participates in ShowRoster
Sarcoth
03-19-2010, 08:58 PM
Forgive me, I'm bad at english. :(
I want to include ShowRoster only for one group of users. What would have looked ShowRoster all groups. Now ShowRoster sees only one group that participates in ShowRoster
I figured English was not your primary language, so no worries. I will try to help, but I still do not understand. I am sorry. :(
If I were to guess what you want. You want to display only one usergroup on the roster but you want to give access to all usergroups. Let me know if you understand that and whether that is what you want or not.
Front Range 4x4
03-20-2010, 01:55 AM
Same to you Front Range. Make sure the templates are reverted. :) Backup prior if you need to. I'm heading home now so I'll check back on your status later tonight.
I've reverted templates, deleted files, re-installed and can't get anywhere. Not sure why but I might have modified too many things to expect it to work. :o
I'm not even thinking of uninstalling because it's doing what I need wonderfully, just thought the avatar, join date and last visited would be nice.
Sarcoth
03-20-2010, 06:28 AM
FrontRange - I'll take a look at your templates if you want. Either post them here or send me a PM with a login to your forums (w/template admin access).
In other news. I just successfully got a couple new features working. The ability to set the default sort (ASC or DESC) for each column and whether the roster is sorted by groups or not. I haven't added it for all columns yet, but if you want an idea of what I mean, check out my roster. If you click on the Status sorter at the top, you'll see an example of sorting without groups. If you click on the Character Name sorter, you'll see an example of sorting DESC (descending or reverse).
http://sacredhaven.org/forumsh/showroster.php
Now, for the big question. I'm noticing that I keep adding more and more options to the settings page. My question is, is it too much? I want to make it as customizable as possible, but the settings page is getting huge. What do you think? What do you want?
I'm off to bed!
ViktorDA
03-20-2010, 07:36 AM
Sarcoth, I figured out the groups!:o
Left open the question of avatars - they are not, do not appear in ShowRoster :(
I reinstalled modes, but it did not help. Avatars always included.
Sarcoth
03-20-2010, 01:36 PM
Does anyone have the avatar's working? If not, can someone set me up with access to their site. I want to figure out what is wrong. I've installed mine over and over and everything works fine on my test site and home site.
ViktorDA
03-20-2010, 02:39 PM
Avatar is not displayed I think because of an incorrect path to the avatar. And no matter where it is stored or base or in the folder as a file
Sarcoth
03-20-2010, 03:16 PM
Gotcha. It probably has something to do with avatar settings then. Since I have my settings a certain way, it is working for me. I need to figure out a way to get it to work for everyone though. Can you tell me all your avatar settings?
Front Range 4x4
03-20-2010, 03:24 PM
If the avatars path relates to the profile rather than postbit that would probably explain my issue since I don't have the avatar visible in the profile.
Sarcoth
03-20-2010, 04:10 PM
@Front Range - Ahha! I think I understand the problem now. I'll see what I can do about the avatars then. But, I'm also concerned about your joined date and last activity not working either.
CoZmicShReddeR
03-20-2010, 04:23 PM
Also with Fixed theme "Member Count" is pushed outside the table...
Also would like to see is the sort table spread out with the display tables...
ViktorDA
03-20-2010, 06:28 PM
I also found a variable already in the code page:<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="1" bordercolor="#565545" width="100%" align="center">
variable $stylevar probably not processed.
Front Range 4x4
03-20-2010, 06:30 PM
I'm also concerned about your joined date and last activity not working either.
I'll have to re-visit those Sarcoth, I'll edit the templates again and see if it's my error which it very well may be. Unregistered users can view it now if you'd like to see it.
Front Range 4x4
03-20-2010, 06:36 PM
Joined date is now working even though 'on in ACP - I just removed just the <if> </if>
I'll have to do some more editing for the last activity but suspect that will work the same.
edit: Last Activity is also working, removed <if> statement as above
Front Range 4x4
03-20-2010, 06:58 PM
As mentioned previously my modification to the Profile is probably the cause if the avatar not showing and not worth figuring out. I'm extremely pleased with it now that the Joined Date & Last Activity are displayed. Thank you for the great mod & support, I hope I didn't waste your time on what appears to have been my error.
:up:
Sarcoth
03-20-2010, 08:44 PM
@ Front Range - NP. I'm curious about those IF statements. I do have some in there now because there are new options that you need to set in the ShowRoster Settings which turn the Joined Date/Last Activity on. Although, they are on by default.
@ Viktor - Thanks, I'll take care of those.
@ Cosmik - Can I see your roster so I can look at what you mean? I think I know, but I'd like to see what it is doing. You'll need to give unregistered users permissions to view.
CoZmicShReddeR
03-20-2010, 09:06 PM
Ok I loaded it back... Having issues with the beta 4.03 version with usergroups... :)
I have uninstall it to update groups!
Front Range 4x4
03-20-2010, 09:18 PM
@ Front Range - NP. I'm curious about those IF statements. I do have some in there now because there are new options that you need to set in the ShowRoster Settings which turn the Joined Date/Last Activity on. Although, they are on by default.
I have them turned on but it didn't help, once I removed the IF statements they popped right up. :cool:
CoZmicShReddeR
03-21-2010, 12:29 AM
Also sorting can that be a drop down menu that might help the spacing out and would look nicer...
Sarcoth
03-21-2010, 06:53 AM
I have them turned on but it didn't help, once I removed the IF statements they popped right up. :cool:
Did you download the new .php file as well? I just noticed the new xml file had more views than the php so I'm thinking that some of you were installing the new xml and not using the new php file. The post with the xml said the php file was 2 posts up. :p
Also sorting can that be a drop down menu that might help the spacing out and would look nicer...
I'm not sure what you mean.
CoZmicShReddeR
03-21-2010, 06:41 PM
It was suggested to me to create a drop down menu for people to chose how they want to see the listing/sort instead of the table where you can click on the info to change the order you have a drop down menu with the listing of like where it says status at the top and there is a row of all the info about the roster users...
Sarcoth
03-22-2010, 12:14 PM
It was suggested to me to create a drop down menu for people to chose how they want to see the listing/sort instead of the table where you can click on the info to change the order you have a drop down menu with the listing of like where it says status at the top and there is a row of all the info about the roster users...
Interesting. You gave me an idea. I'll see what I can do.
Sarcoth
03-22-2010, 06:03 PM
All sorting should be working in this beta version. See attachment if you want to try it out. I haven't seen any errors. Please keep in mind, ALL options for this version are set in the ShowRoster Settings. There is no need to edit any usergroups. The bitfield file in the includes/xml folder can be deleted to avoid confusion.
Before I release the next full version:
1) I still want to get the avatar problem fixed, but I am having problems duplicating the problem. I need to know some options that you have on your forums before I can figure out what to do on mine. If you have a problem with the avatars working and you have a duplicate of your forums set up as a test site, let me know. I'd like to use that as a test bed so I can work out that problem. In the meantime, I'll keep looking into it.
2) I'm going to try and put together a different type of sorting area like Cozmic suggested. That is what I am working on now.
EDIT: #2 has been completed. I guess I'll release 4.0.3 as soon as I can figure out how to do the avatars. The zip file has been updated.
Check out my roster to view some of the changes: http://sacredhaven.org/forumsh/showroster.php
The Adventure/Crafting Level columns are set to a single table format. You can do that with any column. You can also adjust the direction they are sorted.
EDIT again: I found a small problem with the sorting again. I thought I had it all worked out, but apparently I missed something. The default sort works perfectly, but once you do another sort, the users with blanks for the column you are sorting will not appear on the list. That's fine, but it is supposed to be an option to do that. I'll figure it out tonight.
CoZmicShReddeR
03-22-2010, 08:43 PM
I uninstalled the previous version and installed the one you just posted with the new showroster.php
I am having issues with the usergroups with this latest one it doesn't show and it makes a field in usergroups with a button but no info and when I click the button and click ok I get a database error...
Database error in vBulletin 4.0.2:
Invalid SQL:
UPDATE usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Registered Users',
`description` = '',
`usertitle` = '',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '0',
`passwordhistory` = '0',
`downloads2permissions` = '127',
`downloads2extrapermissions` = '0',
`excludecatlist` = '',
`downloadsmaxuploadtotal` = '-1',
`downloadsmaxdailydl` = '-1',
`downloadsmaxdailyfiles` = '-1',
`downloaddelaygrp` = '60',
`micromembers` = '31',
`psiwd_options` = '0',
`forumpermissions` = '12317183',
`attachlimit` = '0',
`showrosteraddpermissions` = '1',
`trmpermissions` = '0',
`dbtech_vbactivitypermissions` = '2',
`vbblog_general_permissions` = '519166',
`vbblog_customblocks` = '5',
`vbblog_custompages` = '5',
`vbblog_entry_permissions` = '8191',
`vbblog_comment_permissions` = '974',
`dbtech_vbshoutpermissions` = '2108',
`genericpermissions` = '1579685575',
`pmquota` = '50',
`pmpermissions` = '3',
`pmsendmax` = '5',
`pmthrottlequantity` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '1',
`adminpermissions` = '0',
`genericpermissions2` = '1',
`genericoptions` = '62',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '100',
`avatarmaxheight` = '100',
`avatarmaxsize` = '30000',
`signaturepermissions` = '237567',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '1000',
`sigmaxchars` = '500',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '4',
`albumpermissions` = '255',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '63',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '251767',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '65535'
WHERE usergroupid=2;
MySQL Error : Unknown column 'showrosteraddpermissions' in 'field list'
Error Number : 1054
Request Date : Monday, March 22nd 2010 @ 05:40:13 PM
Error Date : Monday, March 22nd 2010 @ 05:40:13 PM
Script : http://www.cozworld.com/admincp/usergroup.php?do=update
Referrer : http://www.cozworld.com/admincp/usergroup.php?do=edit&usergroupid=2
IP Address : 99.158.234.165
Username : CoZmicShReddeR
Classname : vB_Database
MySQL Version : 5.1.41
Also the Roster tab only shows when I go to the http://www.cozworld.com/showroster.php
Sarcoth
03-22-2010, 09:37 PM
Did you delete the bitfield_showroster.xml in the includes/xml folder? Also, you have to put usergroups id's you want on the roster in the ShowRoster Setting options now.
CoZmicShReddeR
03-22-2010, 10:20 PM
Ok deleting bitfield_showroster.xml fixed the showing empty field in usergroup issue!
But the Nav button not showing globally still exists... I tried disabling the tab mod didn't show even after trying 1-9 for position to show tab...
Sarcoth
03-23-2010, 12:51 AM
@ Cozmic - Got it working. No changes to the showroster.php file. I'll repost the beta version for further testing. Just do an install, no need to reinstall Cozmic. BTW, the tab button order setting (What order would you like your Roster tab to appear on the Navbar?) doesn't work yet. I may have to remove that from the release.
If you have 4.0.2 installed, you will have to uninstall and do a fresh install of this version. MAKE SURE YOU DELETE THE BITFIELD_SHOWROSTER.XML FILE in the includes/xml folder before doing this install.
CoZmicShReddeR
03-23-2010, 07:50 AM
Awesome the tab is finally showing globally!
Also too is under "Permission Settings" ; "Usergroups displayed on the roster" I set it too show 26,25,21 but the view order is showing 26, 21, 25 can you make it so it forces the display order?
And another thing maybe way down the road would be to have the gamecard mod/ icons work with this like maybe even the actual banners since with a guild or clan it would come as a helpful addition since we both use xfire at least... Might be just allow the user field to be edited by whatever script those use from the post bit and have an example here how to add the script might be really simple just need to be able to edit the view field area...
But first things first... :)
Sarcoth
03-23-2010, 11:29 AM
Awesome the tab is finally showing globally!
Also too is under "Permission Settings" ; "Usergroups displayed on the roster" I set it too show 26,25,21 but the view order is showing 26, 21, 25 can you make it so it forces the display order?
And another thing maybe way down the road would be to have the gamecard mod/ icons work with this like maybe even the actual banners since with a guild or clan it would come as a helpful addition since we both use xfire at least... Might be just allow the user field to be edited by whatever script those use from the post bit and have an example here how to add the script might be really simple just need to be able to edit the view field area...
But first things first... :)
I had to be sneaky to get that to work, but I'm glad it is working. In regards to those usergroupids displayed on the roster...I think the mod would have to be fully rebuilt to get it to do that. I've already looked at it once, and I just didn't see a way. There is an alternative though and I'm looking into it. You'll need to do what I do though. Change your usergroup titles to something so they are alphabetically. Take a look at my roster to see what I mean. I'll then see if I can use the Description or User Title for that Usergroup for display rather than the title.
It's easy to make adjustments to each private own roster, but I don't know about putting in those types of selections. That's something I'll probably add to the HOW TO document. Who knows though, we'll see.
I also still need to fix a small sorting malfunction, but I'll get to it tomorrow. Not to mention that I would like to get the avatar thing working, but without knowing what settings are preventing it...I'm having a hard time figuring out what to do there. Someone said they have avatar's off in the profile's, but what setting controls that?
I doubt I'll be available the rest of the day, so I'll check back this evening.
Shadawg
03-24-2010, 11:57 AM
I liked this mod, but it would be nice to have the usergroups displayed in whatever order wanted by using the i.d's, i.e. 6,2,8,12,7,5 etc....
Sarcoth
03-24-2010, 02:24 PM
@ Cozmic - I was at a LabView programming seminar yesterday and a possible solution for arranging the usergroups came to me. Surprisingly, I actually got it working 5 minutes ago. I won't need to rewrite the code like I thought I might have to do. So, in the next version you will now be able to arrange the usergroups from the display field in the ShowRoster settings.
I still have to fix the sorting problem I found and the avatar's before I release it though.
Sarcoth
03-24-2010, 04:21 PM
Frontrunner confirms that the avatars are working in this version as well, so that just leaves my sorting issue and this should be ready for release.
CoZmicShReddeR
03-24-2010, 05:01 PM
Well I am excited you were able to fix the group sorting issue! Am eager to see what lies down the road with your abilities! Hopefully this hasn't been interfering with your studies too much!
Front Range 4x4
03-24-2010, 10:02 PM
I just need to say thanks again Sarcoth. While my use is far from the clan/guild it's pretty easy for anyone to modify this for just about any member list format they would care to have. I run a 4x4 club and have this set to provide a snapshot view of all members profile information including added fields, avatar, join/activity dates, etc.
Very nice for anyone wanting the perfect memberlist alternative.
*installed*
*nominated*
*very happy*
Sarcoth
03-25-2010, 03:10 PM
Welcome. I was trying to get the release done before I went out for lunch, but sadly I encountered yet another problem with the sorting. The sorting is very tricky and probably the most difficult part of the coding. If and Switch statements make it do one thing or another and I'm even having a hard time keeping track of them now. Fun stuff though.
Anyhow, yesterday I had come to a decision that I just couldn't get the usergroup thing to work without breaking the sorting. I had given up. While I was typing the message here though, another idea came to me; and it worked. I figured, since sorting by usergroupid is only important when...SORTING by usergroupid, I could add an IF...Statement for that. Bingo, that did the trick. So, this way, when sorting via another field, it will use the old code for that which works for the other fields.
Well, that sounded all good, but while retesting things this morning after a fresh install, I noticed that something wasn't right with the sorting again. I'll have to recheck the code again to double check, but now groups appear to always want to start off with ASC, so maybe I copied something out of old code over my new stuff and screw the sorting up for some dumbass reason. I need some food now though, so off to lunch.
CoZmicShReddeR
03-25-2010, 04:28 PM
Well take your time don't rush it rather see a Master Piece of your work then a horrible numbered job!;)
Sarcoth
03-25-2010, 05:13 PM
Thanks, but this is no where near a master piece. That would be the EasyForms code. I can't believe all the stuff banana was able to do in that thing. I'm lower than a beginner compared to him.
Well, I'm either crazy or somehow the code is randomly causing the sorting issue. I don't see how it could occur randomly, so I must be losing it. I looked over the code, couldn't find the problem, went back and tested it again and nothing was wrong. I walked away, came back, tested again, and thought I saw the problem again. I threw my hands up, retested, and nothing. I have now tested it over and over and I don't think the problem is there. I'm going to release the new version now.
If you are a new user of this mod installing it for the first time, it is very basic. Upload the showroster.php file and install the product_showroster.xml file.
If you are upgrading from a previous version, I recommend you play it safe and just delete all the old files and do a fresh install. If you don't delete the bitfield_showroster.xml file, you will have problems.
If you are upgrading from the beta 4.0.3 version, you should be safe just copying over the new showroster.php file and installing (overwriting) the beta. Although, you will need to revert your template changes if you want all the new code to take affect. I had to really do a number on the code this time. I really don't see how I will ever remember what it all does. :)
Please let me know if you find any problems. I'll consider suggestions but my week off from school is almost over and I need to get back to homework and studying.
XLCR GODFATHER
03-25-2010, 09:46 PM
If the sort option could sort by and group together members by social group this mod would be perfect for me
CoZmicShReddeR
03-26-2010, 10:11 AM
If the sort option could sort by and group together members by social group this mod would be perfect for me
If you mean like Facebook, Myspace this mod was originally intended for Guilds and Clans if I am not mistaken. You can make it show for specific user fields... Just have it use the registered user and for Filtering User the user field for Facebook or Myspace but you can only pic one with 4.03 might be a good suggestions to allow to have it filter to more then one and have it show in certain order.. Then for it to show for all users set it to Usergroups displayed which by default is Group #2...
Anyways for suggestions for this mod:
I was going to suggest it would be neat to set it by leaders of certain groups with a title if possible then have a list under those groups/subgroups then have it tear down into other subgroups which would be ideal for huge Guilds as well for runs if you set it to an event system!
Maybe even have it re-size the user images and avatars to show it in a tear system and then you could have user info in a small quick mini profile box show somewhere...
There is a Tournaments & Ladders mod here for just such a system but the roster could be ideal if it could produce a separate list for events maybe hooked into the calender...
But I see it like this for a Group that has separate group leaders and you want to have those leaders run separate groups of people underneath them for that day, week, month or year...
Leader Boards might be a better name then Roster Mod with all of this!
1st Division | 2nd Division | 3rd Division
Division Leader | Devision Leader | Devision Leader
1 Senior Officer | 1 Senior Officer | 1 Senior Officer
10 Members | 3 Members | 3 Members
3 Recruits | 2 Recruits | 1 Recruit
Now the members could be set to show just the list in a row of boxes if the system was too full rather then just showing all members at first glance. Then when you view the group it expands shows the actual user accounts with pictures and other info...
Sarcoth
03-26-2010, 12:30 PM
@ Cozmic - Sadly, I don't see this mod being able to do that. A new one would have to be built. The code in this one only allows for users to be divided into groups. Rather than try and rework this code to make it do subgroups and sub-subgroups, it would be better if someone just started something from scratch.
For me, I mainly built this for use with my guild and then posted it to share with others. The suggestions were boundless and I was sucked into wanting to upgrade further. I don't mind adding to what is already here, but I doubt I'll have the time to rebuild it from the ground up. If there are options within the scope of this mod, I'll do my best to add them if they are within my power.
@ XLCR - I think he means the social groups within vBulletin. I know there is a table for that, but I'd need to see more interest in it (from people that click install) if I were to consider looking into it.
CoZmicShReddeR
03-26-2010, 12:51 PM
Whatever you have built so far has been fine!
I am willing to support you along the way if you so chose to continue your work...:up:
Sarcoth
03-26-2010, 01:26 PM
Thanks, I appreciate that. BTW, the roster looks operational Cozmic. May I suggest you not include the Wii column till someone is using it. You can probably also set up links for each of those profiles so if someone clicks on an ID it takes you to a page.
Time to study, online exam due by Sunday.
CoZmicShReddeR
03-26-2010, 07:27 PM
Thanks, I appreciate that. BTW, the roster looks operational Cozmic. May I suggest you not include the Wii column till someone is using it. You can probably also set up links for each of those profiles so if someone clicks on an ID it takes you to a page.
Time to study, online exam due by Sunday.
Sure thing! Thanks!
kevius
03-27-2010, 02:16 PM
i'm sorry but, where is the sort menu ?????
dennisuello
03-28-2010, 03:35 AM
How do I rename the tab? I don't want it to say Roster.
XLCR GODFATHER
03-28-2010, 04:03 PM
If you mean like Facebook, Myspace this mod was originally intended for Guilds and Clans if I am not mistaken. You can make it show for specific user fields... Just have it use the registered user and for Filtering User the user field for Facebook or Myspace but you can only pic one with 4.03 might be a good suggestions to allow to have it filter to more then one and have it show in certain order.. Then for it to show for all users set it to Usergroups displayed which by default is Group #2...
Anyways for suggestions for this mod:
I was going to suggest it would be neat to set it by leaders of certain groups with a title if possible then have a list under those groups/subgroups then have it tear down into other subgroups which would be ideal for huge Guilds as well for runs if you set it to an event system!
Maybe even have it re-size the user images and avatars to show it in a tear system and then you could have user info in a small quick mini profile box show somewhere...
There is a Tournaments & Ladders mod here for just such a system but the roster could be ideal if it could produce a separate list for events maybe hooked into the calender...
But I see it like this for a Group that has separate group leaders and you want to have those leaders run separate groups of people underneath them for that day, week, month or year...
Leader Boards might be a better name then Roster Mod with all of this!
1st Division | 2nd Division | 3rd Division
Division Leader | Devision Leader | Devision Leader
1 Senior Officer | 1 Senior Officer | 1 Senior Officer
10 Members | 3 Members | 3 Members
3 Recruits | 2 Recruits | 1 Recruit
Now the members could be set to show just the list in a row of boxes if the system was too full rather then just showing all members at first glance. Then when you view the group it expands shows the actual user accounts with pictures and other info...
The only reason I asked is I have altered my languages for social groups to list as squads, group owners=squad leaders etc. as this is how I keep my large clan more organized.
Having the roster display and sort by the social group would just create an easier way for members to view them. The only thing I see was the ability to sort by a userprofile field but with the way my set up is this would create more work changing the value of the field everytime a member joins or transfers to a squad manually. My user groups are set up for the squad leaders to accept or remove members from their squads at will, with minimal effort. My member ranking system is directaly tied to the user groups and the squad leaders have the ability to alter the user groups under them for changing ranks.
Please forgive me I am new to all this and a little unfamiliar with some of the more complex coding found on vb.org. But I have been learning fairly quickly.
IR15H
03-28-2010, 09:04 PM
Glad to see this has made it to vB4 :).
i'm sorry but, where is the sort menu ?????
Beneath the main navigation menu when you're on the Roster 'tab'.
How do I rename the tab? I don't want it to say Roster.
Edit the template showroster_navbar, change <a class="navtab" href="showroster.php{vb:raw session.sessionurl_q}">Roster</a> to whatever you want.
-----------------------
I had a play around with the templates on my test site, mainly moving all the styling to a separate css sheet so that the table would take on the style of whatever the user was viewing in, but also the odd tweak. Below are two examples;
Grouped:
http://img149.imageshack.us/img149/1912/roster1.png
Single Table:
http://img25.imageshack.us/img25/2255/roster2.png
I also thought of some ideas/requests for future versions;
as mentioned previously, default order is that which user group IDs are entered in the settings
multiple rosters
allow HTML in group titles (where my first screen shot has all the <span> stuff)
make each group listing collapsible
find a way to get multiple-selection user profile fields to work in the roster
add page pagination for long rosters
add an age column (assuming user has set age to be public)
add a PM/Email/MSN/Skype column (following default permissions)
phrase the few remaining unphrased words (eg. Roster)
Anyway, if you're interested in the template/css changes I made let me know and I'll give you what I've done.
Hope your exam went okay :).
Bojangles
03-29-2010, 05:33 PM
Great mod!
I would love to see the ability (in a future version) to replace the text group name with an image instead (image path is entered as an option in the group). If that ever happens, would it look prettier to have the image centered over the listing of the people in the group, instead of fixed on the left?
Thanks again for making this!
CoZmicShReddeR
03-29-2010, 08:18 PM
IR15H I think that is amazing and exactly what this needed!
Please share if you could with Sarcoth or maybe with us here... I would love that if you could share it with me either way...
Thanks!
Sarcoth
03-31-2010, 07:39 PM
I had a play around with the templates on my test site, mainly moving all the styling to a separate css sheet so that the table would take on the style of whatever the user was viewing in, but also the odd tweak.
Are you talking about the different browser types? Hmmm, I know the tables looked different in Firefox and IE, but I didn't know I could do much about that. I'm interested in the css sheet and what you did to the templates if you don't mind. Thank you.
I also thought of some ideas/requests for future versions;
as mentioned previously, default order is that which user group IDs are entered in the settings
multiple rosters
allow HTML in group titles (where my first screen shot has all the <span> stuff)
make each group listing collapsible
find a way to get multiple-selection user profile fields to work in the roster
add page pagination for long rosters
add an age column (assuming user has set age to be public)
add a PM/Email/MSN/Skype column (following default permissions)
phrase the few remaining unphrased words (eg. Roster)
1) You mean the default order isn't working for you? I did add it to this version, but it only works when the default sort is usergroupid.
2) I had thought of doing that already, but just haven't gotten around to it. Easy enough to do.
3) Hmmm, that may be more of a challenge. I know how to do collapsable groups, but I wonder how that would work for this type of mod. This would be a fun one to work on.
4) I guess I've never used them so never noticed they were not working. I'll chalk this one up for much later.
5) Ack, sadly I don't know about that for this mod. I'd be better off redoing the whole code and mimicing the memberlist.php. This mod was initially built as a way to reuse the showgroup.php file, but it became so customizable I had to redo it as a mod. You're welcome to the challenge if you'd like.
6) I had this once, but removed it since I didn't see it in use anywhere. I'll readd the code and then provide a way to have it added without actually adding ANOTHER column. Maybe just set it up in a way that you can type birthday in one of the field columns.
7) I had thought of doing this as well. I'll look into it but this one may be two versions later.
8) Yea, I meant to actually do that in the last version. I was so excited about getting the big things working that I never got around to this.
Thanks for the suggestions.
Hope your exam went okay :).
It didn't actually. I decided to read only 2 of the 3 chapters so I only got around 70%. But, the good news is, that was good enough to give me a 90.8 in the class. I still have 2 more tests to take this semester, but they will only improve my grade, not make it worse. So, basically, if I get 62 out of the remaining 168 questions, I'll have a 100 for the semester. Not important since I already have an A. I thought the extra credit would be easier and more fun than taking the tests...I was right.
Sarcoth
03-31-2010, 07:42 PM
Great mod!
I would love to see the ability (in a future version) to replace the text group name with an image instead (image path is entered as an option in the group). If that ever happens, would it look prettier to have the image centered over the listing of the people in the group, instead of fixed on the left?
Thanks again for making this!
I'm not sure putting images in the group names would be widely used. Plus, it would be code intensive adding the code in there for the select few that want to do that. Instead, I'll see what I can do in telling you how to accomplish it on your own. Let me know if you are still interested.
IR15H
03-31-2010, 09:44 PM
Are you talking about the different browser types? Hmmm, I know the tables looked different in Firefox and IE, but I didn't know I could do much about that. I'm interested in the css sheet and what you did to the templates if you don't mind. Thank you.
As far as I can see, they render the same way in the latest versions of FireFox, IE and Chrome. I've attached the xml file with the template changes.
1) You mean the default order isn't working for you? I did add it to this version, but it only works when the default sort is usergroupid.
The default order works fine but what I would like is a custom order, which is defined by the order in which I enter the user group IDs in the settings box. In regards to the other suggestions, thanks for the feedback on them (although I think you missed the one about HTML in the user group titles).
As for your exam, I did the trick of only revising half of the material once but nailing it so I got the mark I needed, sounds like you're going to get the marks you need too :).
CoZmicShReddeR
03-31-2010, 11:30 PM
Thanks IR15H,
I think having the gamerscard (https://vborg.vbsupport.ru/showthread.php?t=232033&highlight=xbox) icons show or the mini banners would be a nice plus or someone could make an addon for ShowRoster for those that want it to display... Same with the Messengers Icons...
Sarcoth
04-01-2010, 11:54 AM
As far as I can see, they render the same way in the latest versions of FireFox, IE and Chrome. I've attached the xml file with the template changes.
The default order works fine but what I would like is a custom order, which is defined by the order in which I enter the user group IDs in the settings box. In regards to the other suggestions, thanks for the feedback on them (although I think you missed the one about HTML in the user group titles).
As for your exam, I did the trick of only revising half of the material once but nailing it so I got the mark I needed, sounds like you're going to get the marks you need too :).
Thanks for the file, I'll check it out.
I spent days trying to get the custom order to work when sorting was used and it broke no matter how I tried it. I don't think it will work because the way the grouping is done. Maybe one day I'll try to change over to something else.
Nope, #2 was the HTML one. I missed the multiple rosters suggestion. Still not sure how to do it. That is one I'd like to do though. The main problem there is how to do permissions. I would definitely need to add some tables and a lot more code to make it to work. Not sure I'll have the time to come up with something like that in the near future.
Andyucs
04-01-2010, 12:55 PM
.
Thank you
very nice upgrade
IR15H
04-01-2010, 01:26 PM
Thanks IR15H,
I think having the gamerscard (https://vborg.vbsupport.ru/showthread.php?t=232033&highlight=xbox) icons show or the mini banners would be a nice plus or someone could make an addon for ShowRoster for those that want it to display... Same with the Messengers Icons...
It's easy enough to get banners for xbox (http://www.mygamercard.net/), xfire (http://www.xfire.com/miniprofile/) etc. by going to the relevant site, selecting the banner you like, then editing the generated code very slightly and putting it in your showroster_userbits template. For example;
Replace {vb:var userinfo.{vb:var columns[columnX]}} with the following;
xfire
<img src="http://miniprofile.xfire.com/bg/sh/type/3/{vb:var userinfo.{vb:var columns[columnX]}}.png" alt="{vb:var userinfo.{vb:var columns[columnX]}}" />
xbox
<img src="http://card.mygamercard.net/presence/{vb:var userinfo.{vb:var columns[columnX]}}.png" alt="{vb:var userinfo.{vb:var columns[columnX]}}" />
Replace X with whatever column you're using for xfire/xbox etc.
Thanks for the file, I'll check it out.
I spent days trying to get the custom order to work when sorting was used and it broke no matter how I tried it. I don't think it will work because the way the grouping is done. Maybe one day I'll try to change over to something else.
Nope, #2 was the HTML one. I missed the multiple rosters suggestion. Still not sure how to do it. That is one I'd like to do though. The main problem there is how to do permissions. I would definitely need to add some tables and a lot more code to make it to work. Not sure I'll have the time to come up with something like that in the near future.
Every time I look at PHP I can never quite figure it out and end up with a headache but from what I can gather, you've basically said;
What usergroups do you want to show on the roster?
What attribute of usergroups should be the primary one, user id or user title?
How should I sort that attribute, ascending or decending? (If none defined, then sort ascending)
As I don't really understand PHP, this may be overly simplistic, but what happens if you simply remove steps 2 and 3? Is the default behaviour to simply fetch display in the order they are entered, or is there some inherit sort behaviour that needs to be overwritten?
---------------------
In regards to multiple rosters, I was thinking along the lines of two entries for showroster_display_groups in the settings then some crazy if conditions like if showroster_display_groups_2 is not blank then display roster2, which would use the same fields/columns as roster1, but appear on a different tab. Of course the downside to that approach would be that you'd be limited to using the same user profile fields for both rosters. However, as I said, I don't really understand PHP so don't know how feasible such an idea would be.
Thank you
very nice upgrade
Glad you like it :).
CoZmicShReddeR
04-03-2010, 04:18 AM
Thank You IR15H, I added the information worked out nicely!
I did however notice when I added the xbox and PS3 tags it was a bit too much probably be better to just use icons for those... You can use the smaller xbox icons from the links but if a user doesn't have a xbox gamer card it shows a white error message in the showroster block...
It still is a nice addon to the Showroster!
betts02
04-09-2010, 06:07 PM
I have tried to add some extra field to this to show a list of played games using a multi check box bu this will not show on the roster, just a number
anyway to show a list of say 6 games a user playes so it shows on the roster ?
Sarcoth
04-09-2010, 06:19 PM
@ betts - Each box is assigned a number within the code. So, when the user checks the box, that is what is given. It is possible to do what you ask, but I it will only give back a single number no matter what. Out of curiosity, does it give you back a different number depending on what is checked or always the same thing, like 1? To be honest, I'm not sure of an easy way to get it to display what you check.
To everyone, school is really busy right now with this being the final month of the semester. I'll return to working on updates after May 10. Unless someone wants to write my economics term paper for me that is...oh well, it was worth a try. :)
Front Range 4x4
04-09-2010, 06:19 PM
For the benefit of others who are thinking of using this for a non RPG site I'm attaching a screenshot of my roster. This is a great mod and with a bit of template editing is a great improvement for a member list.
I've had a few people contact me so here it is and I'm more than happy to offer help for those interested.
betts02
04-09-2010, 07:22 PM
@ betts - Each box is assigned a number within the code. So, when the user checks the box, that is what is given. It is possible to do what you ask, but I it will only give back a single number no matter what. Out of curiosity, does it give you back a different number depending on what is checked or always the same thing, like 1? To be honest, I'm not sure of an easy way to get it to display what you check.
To everyone, school is really busy right now with this being the final month of the semester. I'll return to working on updates after May 10. Unless someone wants to write my economics term paper for me that is...oh well, it was worth a try. :)
Yes it gives back a different nuber if i select different games
What i am trying to do is have this show our full members only what games they play
so each person knows who plays what games
i can work arround it a different way with many profile field single box but i thought it may work with check box and show, nut seems not :(
SuperTaz
04-23-2010, 04:25 AM
I am having trouble lining up the tables correctly. Take a look:
P.S. I blacked out the names and ID's.
Sarcoth
04-23-2010, 04:51 AM
I am having trouble lining up the tables correctly. Take a look:
P.S. I blacked out the names and ID's.
You should do column width's. Open the showrosterbits template and edit the TD area's: add colspan="20%" to each one and then adjust them to the proper sizes as you see fit. Just make sure they total 100%.
SuperTaz
04-23-2010, 06:02 AM
You should do column width's. Open the showrosterbits template and edit the TD area's: add colspan="20%" to each one and then adjust them to the proper sizes as you see fit. Just make sure they total 100%.
Did not work. And there is no "showrosterbits", there is a
"showroster_userbits" template. Is that what you are referring to?
Sarcoth
04-23-2010, 11:49 AM
Did not work. And there is no "showrosterbits", there is a
"showroster_userbits" template. Is that what you are referring to?
Yep. Copy/paste your showroster_userbits here and I'll edit it for you. showrosterbits is the template call to that template in the php file. I sometimes forget to distinguish them.
BTW, I don't know why I said colspan last night, I meant width. Funny that I was thinking width but typed the other. My macroeconomics class is frying my brain.
fluidswork
04-23-2010, 04:27 PM
Great addition ....
Niak_Judge
04-23-2010, 05:10 PM
Great idea, thank you for sharing this :) !
*DownLoaded + installed *
brown12321
04-23-2010, 06:50 PM
Nice Idea. Is there a way NOT to add it to the navbar?
Sarcoth
04-23-2010, 07:03 PM
Nice Idea. Is there a way NOT to add it to the navbar?
You know, I thought that was an option, but now since you mention it I'll have to check it out. Has to wait a couple weeks though. Semester is still winding down and I have a lot of things that need to be done; including a lot of studying.
In the meantime, you could turn off the plugin that is creating the tab on the navbar. That should do the trick, but it would still create the tab when you go to the roster.
brown12321
04-23-2010, 07:13 PM
You know, I thought that was an option, but now since you mention it I'll have to check it out. Has to wait a couple weeks though. Semester is still winding down and I have a lot of things that need to be done; including a lot of studying.
In the meantime, you could turn off the plugin that is creating the tab on the navbar. That should do the trick, but it would still create the tab when you go to the roster.
Ok, that worked but it still comes up when you go to the roster. Is there a way to call the tab what you want. I want to change it so it does not say roster?
Sarcoth
04-23-2010, 07:22 PM
Ok, that worked but it still comes up when you go to the roster. Is there a way to call the tab what you want. I want to change it so it does not say roster?
Yea, I mentioned that it would still show up when on the roster. There is some code you could remove at the bottom of the php file, but I can't look at it now. That would remove it from the roster as well. You can change the name of it with some edits to the code, but again, I'd need to look at the code. Just look for something like 'Roster' in the php file. I will be adding it to the options in the next version though.
brown12321
04-23-2010, 07:34 PM
Yea, I mentioned that it would still show up when on the roster. There is some code you could remove at the bottom of the php file, but I can't look at it now. That would remove it from the roster as well. You can change the name of it with some edits to the code, but again, I'd need to look at the code. Just look for something like 'Roster' in the php file. I will be adding it to the options in the next version though.
I just removed the following from the showroster.php and the tab is now gone:
// ###SPECIAL NAVBAR############################################ ################
$accessgroups = explode(',', $vbulletin->options['showroster_access_groups']);
$navbarloc = $vbulletin->options['showroster_navbar_loc'];
switch ($navbarloc) {
case '1':
$nbloc = 'navtab_start'; break;
case '2':
$nbloc = 'navtab_middle'; break;
case '3':
$nbloc = 'navtab_end'; break;
}
if (THIS_SCRIPT == 'showroster') {
$vbulletin->options['selectednavtab'] = 'showroster';
}
$templater = vB_Template::create('showroster_navbar');
$templater->register('sorturl', $sorturl);
$templater->register('accessgroups', $accessgroups);
$templater->register('columns', $columns);
$templater->register('sortgroupfield', $sortgroupfield);
$templater->register('oppositesort', $oppositesort);
$template_hook[$nbloc] .= $templater->render();
// ###SPECIAL NAVBAR############################################ ################
Sarcoth
04-23-2010, 08:00 PM
I'm brilliant! Apparently I did put markers in the code. :p Please click install and enjoy!
drainpan
04-24-2010, 01:12 AM
I have a problem with this. I am using 4.0.2
MySQL Error : Unknown column 'showrosteraccesspermissions' in 'field list'
Error Number : 1054
Request Date : Sunday, April 18th 2010 @ 11:17:02 AM
Error Date : Sunday, April 18th 2010 @ 11:17:02 AM
Script : http://www.+++++nipples.com/forum/admincp/usergroup.php?do=update
Referrer : http://www.+++++nipples.com/forum/admincp/usergroup.php?do=edit&usergroupid=6
As you can see by the attached screenie... in the usergroup manager there is this category that has no title and no choices and when submitting any changes it throws the above error.
Any ideas?
https://vborg.vbsupport.ru/
SuperTaz
04-24-2010, 01:23 AM
Yep. Copy/paste your showroster_userbits here and I'll edit it for you. showrosterbits is the template call to that template in the php file. I sometimes forget to distinguish them.
BTW, I don't know why I said colspan last night, I meant width. Funny that I was thinking width but typed the other. My macroeconomics class is frying my brain.
Here you go:
<vb:if condition="$showbits == 1">
<tr>
<td>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<vb:if condition="$show[onlinestatuscol]"><td>{vb:raw userinfo.onlinestatus}</td></vb:if>
<td width="80%">
<vb:if condition="!$show[onlinestatuscol]"> </vb:if><a href="member.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}-{vb:raw userinfo.username}">{vb:raw userinfo.musername}</a>
</td>
</tr>
</table>
</td>
<vb:if condition="$show[field1st]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column1]}}</td></vb:if>
<vb:if condition="$show[field2nd]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column2]}}</td></vb:if>
<vb:if condition="$show[field3rd]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column3]}}</td></vb:if>
<vb:if condition="$show[field4th]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column4]}}</td></vb:if>
<vb:if condition="$show[field5th]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column5]}}</td></vb:if>
<vb:if condition="$show[field6th]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column6]}}</td></vb:if>
<vb:if condition="$show[field7th]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column7]}}</td></vb:if>
<vb:if condition="$show[field8th]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column8]}}</td></vb:if>
<vb:if condition="$show[datejoinedcol]"><td nowrap="nowrap" align="center">{vb:raw userinfo.datejoined}</td></vb:if>
<vb:if condition="$show[lastactivecol]"><td nowrap="nowrap" align="center">{vb:raw userinfo.lastactive}</td></vb:if>
<vb:if condition="$show[avatarcol]"><td nowrap="nowrap" align="center""><vb:if condition="$show[avatar]"><img class="avatar" src="{vb:raw avatarurl}" border="0" {vb:raw avwidth} {vb:raw avheight} alt="{vb:rawphrase xs_avatar, {vb:raw userinfo.username}}" hspace="4" vspace="4" /><vb:else /> </vb:if></td></vb:if>
<vb:if condition="$show[profilepiccol]"><td nowrap="nowrap" align="center">{vb:raw userinfo.profilepic}</td></vb:if>
</tr>
</vb:if>
drainpan
04-24-2010, 03:36 AM
Here you go:
<vb:if condition="$showbits == 1">
<tr>
<td>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<vb:if condition="$show[onlinestatuscol]"><td>{vb:raw userinfo.onlinestatus}</td></vb:if>
<td width="80%">
<vb:if condition="!$show[onlinestatuscol]"> </vb:if><a href="member.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}-{vb:raw userinfo.username}">{vb:raw userinfo.musername}</a>
</td>
</tr>
</table>
</td>
<vb:if condition="$show[field1st]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column1]}}</td></vb:if>
<vb:if condition="$show[field2nd]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column2]}}</td></vb:if>
<vb:if condition="$show[field3rd]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column3]}}</td></vb:if>
<vb:if condition="$show[field4th]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column4]}}</td></vb:if>
<vb:if condition="$show[field5th]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column5]}}</td></vb:if>
<vb:if condition="$show[field6th]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column6]}}</td></vb:if>
<vb:if condition="$show[field7th]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column7]}}</td></vb:if>
<vb:if condition="$show[field8th]"><td nowrap="nowrap" align="center">{vb:var userinfo.{vb:var columns[column8]}}</td></vb:if>
<vb:if condition="$show[datejoinedcol]"><td nowrap="nowrap" align="center">{vb:raw userinfo.datejoined}</td></vb:if>
<vb:if condition="$show[lastactivecol]"><td nowrap="nowrap" align="center">{vb:raw userinfo.lastactive}</td></vb:if>
<vb:if condition="$show[avatarcol]"><td nowrap="nowrap" align="center""><vb:if condition="$show[avatar]"><img class="avatar" src="{vb:raw avatarurl}" border="0" {vb:raw avwidth} {vb:raw avheight} alt="{vb:rawphrase xs_avatar, {vb:raw userinfo.username}}" hspace="4" vspace="4" /><vb:else /> </vb:if></td></vb:if>
<vb:if condition="$show[profilepiccol]"><td nowrap="nowrap" align="center">{vb:raw userinfo.profilepic}</td></vb:if>
</tr>
</vb:if>
It is actually done in the showroster_header
Sarcoth
04-24-2010, 04:54 AM
@drainpan - It can be done in the header or the userbits, but because of some code I added, it is just easier to do it in the userbits to get away from the possibility his code doesn't user the header. Hard to explain.
Anyhow, one more question for you Warden, I didn't think of this beforehand, but which field columns were you using? I'm going to guess it is field1st and field2nd, since I know you are using the musername, join date and last activity one. I'll just add the width to each one and let you edit it from there. You will want to change the percentages around till you are happy.
<tr>
<td width="20%">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<vb:if condition="$show[onlinestatuscol]"><td>{vb:raw userinfo.onlinestatus}</td></vb:if>
<td width="80%">
<vb:if condition="!$show[onlinestatuscol]"> </vb:if><a href="member.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}-{vb:raw userinfo.username}">{vb:raw userinfo.musername}</a>
</td>
</tr>
</table>
</td>
<vb:if condition="$show[field1st]"><td nowrap="nowrap" align="center" width="20%">{vb:var userinfo.{vb:var columns[column1]}}</td></vb:if>
<vb:if condition="$show[field2nd]"><td nowrap="nowrap" align="center" width="20%">{vb:var userinfo.{vb:var columns[column2]}}</td></vb:if>
<vb:if condition="$show[field3rd]"><td nowrap="nowrap" align="center" width="20%">{vb:var userinfo.{vb:var columns[column3]}}</td></vb:if>
<vb:if condition="$show[field4th]"><td nowrap="nowrap" align="center" width="20%">{vb:var userinfo.{vb:var columns[column4]}}</td></vb:if>
<vb:if condition="$show[field5th]"><td nowrap="nowrap" align="center" width="20%">{vb:var userinfo.{vb:var columns[column5]}}</td></vb:if>
<vb:if condition="$show[field6th]"><td nowrap="nowrap" align="center" width="20%">{vb:var userinfo.{vb:var columns[column6]}}</td></vb:if>
<vb:if condition="$show[field7th]"><td nowrap="nowrap" align="center" width="20%">{vb:var userinfo.{vb:var columns[column7]}}</td></vb:if>
<vb:if condition="$show[field8th]"><td nowrap="nowrap" align="center" width="20%">{vb:var userinfo.{vb:var columns[column8]}}</td></vb:if>
<vb:if condition="$show[datejoinedcol]"><td nowrap="nowrap" align="center" width="20%">{vb:raw userinfo.datejoined}</td></vb:if>
<vb:if condition="$show[lastactivecol]"><td nowrap="nowrap" align="center" width="20%">{vb:raw userinfo.lastactive}</td></vb:if>
<vb:if condition="$show[avatarcol]"><td nowrap="nowrap" align="center""><vb:if condition="$show[avatar]"><img class="avatar" src="{vb:raw avatarurl}" border="0" {vb:raw avwidth} {vb:raw avheight} alt="{vb:rawphrase xs_avatar, {vb:raw userinfo.username}}" hspace="4" vspace="4" /><vb:else /> </vb:if></td></vb:if>
<vb:if condition="$show[profilepiccol]"><td nowrap="nowrap" align="center">{vb:raw userinfo.profilepic}</td></vb:if>
</tr>
</vb:if>
Sarcoth
04-24-2010, 04:56 AM
I have a problem with this. I am using 4.0.2
As you can see by the attached screenie... in the usergroup manager there is this category that has no title and no choices and when submitting any changes it throws the above error.
Any ideas?
http://www.+++++nipples.com/forum/images/databaseerror.jpg
I think you are upgrading from an old version. You need to remove all the old files, check the install instructions. I don't recall the name of the file to remove, but it is in your includes/xml file.
drainpan
04-24-2010, 01:49 PM
I think you are upgrading from an old version. You need to remove all the old files, check the install instructions. I don't recall the name of the file to remove, but it is in your includes/xml file.
This wasn't an upgrade.
I have vb4.0.2 and I installed the 4.0.2 version of this mod, of course it was before the 4.0.3 versions came out but never noticed this problem until the other day.
I am not sure the new version will work without having to upgrade my forum version as well which I am not going to do.... tired of the upgrades.
Sarcoth
04-24-2010, 03:09 PM
@ drainpan - my 4.0.3 version works with vbulletin 4.0.2. Remove everything from the old version you installed and install the newer version. I improved a lot of things. :)
drainpan
04-24-2010, 06:47 PM
now once upgraded... it refuses to show any data even though all fields are populated and submitted. Usergroups to be displayed are also set
drainpan
04-25-2010, 04:20 PM
:crickets: any idea why this is happening?
I followed the instructions to a "T" and I cannot get any people to show up on the list.
Sarcoth
04-26-2010, 12:11 PM
Sorry, I take a break from emails over the weekend. Family time.
Anyhow, I could take a look at your page and look into the problem for you if you like. I'm not very busy today. Send me a PM with a link to your roster page and please make sure that the page is open to unregistered users. Or, better yet, create me an account and PM those details to me. I may need admin privledges to look into your problem. No way for me to guess at your error when nothing is showing up.
Installed this finally. =)
Sarcoth, worked really good. A few suggestions
The borders are set by default, which looked really bad on my dark background. Easy enough to fix. Only suggestion here is, documentation telling those that might not know how to change them. I read the install doc, but I mean more specific on that exactly.
The navbar option should allow for not having a navbar option (I just disabled the plugin, but others might not know how). Also a section for including a link to it in quicklinks, etc.
SuperTaz
04-26-2010, 11:48 PM
Thanks. Worked out fine.
Sarcoth
04-27-2010, 07:59 PM
Installed this finally. =)
Sarcoth, worked really good. A few suggestions
The borders are set by default, which looked really bad on my dark background. Easy enough to fix. Only suggestion here is, documentation telling those that might not know how to change them. I read the install doc, but I mean more specific on that exactly.
The navbar option should allow for not having a navbar option (I just disabled the plugin, but others might not know how). Also a section for including a link to it in quicklinks, etc.
Hey Trek. I'll look into the borders first thing when done with this semester. The navbar suggestion is already on the list. I'll have to look into the quicklinks thing. Thanks.
K4GAP
04-27-2010, 09:15 PM
I really love this but lack the knowledge to create proper user fields and such. Anyone here willing to take on the job probono?
Hey I just have to ask because this is would be a really slick addition to my site.
www.publicwarriors.com
drainpan
04-27-2010, 11:28 PM
Sarcoth,
I sent you a pm.
Thank you in advance for your help.
drainpan
04-29-2010, 12:47 AM
never mind... I figured it out
never mind... I figured it out
Whats the problem?.. same thing happen to me...
:crickets: any idea why this is happening?
I followed the instructions to a "T" and I cannot get any people to show up on the list.
How did you fix it???...
MudRacing
05-04-2010, 10:07 PM
how can I change the background color?
how can I change the background color?
How you get the small avatar by name like that?... I just setup mine... http://aogamers.com/forums/showroster.php
MudRacing
05-04-2010, 10:33 PM
How you get the small avatar by name like that?... I just setup mine... http://aogamers.com/forums/showroster.php
adminCP -> Option -> Showroster setting
MudRacing
05-05-2010, 09:10 AM
the awards is possible in the roster?
I'm using this: https://vborg.vbsupport.ru/showthread.php?t=232684
Thanks
Sarcoth
05-07-2010, 01:30 PM
Anything is possible, it just depends on how difficult it is to accomplish. I'd have to look over the code to see how that would fit. I plan to start working on a new version next Wednesday after my last final on Tuesday. Summer classes don't start till June so I have a 3 weeks to add a lot of new stuff. I'll see if I can find a way to allow awards for you next week Mud. It won't be part of my upgrade, just a side howto thing.
MudRacing
05-07-2010, 01:32 PM
Thaks :)
Gamershosting
05-16-2010, 12:02 PM
Hi all,
Ok I seem to be having an issue getting some of the Usergroups to display.
In my vBulletin/Options/ShowRoster settings I have the following for the Usergroups displayed:
6,7,2
6 = Administrators
7 = Moderators
2 = Registered Users
Seems the Registered Users is the only Usergroup showing.
I have the primary sort set at title.
THanks and your help is greatly appreciated.
TripleChin
05-17-2010, 10:21 PM
I love this mod. I am have done a few custom tweeks to it and would like some help with one I can't seem to work out.
In lieu of displaying a particular profile field, I would like to display an image in it's place. The field is not required, so some users will have it and other's won't. I am attempting to only display if the user has selected 'Yes'.
In "showroster_userbits" template I have made the following modification without success. If you have a suggestion as to how I could get it working that would be great.
<vb:if condition="$show[field4th]"><td nowrap="nowrap" align="center"><vb:if condition="$userinfo.$column[columns4] == /yes/i"><img src='http://myimages.com/image.gif'></vb:if></td></vb:if>
Thank you.
aflax045
05-24-2010, 12:32 AM
I have not played with this a whole bunch, but I have not figured this out. Is there a way to display the following? (Going to break this down so it is more easily understood).
A forum exists for multiple game guilds under one roof. I would like a roster that separates the rosters by the games played.
So for example:
WoW Guild Usergroups:
WoW Guild Leaders
WoW Guild Members
Aion Guild Usergroups:
Aion Legion Leaders
Aion Legion Members
I would like the roster page to separate the WoW users and Aion users into two separate areas or perhaps different pages.
Roster Page:
WoW Member Count: #
Leaders
A
B
Members
A
B
C
etc.
----------------------------------------------------------------------------------------------------
Aion Member Count: #
Leaders
A
B
Members
A
B
C
etc.
Trip3151
05-29-2010, 12:44 AM
Whats the problem?.. same thing happen to me...
Same nothing works :| this is all I get
http://www.outkasts.net.au/forum/showroster.php
Sarcoth
06-08-2010, 07:08 PM
Okay. I am back. Life got a little busy. I am hoping to start working on an update next week. If anyone is still having any problems, post them now and I'll get back to you. I'll look into the above stuff over the next 2 days. Depends on how long it takes me to fix my site. Apparently a few things are broke after updating.
fusionpot
06-09-2010, 04:37 AM
glad your back, just installed it and i get this error when i try to see the .php
Fatal error: Class 'vB_Template' not found in /home/?????/public_html/forum/showroster.php on line 500
here is whats on line 500.
$templater = vB_Template::create('showroster_navbar');
any ideas???
Sarcoth
06-09-2010, 07:36 PM
None yet. I'll set up a new test forum tomorrow and do a fresh install with the current version. Perhaps it has something to do with 4.0.3 but I don't know. I updated to 403 on Monday and I had no problems with the roster, but mine was already installed.
403 the version you have?
docvader
06-09-2010, 08:14 PM
Sarcoth, excellent script here. I'm trying to adapt it, to turn it into a STAFF PAGE. Which is something that vbulletin needs, and doesn't have. Your script can do it, but there are some things that need to be changed. Can you direct me?
Profile fields that contain a lot of characters do not line wrap: they just stretch across. Is there a way to fix the size of the tables so that the text wraps?
Profile field text is centered, which works great for what you're doing with this, but really throws off things if you have a paragraph of text. Any way of making it LEFT oriented?
I realize that these must be simple template edits, but I haven't explored it yet.
Also putting the avatar in the name box, or near it, might be useful.
Thanks!
EDIT: fixed the align center issue easily. Now for the word wrapping part...(change align center to align left in product xml)
EDIT: fixed the wrap stuff. (change all "nowrap" to "wrap" in product xml)
Now, changing the actual Navbar phrase..... EDIT: found it!
Great staff page!
Sarcoth
06-10-2010, 02:20 AM
LOL. So, it sounds like you fixed all your issues then right?
You sound like me. I like to ask my questions and then go to work on the problem in case someone else gives me the answer before I find it on my own. Funny thing is, I always figure it out first. :)
masonox
06-10-2010, 05:22 PM
Hello! Great product, I do have a problem however. I did not read all these replies, but my problem is if I make a new user field like
Class = Bounty Hunter
when I select that in the profile, and go to the roster page it just shows numbers, like 1, 2, 3 or whatever my classes would be, but not the text that I had entered in the profile field creation. Any ideas?
Thanks in advance.
Sarcoth
06-10-2010, 05:38 PM
It sounds like you are using radio selections rather than a dropdown selection. It can still work with radio, but you'd have to do some extra coding. I suggest you do dropdown selection instead.
masonox
06-10-2010, 05:40 PM
It sounds like you are using radio selections rather than a dropdown selection. It can still work with radio, but you'd have to do some extra coding. I suggest you do dropdown selection instead.
I tried a multiple line text, I didn't see a traditional "form like" drop down. But checkbox and multiple line is same results, 1,2,3,4 etc,
masonox
06-10-2010, 05:43 PM
nm it works now, it was as you said, they just labeled it odd. Thanks for help :)
Sarcoth
06-10-2010, 06:00 PM
No problem!
Sarcoth
06-11-2010, 08:04 PM
Every time I look at PHP I can never quite figure it out and end up with a headache but from what I can gather, you've basically said;
What usergroups do you want to show on the roster?
What attribute of usergroups should be the primary one, user id or user title?
How should I sort that attribute, ascending or decending? (If none defined, then sort ascending)
As I don't really understand PHP, this may be overly simplistic, but what happens if you simply remove steps 2 and 3? Is the default behaviour to simply fetch display in the order they are entered, or is there some inherit sort behaviour that needs to be overwritten?
You are 100% correct and it gave me a headache just trying to get it to work. Definitely not simplistic. Most likely it could be coded better, but it was the best I could do with what I had. One day, I will rewrite it all and make it a lot better, but not for awhile. For now, we are stuck with my hogwash mod of code. Initially, back in the previous versions, it did a sort by userid or username. So many people asked to have the usergroups sorted in whatever way they wanted though. I did my best.
---------------------
In regards to multiple rosters, I was thinking along the lines of two entries for showroster_display_groups in the settings then some crazy if conditions like if showroster_display_groups_2 is not blank then display roster2, which would use the same fields/columns as roster1, but appear on a different tab. Of course the downside to that approach would be that you'd be limited to using the same user profile fields for both rosters. However, as I said, I don't really understand PHP so don't know how feasible such an idea would be.
Actually, I set something up for my guild officers where they could see some additional columns. It works along a similiar way to what you just described. I think it is doable, but I need to come up with a way to make it all configurable by the admins. I was thinking of making two ShowRoster Setting pages, but as soon as I give the option for two rosters, someone will want three. I have another idea that will deal with that problem and should make it much easier for me. I want to get the next version published that fixes a few problems and adds some more options...and then I will begin work on the multiple rosters.
Dragonsys
06-18-2010, 06:09 PM
CSS does not seem to be applying to the roster. I mean, it just looks ugly. I'm sure I am just missing something here, as in your demo it looks as I would expect.
You can see what I mean here - http://forums.texas-fbody.org/showroster.php
Sarcoth
06-18-2010, 07:11 PM
I guess the look all depends on the style of the forum and how that style translates to this mod. I am looking into a css for this though and maybe that will help, but the problem is that every forum has a different style so it will always look different. You can always make your own adjustments in the templates though. That requires a little html knowledge.
JohnnyNorCal
06-20-2010, 04:28 AM
Great System, thanks so much.
I have a question. I have a gaming group and the only people I want on the roster are people that are active according to who the mods and admins think should be on there. Basically we only have one usergroup for registered users. Is there an easy way to have the admins control who goes on the roster? If I did it by usergroup I am either allowing everyone or disallowing everyone...if that makes sense.
Sarcoth
06-20-2010, 04:56 AM
Great System, thanks so much.
I have a question. I have a gaming group and the only people I want on the roster are people that are active according to who the mods and admins think should be on there. Basically we only have one usergroup for registered users. Is there an easy way to have the admins control who goes on the roster? If I did it by usergroup I am either allowing everyone or disallowing everyone...if that makes sense.
I have something similiar in place on my roster. I set up a "user profile field" called status with the choices of "Active/Inactive". I made the default "inactive". I then told all the active users to set it to active. You then can put some code in the php file that only displays users if this is set to active. I will look up the code for you if that is the way you really want to go...
Personally, I think you should go another route. The reason is, for some of these people, you are going to have to set their status anyhow because users tend to be ignorant when it comes to updating their information. :) Just the way it is. Because of that, you'll need to go into their profiles. The better way to go is to make a usergroup, and add all the users you want to be on the roster to this group. You don't have to give the group any permissions or anything, just use your registered group for that. Keep that as the primary usergroup for everyone while you check the box of the people you want on the roster. Maybe even call the group the Roster group or something.
That's what I would do. I'll check back in a couple days and give you the code though if you want to go the more difficult route.
JohnnyNorCal
06-20-2010, 05:52 AM
Ok...I'm going to set up a secondary usergroup and see if I can just manually add users to that group with permissions to access the specific profile fields the roster uses. The reason I was hesitant to do this is because the rank system is somewhat intricate and I didn't want to interfere with it.
I guess my question now is, where can I control this new usergroup to be able to view the extra profile fields and set the old usergroup to not view or edit the extra profile fields? I don't remember seeing a way to do this in the usergroup manager. Theres so many options, sometimes I get lost in with all the switches here and there.
Dragonsys
06-20-2010, 04:00 PM
Ok...I'm going to set up a secondary usergroup and see if I can just manually add users to that group with permissions to access the specific profile fields the roster uses. The reason I was hesitant to do this is because the rank system is somewhat intricate and I didn't want to interfere with it.
I guess my question now is, where can I control this new usergroup to be able to view the extra profile fields and set the old usergroup to not view or edit the extra profile fields? I don't remember seeing a way to do this in the usergroup manager. Theres so many options, sometimes I get lost in with all the switches here and there.
add this new usergroup to the users as a secondary group, and it should not affect your rank system at all.
Dragonsys
06-20-2010, 04:04 PM
I guess the look all depends on the style of the forum and how that style translates to this mod. I am looking into a css for this though and maybe that will help, but the problem is that every forum has a different style so it will always look different. You can always make your own adjustments in the templates though. That requires a little html knowledge.
I could have sworn I had this problem with the vb3.7 version of this mod, and it was just one little tweak I had to make to get it to view properly, but I can't find where I posted about it.
well they do say the memory is the first thing to go...
EDIT: ok, so I was looking at the templates, and it's something with this mod. Looking at the garage templates (http://forums.texas-fbody.org/garage.php) it uses the same classes your templates do, but it displays properly, when the roster does not. At least this is what it looks like to me.
Sarcoth
06-20-2010, 04:35 PM
EDIT: ok, so I was looking at the templates, and it's something with this mod. Looking at the garage templates (http://forums.texas-fbody.org/garage.php) it uses the same classes your templates do, but it displays properly, when the roster does not. At least this is what it looks like to me.
I am going to be incorporating a bunch of template changes in the next version thanks to IR15H. Maybe that will fix your problem. If not, I will look into it more then. I've got some other things going on but my goal is to have the update released by the end of the month.
Dragonsys
06-20-2010, 04:39 PM
I am going to be incorporating a bunch of template changes in the next version thanks to IR15H. Maybe that will fix your problem. If not, I will look into it more then. I've got some other things going on but my goal is to have the update released by the end of the month.
Cool, I will wait for your update. In the meantime, I'm gonna keep looking at my site and just see if I can narrow it down some. I made several changes to the SHOWROSTER template, but they don't seem to have any real affect on the page display.
Thanks
a7lameza.com
06-20-2010, 05:30 PM
thank you
strudinox
07-12-2010, 03:42 PM
Not working since I upgraded to 4.0.4
Any development on a solution? The issue is when I click on the custom profile options, it takes me to an empty page within the profile.
Dragonsys
07-13-2010, 02:55 PM
would it be possible to only display users on the roster based upon their primary UserGroup, not all of their Usergroups?
For example, I have two groups, Members & Officers. All of the Officers (primary group) belong to Members (secondary group), but not vice versa. I want to Display a Roster of the members, but not have the Officers listed. As it is right now, the Officers get listed, since they belong to the members Group, even though it is not their primary group.
EDIT:
Ok, I found it, I just needed to remove:
OR FIND_IN_SET(usergroup.usergroupid, user.membergroupids)
But I think it might work best if this was a selectable option. Or maybe a var, like m=x
Where x is 1, 2 or 3 (1 for primary, 2 for secondary, or 3 for either/both)
I have also made this script work for multiple group displays (almost multiple rosters). I will PM my changes to the Author and see if he is interested. It still uses all the same settings in admincp, only the group displayed changes.
You can see an example here:
Default View - http://forums.texas-fbody.org/showroster.php
Single Usergroup - http://forums.texas-fbody.org/showroster.php?id=6
Multiple Usergroups - http://forums.texas-fbody.org/showroster.php?id=6,9
Barteh
07-15-2010, 01:30 PM
I've been trying to modify the clan roster to include images in the user fields, but so far without much luck. Would it be possible to simply let the script interpret all html (or BB codes) within these fields, thus displaying images? I've set the corresponding profile options to only be radio button selectable, so no risk of someone inadvertently breaking the layout.
Dragonsys
07-15-2010, 01:53 PM
OR FIND_IN_SET(usergroup.usergroupid, user.membergroupids)
But I think it might work best if this was a selectable option. Or maybe a var, like m=x
Where x is 1, 2 or 3 (1 for primary, 2 for secondary, or 3 for either/both)
I got this working.
1 = Secondary Group Membership only
2 = Primary or Secondary Group Membership
Default = Primary Group Membership only
You can see it in action here:
Default - http://forums.texas-fbody.org/showroster.php
1 - http://forums.texas-fbody.org/showroster.php?m=1
2 - http://forums.texas-fbody.org/showroster.php?m=2
With Group ID - http://forums.texas-fbody.org/showroster.php?m=1&id=12
Sarcoth
07-15-2010, 02:11 PM
I got this working.
1 = Secondary Group Membership only
2 = Primary or Secondary Group Membership
Default = Primary Group Membership only
You can see it in action here:
Default - http://forums.texas-fbody.org/showroster.php
1 - http://forums.texas-fbody.org/showroster.php?m=1
2 - http://forums.texas-fbody.org/showroster.php?m=2
With Group ID - http://forums.texas-fbody.org/showroster.php?m=1&id=12
Very cool stuff Dragon. I am actually working on some other code for the roster, but I would be interested in using this as well. Credit to you for your help on this, nice work. :)
Sarcoth
07-16-2010, 03:39 PM
Just a quick update. I only did about a few hours a day work on updating this a week for the last month. I am redoubling my efforts to get an update out soon though, hopefully next week. I am nearing completion of the style revisions (big thanks to Irish for help on that), just a few more tweaks and I can finish up a couple other things I have been working on. I can't swear I used everything that Irish suggested, but I really like having a CSS file now. It will allow users to edit the CSS rather than making those changes to the mod templates.
I also will have Dragon's revised code in the next version as well.
For those that are having style problems with their roster, please wait till the next version.
Sarcoth
07-22-2010, 01:54 PM
Just another heads up. After some banging our heads together, Dragon's additional code is working for me now. It will be in the next version. I do need to add a few more things and am planning to do that today. I should have all testing completed by tomorrow or this weekend. I will aim for a Monday release.
Nice to hear Sarcoth, I've been waiting for this update myself. =)
Sarcoth
07-23-2010, 07:40 PM
Okay, I think it is done. I'm going to send it to a couple users for testing while I work on typing up some new help files. It should be released on Monday or Tuesday unless I can finish the docs this weekend.
Please don't ask to be one of the testers. I will get it out soon.
Okay, I think it is done. I'm going to send it to a couple users for testing while I work on typing up some new help files. It should be released on Monday or Tuesday unless I can finish the docs this weekend.
Please don't ask to be one of the testers. I will get it out soon.
Good to hear! May my roster no longer look like crap, thank you! =)
TripleChin
07-24-2010, 02:23 AM
I love this mod. I am have done a few custom tweeks to it and would like some help with one I can't seem to work out.
In lieu of displaying a particular profile field, I would like to display an image in it's place. The field is not required, so some users will have it and other's won't. I am attempting to only display if the user has selected 'Yes'.
In "showroster_userbits" template I have made the following modification without success. If you have a suggestion as to how I could get it working that would be great.
<vb:if condition="$show[field4th]"><td nowrap="nowrap" align="center"><vb:if condition="$userinfo.$column[columns4] == /yes/i"><img src='http://myimages.com/image.gif'></vb:if></td></vb:if>
Thank you.
Does anyone have any suggestions to the questions I posted?
Sarcoth
07-24-2010, 03:00 AM
Does anyone have any suggestions to the questions I posted?
Not sure about your second IF condition there, but why not use something like:
<vb:if condition="$userinfo.$column[columns4] != ''">{vb:var userinfo.{vb:var columns[column4]}}<vb:else /><img src='http://myimages.com/image.gif'></vb:if>
Not 100% sure about that since I am a little rusty with the fields. If that does not work, I can take a look at it next week once the new version is released.
Here is how the entire line will look in version 4.0.4:
<vb:if condition="$show[field4th] AND exec_switch_bg()"><td><vb:if condition="$userinfo.$column[columns4] != ''">{vb:var userinfo.{vb:var columns[column4]}}<vb:else /><img src='http://myimages.com/image.gif'></vb:if></td></vb:if>
Sarcoth
07-24-2010, 04:52 AM
Mod has been updated. I know this has been long in the waiting. Please let me know any issues that you find and I will try to get them fixed promptly. To those I sent a pre-release version to, download this one and use it instead. I ended up adding a few more things to the final.
Thank you and enjoy!
ProFifaLeagues
07-24-2010, 05:53 AM
Loving this mod thanks Sarcoth great work.
CoZmicShReddeR
07-24-2010, 11:04 AM
Thanks for the update!
koolasia
07-24-2010, 11:17 AM
Is it possible to use this mod as an house system like we have in harry potter were points are alloted on diffrent aspects
Sarcoth
07-24-2010, 03:47 PM
Is it possible to use this mod as an house system like we have in harry potter were points are alloted on diffrent aspects
Sorry, but I really don't know what you mean. You can always try it out.
Dragonsys
07-24-2010, 04:55 PM
Is it possible to use this mod as an house system like we have in harry potter were points are alloted on diffrent aspects
this mod only displays a list of users who are members of a certain usergroup. So you could use it to display your Houses with their members.
As for the points, you would need a different mod. vBExperience 4 (https://vborg.vbsupport.ru/showthread.php?t=245023) might be worth checking into.
Sarcoth
07-25-2010, 08:32 PM
No problems reported so far so I will assume all is well. I did realize I missed testing the sorting functions, so definitely let me know if you run into any problems there. I'll start working on adding a few more things I wanted in there and maybe have something ready before my fall semester begins.
I'm confused on how to use the multiple-rosters thing.
What I'd like to do is have it display different profile fields if the roster is set to something else.
Like if it's displaying game 1, then fields 1,2,3 and if game 2, then fields 4,5,6.
Not sure if you can do that with the mod, but.. thought I'd ask.
If you can't, what exactly is the multiple roster thing for as well?
Sarcoth
07-26-2010, 12:57 PM
I'm confused on how to use the multiple-rosters thing.
What I'd like to do is have it display different profile fields if the roster is set to something else.
Like if it's displaying game 1, then fields 1,2,3 and if game 2, then fields 4,5,6.
Not sure if you can do that with the mod, but.. thought I'd ask.
If you can't, what exactly is the multiple roster thing for as well?
By default, you can't display different fields from one roster to another. I'd have to add a LOT more settings in the showroster settings to accomplish this. There are already 4 settings for each column, so I'd have to add another 8x4 for each time lines of settings just to accomplish one extra roster.
The multi-roster is meant to allow the viewers to see different rosters but using the same fields for each. For instance, my guild can be found in different games (Vanguard, AoC, etc.). If I want, I can display each guild on its own roster, but I would have to use the same profile fields to accomplish this. That could be a little annoying because I would have to set all the race/class names in the same profile field and then my members would have to go through a larger list, but oh well. They usually only need to set it once anyhow. You can also just use the multi-roster to show different grouping of usergroups. Say you want to just see Recruits, type in their usergroup id and there you go.
Now, I did say by default. That does not mean you can't get around this with a little extra coding. Something in the code like, if (usergroup = #), then column = field#. I'll test it out and let you know.
Sarcoth
07-26-2010, 01:41 PM
Here you go Trek, try this out.
Find:
$userinfo['datejoined'] = vbdate($vbulletin->options['dateformat'], $userinfo['joindate'], true);
$userinfo['lastactive'] = vbdate($vbulletin->options['dateformat'], $userinfo['lastactivity'], true);
Add Below:
if ($userinfo['usergroupid'] == 19) { $columns['title1'] = "TEST"; $columns['column1'] = "field12"; }
Follow this rule. For "$userinfo['usergroupid'] == 19", use the usergroupid for the first group appearing on your alternative roster. This will cause the Title and field id for all following usergroups to use the same as the first. You will need to add additional code for each column you wish to change. Feel free to use this at your own discretion, it may break some things, I don't know. I can see a way to trim down the number of columns as well, if you want that, but I'll leave that one up to you. :)
Enjoy!
Thanks for the info Sarcoth, I'll fool around with it and see what I can break. =)
Sarcoth
07-27-2010, 02:55 AM
Thanks for the info Sarcoth, I'll fool around with it and see what I can break. =)
I did leave enough info for you right? I just realized that what I see as something easy may not be for someone that did not make a lot of this code. Basically, you keep adding more title# and column# within that new if statement for each column you want to change. I'll expand on it if you need me to though.
CharlieDelta
08-03-2010, 02:19 AM
Same nothing works :| this is all I get
http://www.outkasts.net.au/forum/showroster.php
I like how you separated your roster with the game banners, nice touch. How did you do that?
Gleedo
08-04-2010, 08:17 PM
I am a tad baffled....
I have set which usergroups I want to display by setting the ids, and have also set that I only want primary usergroups displayed. I do indeed now see myself in my primary usergroup (admin), but for some reason I am only seeing some members of one other primary usergroup (clan members).
Only 3 clan members are being displayed and only the usergroups admin and clan members.
My other primary usergroups 'HR Admins', 'Scrim Admins', and 'Server Admins' are not showing at all, even though I have users in those groups as their primary groups.
I have check my list of usergroup id's are correct and comma delimed.
Any thoughts appreciated :)
Sarcoth
08-04-2010, 08:31 PM
I am a tad baffled....
I have set which usergroups I want to display by setting the ids, and have also set that I only want primary usergroups displayed. I do indeed now see myself in my primary usergroup (admin), but for some reason I am only seeing some members of one other primary usergroup (clan members).
Only 3 clan members are being displayed and only the usergroups admin and clan members.
My other primary usergroups 'HR Admins', 'Scrim Admins', and 'Server Admins' are not showing at all, even though I have users in those groups as their primary groups.
I have check my list of usergroup id's are correct and comma delimed.
Any thoughts appreciated :)
Link? And, can unregistered users see? I'll check back here later.
Yea, I know I should be able to figure this out without looking, but just seeing something really does help me. :)
Gleedo
08-05-2010, 05:37 AM
Link? And, can unregistered users see? I'll check back here later.
Yea, I know I should be able to figure this out without looking, but just seeing something really does help me. :)
Hi, thanks for looking at this, have set unregistered / not logged in able to see it:
http://www.theoldgitsarmy.com/forums/showroster.php
I know I must just be being thick, but im still stuck lol :o
Sarcoth
08-05-2010, 01:00 PM
Hi, thanks for looking at this, have set unregistered / not logged in able to see it:
http://www.theoldgitsarmy.com/forums/showroster.php
I know I must just be being thick, but im still stuck lol :o
Alright, I can only think of one thing that would be causing the problem; it is in the showroster settings.
1) You have filtering set and all the other users have left that field blank causing them not to appear on the roster.
If that is not it, please let me know. I'd be willing to take a look at your settings for you if you want to PM me a username/pw.
Gleedo
08-05-2010, 03:10 PM
1) You have filtering set and all the other users have left that field blank causing them not to appear on the roster.
Oooooh dear god I am truely a friggin idiot! That was it thanks. How the heck did I miss that :o
Sorry for wasting your time Sarcoth and thanks for a great mod :)
m002.p
08-05-2010, 03:39 PM
Does this work with v3.8?
I have your old version but need the adv setting for showing just the primary groups opposed to secondary too.
Sarcoth
08-05-2010, 04:11 PM
@Gleedo - No problem and I really didn't mind looking. Glad that did it for you.
@m002 - Hey Moo, long time. I remember you back from the old version. Sadly, I doubt this will work with 3.8. I've added a lot of new code to make it work in the 4.0 version. I remember when I first updated this mod for 4.0 and I tested it on 3.8...I don't think the install even worked. Sorry about that.
m002.p
08-05-2010, 04:18 PM
@Gleedo - No problem and I really didn't mind looking. Glad that did it for you.
@m002 - Hey Moo, long time. I remember you back from the old version. Sadly, I doubt this will work with 3.8. I've added a lot of new code to make it work in the 4.0 version. I remember when I first updated this mod for 4.0 and I tested it on 3.8...I don't think the install even worked. Sorry about that.
Hey, wasnt sure if you remembered me :)
Yes this mod has come along way since the first release when I assisted with that WOL. Anyhow, I noticed this by comparing the php files from the old version to the new. Was trying to see if there was a way of just getting the script to ignore additional usergroups fullstop. Even if I cannot have a setting like the v4.0 version, would be great to just stop secondary groups displaying via maybe the "display group" selection in vb?
Is there a simple line I could add to the PHP code to ignore everything except primary usergroup display?
Sarcoth
08-05-2010, 04:44 PM
Hey, wasnt sure if you remembered me :)
Yes this mod has come along way since the first release when I assisted with that WOL. Anyhow, I noticed this by comparing the php files from the old version to the new. Was trying to see if there was a way of just getting the script to ignore additional usergroups fullstop. Even if I cannot have a setting like the v4.0 version, would be great to just stop secondary groups displaying via maybe the "display group" selection in vb?
Is there a simple line I could add to the PHP code to ignore everything except primary usergroup display?
I remember everyone that either helped me...or pissed me off; you are in the former group though. :)
Check out the query's in the new version. I have 6 different ones in the new one, but there was only 1 in the old. I think the query's that have an ifstatement == 2 are the ones that only show the primary groups and ignore the secondary ones. If you can figure out how to adjust that in the old, I bet that would do the trick.
m002.p
08-05-2010, 05:02 PM
Thanks Sarcoth,
Didnt take me long to find it. The line concerned is:
user AS user ON(user.usergroupid = usergroup.usergroupid OR FIND_IN_SET(usergroup.usergroupid, user.membergroupids))
Simply removing the OR FIND_IN_SET() did the trick.
Nice to speak again, and once again great work with this mod. Im still using it ;)
Sarcoth
08-05-2010, 05:48 PM
Good to hear! :) Take care and stop by anytime.
CharlieDelta
08-05-2010, 07:00 PM
Fantastic mod! Nominated!
Gleedo
08-06-2010, 05:28 PM
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.
Sarcoth
08-06-2010, 05:40 PM
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.
Gleedo
08-06-2010, 05:54 PM
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.
Thanks Sarcoth :)
Sarcoth
08-09-2010, 08:20 PM
@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:
<vb:if condition="$show[field8th] AND exec_switch_bg()"><td>{vb:var userinfo.{vb:var columns[column8]}}</td></vb:if>
Change to:
<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.
Kr33p3r
08-12-2010, 03:46 AM
Great mod, thanks for making it.
2 issues:
Usernames do not link to their profiles.
Avatars break for all but 1 usergroup (even users in multiple).
http://www.cyberneticpunks.com/forums/showroster.php
Thoughts? I am sure its me.
Sarcoth
08-12-2010, 11:14 AM
Great mod, thanks for making it.
2 issues:
Usernames do not link to their profiles.
Avatars break for all but 1 usergroup (even users in multiple).
http://www.cyberneticpunks.com/forums/showroster.php
Thoughts? I am sure its me.
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.
Gleedo
08-12-2010, 11:25 AM
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 :)
Sarcoth
08-12-2010, 11:32 AM
@Gleedo - Yea, I just realized that myself actually. I will fix that in the next version, which I am trying to finish by the end of the week.
Sarcoth
08-12-2010, 04:10 PM
Version 4.0.5 has been completed and will be posted shortly. In the meantime, here is the changelog.
Version 4.0.5 - August 12, 2010
Templates: statbits has been added for the new statistics table. SHOWROSTER has had some code added to work with the new statbits template. Small changes have been made to other templates.
CSS template has had some new code added to address the new statistics table.
A new option settings "ShowRoster Group Settings" has been added for use with the new statistics table.
A lot of new code has been added to the showroster.php file to work with the new statistics table.
The image path that is used when a user does not have an avatar has been fixed.
You can see a working roster here: Sacred Haven Guild Roster (http://sacredhaven.org/forumsh/showroster.php)
I do not have a walk through on how to use statistics table, you will have to play with it to figure out how they are set. If you are confused, I'll answer your questions here as long as you have the product listed as Installed.
At this time, I do not have any plans for future updates. I will always listen to suggestions, some of them I may add. Usually those that have numerous people interested in them. College starts up again next week for me, so I don't plan to have much time for this after that. I'll try when I can though.
On a side note, I am working on another modification to link the Vanguard: Saga of Heroes guild database with the showroster mod. I had it working back in 3.8, so I just need to rework the code.
Thanks to all those that have installed this mod. Special thanks to all those that have helped me with it over the last couple years.
Sarcoth
08-16-2010, 07:18 PM
Wow. I cannot believe I had a release without any problems or questions. My classes start tomorrow so I'll assume all is well. I'll trust in Dragonsys and others in answering any questions you have. Otherwise, I'll answer them as soon as I can. It may take a day or two depending on my homework/study load, but I will get to them.
Requests/suggestions will probably be put off until December, but feel free to submit them. There's always a chance I'll find some time; just don't count on it.
CoZmicShReddeR
08-17-2010, 08:29 AM
Thanks for the update!
unknown22
08-18-2010, 07:11 AM
Will this work on vbulletin 4.0.6?
Sarcoth
08-18-2010, 11:08 AM
Will this work on vbulletin 4.0.6?
I've never had a problem with this mod not working for a higher version. My guess is that it will work for all vB4 versions. When it doesn't, I'll fix it. I haven't upgraded yet, but someone will surely tell me if they encounter a problem.
unknown22
08-18-2010, 02:17 PM
I'm trying to set it up as so:
User Name SteamID - SteamProfile Post Count Date Joined Last Online Online Status
The steam id does not show i set it user profile filed field2 single text box and added it to
ShowRoster Settings, and is there another way to make more categories under the the 4 line roster Like yours in the demo.
I also didn't see
Step 6: Admincp > Styles & Templates > Expand > ShowRoster Templates > SHOWROSTER, showroster_header, and showroster_userbits
Sarcoth
08-18-2010, 02:39 PM
I'm trying to set it up as so:
User Name SteamID - SteamProfile Post Count Date Joined Last Online Online Status
The steam id does not show i set it user profile filed field2 single text box and added it to
ShowRoster Settings, and is there another way to make more categories under the the 4 line roster Like yours in the demo.
I also didn't see
Step 6: Admincp > Styles & Templates > Expand > ShowRoster Templates > SHOWROSTER, showroster_header, and showroster_userbits
How did you add the field2 to the settings? You only typed field2 yes? You'll need to enter your SteamID in your own profile. If you've done all that, I'm not sure why it is not showing. What's the link to your roster? Make sure unregistered users can view it.
What extra categories do you mean?
Not sure how better to describe the location of the ShowRoster templates. If you are new to vb, then I don't recommend adjusting that anyhow. Get everything else you asked about working first.
mbeelen
08-18-2010, 07:25 PM
Can you also make it possible that the ranks near the username are showed.
Checked a few things, but bbcode is not working same as HTML.
Cheers.
p.s it's also working for 4.06
Sarcoth
08-18-2010, 07:41 PM
Can you also make it possible that the ranks near the username are showed.
Checked a few things, but bbcode is not working same as HTML.
Cheers.
p.s it's also working for 4.06
Go to the showroster_userbits template:
Find:
<a href="member.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}-{vb:raw userinfo.username}">{vb:raw userinfo.musername}</a>
Somewhere near there (above, behind, wherever you think looks best), Add:
{vb:raw userinfo.rank}
I think it would look better if you switched out the code from one of the columns though.
I.E.: <vb:if condition="$show[field1st] AND exec_switch_bg()"><td>{vb:var userinfo.{vb:var columns[column1]}}</td></vb:if>
Please click installed.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.