vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Customizable Roster (https://vborg.vbsupport.ru/showthread.php?t=180432)

Sarcoth 05-24-2008 10:00 PM

Customizable Roster
 
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. See the optional.txt file included in the installation for additional changes that you can make at your discretion. The most popular option is the ability to add 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).

Step 1: Download the attached showrosterXXX.zip file.

Step 2: Upload the files to their correct directories.
Upload the showroster.php to the /forum/ directory.
Upload the bitfield_showroster.xml to the /forum/includes/xml/ directory.
Upload the spacer.gif to the /forum/images directory if you plan to use avatars.
Step 3: Admincp > Plugin & Products > Manage Products > Add/Import Product
Import the product-showroster.xml file.
Step 4: Admincp > Languages & Phrases > Phrase Manager > Phrase Type: ShowRoster > showroster_title --> Edit
Change this to whatever you want as the title of your roster.
Step 5: Admincp > User Profile Fields > Add New/Update User Profile Field
Add all the Profile Fields you plan to use and keep track of their number(s) (i.e. field6, field7, etc.).
Step 6: Admincp > Styles & Templates > Expand > ShowRoster Templates > showroster_header
This template contains the headers for each of your columns. Add/Edit/Remove columns to your preference. Be sure to update both of the colspan variables to the number of columns you have.
Step 7: Admincp > Styles & Templates > Expand > ShowRoster Templates > showroster_userbits
This template gets the data from each of the fields you want to have viewed on your roster. Add/Edit/Remove columns and/or the nowrap="nowrap" to your preference. Be sure to update each of the field#'s to match the fields from Step 5.
Step 8: Admincp > Usergroups > Usergroup Manager > Edit Usergroup
  • Set "Access - Should this usergroup have access to the Showroster page?" to Yes for whatever groups you want to have permissions to access the showroster page.
  • Set "Viewable - Should this usergroup be viewable on the Showroster page?" to Yes for the groups you want to have appear on the showroster page.

(All instructions are included in the instructions.txt and optional.txt files)


Updates:

Version 1.2.0 - May 24, 2008
  • Release of this hack for vBulletin version 3.7.x.
  • This version works on all vBulletin versions from 3.6.0 and up.
  • This version works with vBadvanced CMPS version 3.0.1.

Version 1.2.1 - June 11, 2008
  • Updated code for XHTML validation.
  • Added a Date Joined column with code to support.
  • Added a Last Online column with code to support; also changes color.
  • Added a Birthday column with code to support; will be blank for users wishing to hide their birthday.
  • Added a ProfilePic column with code to support.

FUTURE VERSIONS
  • This version will no longer be supported or upgraded.

Click Here For A Preview

PLEASE CLICK INSTALLED.

Support will no longer be given for anything below vB4.x.

Go to Customizable Roster 4.0 for the newer supported mod.

Sarcoth 05-25-2008 03:47 AM

Reserved for FAQ and Optional changes.
  1. Can the column's be sorted? Yes, the code is already in the showroster.php. Check the optional.txt file on how to set it up.

Mookie 05-25-2008 05:32 AM

Sarcoth excellent Mod any way we could have it setup for mulitiple rosters. On our gamming site we plays mulitiple games Age of Conan, WoW, EQ2, and so on. We were wondering if there is a way to display each roster seperately? Could this be added into a new version or is it not possible?

Sarcoth 05-25-2008 01:04 PM

Quote:

Originally Posted by Mookie (Post 1530668)
Sarcoth excellent Mod any way we could have it setup for mulitiple rosters. On our gamming site we plays mulitiple games Age of Conan, WoW, EQ2, and so on. We were wondering if there is a way to display each roster seperately? Could this be added into a new version or is it not possible?

Almost anything is possible. :) It really depends on your end goal. Do you want each game displayed on the same roster, and then via rank, then name? Or do you want each game displayed on its own roster page? In the latter, it is as easy as creating a separate showroster page for each game with just a few configuration/permission changes.

Post a list of the fields you are using. One of those fields will need the name of each game.

stwilson 05-25-2008 03:09 PM

Nice MOD. Thanks for sharing. I will use this as a version of the Member List, showing only Supporting Members. Since I will have quite a few names on my roster I would like to make two suggestions for future versions:

1. Allow for a header footer field that shows above or below the Roster/Memberlist
2. The ability to sort by specific columns by clicking on the header in that column

Excellent MOD for sure. I was looking for something like this. Thank you again.

stwilson 05-25-2008 03:12 PM

I just now noticed you had the code for sorting in the Optional file. THANKS.

Skyrider 05-25-2008 03:34 PM

Any screenies?

stwilson 05-25-2008 03:57 PM

I have a question. I am trying to include a member's Join Date in a column but the number that shows up is a ten digit number. How do I convert it back to the standard VB date format?

stwilson 05-25-2008 03:58 PM

Quote:

Originally Posted by FF|Skyrider (Post 1531012)
Any screenies?


There is a PREVIEW link in the original post. :D

ssslippy 05-25-2008 04:56 PM

Added a usergroup with almost 400 members and the script fails to run, gives a white page.

I get no emails reporting errors.


All times are GMT. The time now is 03:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01968 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete