Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Customizable Roster Details »»
Customizable Roster
Version: 4.1.0, by Sarcoth Sarcoth is offline
Developer Last Online: Mar 2017 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 4.1.0 Rating:
Released: 02-07-2010 Last Update: 01-04-2011 Installs: 318
Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

Customizable Roster

Introduction:

This Mod is ideal for a Guild/Clan roster, but it is also a great replacement for the memberlist. Customize it any way you like: add or remove columns with just a few easy edits. The installer includes permission control that allows you to set which groups appear on the roster and which ones can view it. The most popular option is the ability to control advanced sorting; check it out!



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.
FAQ: See 3rd post.
Screenshots: See 4th post.

PLEASE CLICK INSTALLED.
Support will be given to those that do.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
KorvinGump

Comments
  #302  
Old 09-10-2010, 11:36 AM
Sarcoth Sarcoth is offline
 
Join Date: Mar 2006
Location: Huntsville
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Foxtrotelite View Post
<td class="$bgclass" nowrap="nowrap" align="center"><if condition="($user[field27] == '')">$user[field30]<else /><a href="http://steamcommunity.com/id/$user[field27]">$user[field30]</a></if></td>

field27 being the Steam ID number
field30 being Steam Profile ID

The above code is what you posted previously (on page 2 or 3 of the topic). I just changed the field numbers to reflect my forum. Can you update this to work for the newest VB version please?

Thanks in advance!
Code:
<vb:if condition="$show[field8th] AND exec_switch_bg()"><td><vb:if condition="$userinfo[field27] == ''">{vb:var userinfo.field30}<vb:else /><a href="http://steamcommunity.com/id/{vb:var userinfo.field27}">{vb:var userinfo.field30}</a></vb:if></td></vb:if>
That should do it. The change is done in the showroster_userbits template. You'll need to pick one of the columns already there. I chose the field8th for testing. Make sure you also rename the column in the Showroster Settings page.
Reply With Quote
  #303  
Old 09-10-2010, 11:41 AM
Sarcoth Sarcoth is offline
 
Join Date: Mar 2006
Location: Huntsville
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by betts02 View Post
What i need is to add the xbox gamer card to the roster via our members filling in a profile field

I have this in my signature area with this code :

Code:
<vb:if condition="$post['field5']"><tr><td class="vbmenu_option">
<iframe src="http://gamercard.xbox.com/{vb:raw post.field5}.card" scrolling="no" frameBorder="0" height="140" ></iframe></td></tr></vb:if>
I want to know how to get this shown in the roster
What file and where ?

Also if possible, I have our members enter a URL of their choice via a profile field

This shows up in the roster, But i want it to be clickable

How and where would i do this also

If possible a full explanation of where and what to edit

many thanks in advance
This is very similar to the one I just did for Foxtrot. The template to edit is showroster_userbits. I need some more info though. What field#'s are you using and please give me some sample data so I can do the testing. Or, if you like, I can do it on your site. PM me if you want me to do it manually. Otherwise, post the data I requested here.
Reply With Quote
  #304  
Old 09-10-2010, 04:27 PM
Foxtrotelite Foxtrotelite is offline
 
Join Date: Mar 2007
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the help Sarcoth! The code worked. I got the links part working, but I am having one minor issue. I must be overlooking something. When I use the code, it offesets my columns.
My steam id is in column 4 via the showroster settings. Here is a piece of what i have in the userbits template.
Code:
columns[column3]}}</td></vb:if>
        <vb:if condition="$show[field4th] AND exec_switch_bg()"><td><vb:if condition="$userinfo[field30] == ''">{vb:var userinfo.field27}<vb:else /><a href="http://steamcommunity.com/profiles/{vb:var userinfo.field30}">{vb:var userinfo.field27}</a></vb:if></td></vb:if>
        <vb:if condition="$show[field4th]"><td nowrap="nowrap" align="center" width="13%">{vb:var userinfo.{vb:var 
columns[column4]}}</td></vb:if>
I think the to conditions need to be combined in some way. If I change the 2nd condition's field to an unused one, say field8th, then my roster page doesnt add an extra field 4 column so it doesn't offset the roster alignment. Doing that makes my column settings for field 4 not work obviously.. so i end up with a big column and non centered text.
Reply With Quote
  #305  
Old 09-10-2010, 04:37 PM
Sarcoth Sarcoth is offline
 
Join Date: Mar 2006
Location: Huntsville
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Foxtrotelite View Post
Thanks for the help Sarcoth! The code worked. I got the links part working, but I am having one minor issue. I must be overlooking something. When I use the code, it offesets my columns.
My steam id is in column 4 via the showroster settings. Here is a piece of what i have in the userbits template.
Code:
columns[column3]}}</td></vb:if>
        <vb:if condition="$show[field4th] AND exec_switch_bg()"><td><vb:if condition="$userinfo[field30] == ''">{vb:var userinfo.field27}<vb:else /><a href="http://steamcommunity.com/profiles/{vb:var userinfo.field30}">{vb:var userinfo.field27}</a></vb:if></td></vb:if>
        <vb:if condition="$show[field4th]"><td nowrap="nowrap" align="center" width="13%">{vb:var userinfo.{vb:var 
columns[column4]}}</td></vb:if>
You want to remove the 2nd $show[field4th] line completely. You can only have one. If you are using it for something else, then you need to remove one of the other columns instead. The code I gave is a replacement for one column.
Reply With Quote
  #306  
Old 09-10-2010, 04:51 PM
Foxtrotelite Foxtrotelite is offline
 
Join Date: Mar 2007
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I tried removing it I got this error:
Quote:
adding child to non-existent node!
This code seemed to make everything work fine:
Code:
columns[column3]}}</td></vb:if>
        <vb:if condition="$show[field4th] AND exec_switch_bg()"><td nowrap="nowrap" align="center" width="13%"><vb:if condition="$userinfo[field30] == ''">{vb:var userinfo.field27}<vb:else /><a href="http://steamcommunity.com/profiles/{vb:var userinfo.field30}">{vb:var userinfo.field27}</a></vb:if></td></vb:if>
        <vb:if condition="$show[field9th]">{vb:var userinfo.{vb:var 
columns[column4]}}</td></vb:if>
I moved around the align code and stuff.. but i still had to leave the 2nd if condition there.

Thanks again for all the help and the quick replies!

edit: actually i still had to use an unused field in the 2nd if statement to prevent any extra junk from appearing the roster. Can that code be cleaned up? I guess I am doing something wrong
Reply With Quote
  #307  
Old 09-10-2010, 05:14 PM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How is the group settings done ?

What is it for and how do you use it ?

Cheers
Reply With Quote
  #308  
Old 09-10-2010, 05:25 PM
Sarcoth Sarcoth is offline
 
Join Date: Mar 2006
Location: Huntsville
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Foxtrotelite View Post
When I tried removing it I got this error:

This code seemed to make everything work fine:
Code:
columns[column3]}}</td></vb:if>
        <vb:if condition="$show[field4th] AND exec_switch_bg()"><td nowrap="nowrap" align="center" width="13%"><vb:if condition="$userinfo[field30] == ''">{vb:var userinfo.field27}<vb:else /><a href="http://steamcommunity.com/profiles/{vb:var userinfo.field30}">{vb:var userinfo.field27}</a></vb:if></td></vb:if>
        <vb:if condition="$show[field9th]">{vb:var userinfo.{vb:var 
columns[column4]}}</td></vb:if>
I moved around the align code and stuff.. but i still had to leave the 2nd if condition there.

Thanks again for all the help and the quick replies!

edit: actually i still had to use an unused field in the 2nd if statement to prevent any extra junk from appearing the roster. Can that code be cleaned up? I guess I am doing something wrong
Not sure what the problem was, but glad you got it working. Enjoy.
Reply With Quote
  #309  
Old 09-10-2010, 05:28 PM
Sarcoth Sarcoth is offline
 
Join Date: Mar 2006
Location: Huntsville
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by betts02 View Post
How is the group settings done ?

What is it for and how do you use it ?

Cheers
Group settings are for keeping track of certain fields. Go to the Preview link at the top of this mod. The bottom of my roster gives an example of how I use the group settings. Not sure it would be a use for you betts; from what I saw of your site. It only works with fields that allow the users to choose one selection from a dropdown basically.
Reply With Quote
  #310  
Old 09-11-2010, 03:42 PM
jlevi jlevi is offline
 
Join Date: Sep 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cannot seem to get this working - i just get a blank page with the roster title and no members show up? I've tried changing the settings and nothing seems to work.

Many thanks in advance
Reply With Quote
  #311  
Old 09-11-2010, 05:21 PM
Sarcoth Sarcoth is offline
 
Join Date: Mar 2006
Location: Huntsville
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jlevi View Post
I cannot seem to get this working - i just get a blank page with the roster title and no members show up? I've tried changing the settings and nothing seems to work.

Many thanks in advance
I think I'm just going to release another version next week with the filter off by default. Please read the FAQ.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05049 seconds
  • Memory Usage 2,356KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete