Thread: Profile Enhancements - Customizable Roster
View Single Post
  #130  
Old 04-01-2010, 01:26 PM
IR15H IR15H is offline
 
Join Date: Feb 2007
Location: England
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CoZmicShReddeR View Post
Thanks IR15H,
I think having the gamerscard 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, xfire 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
    Quote:
    <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
    Quote:
    <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.

Quote:
Originally Posted by Sarcoth View Post
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;
  1. What usergroups do you want to show on the roster?
  2. What attribute of usergroups should be the primary one, user id or user title?
  3. 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.

Quote:
Originally Posted by Andyucs View Post
Thank you

very nice upgrade
Glad you like it .
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01819 seconds
  • Memory Usage 1,782KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete