Thread: Profile Enhancements - Customizable Roster
View Single Post
  #41  
Old 03-10-2010, 12:15 PM
Sarcoth Sarcoth is offline
 
Join Date: Mar 2006
Location: Huntsville
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by anuanu View Post
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.

Quote:
Originally Posted by Covert-OPs_ View Post
Is this mod working with 4.0.2?
Yes, it is working for me.

Quote:
Originally Posted by betts02 View Post
How would i go about adding

Code:
<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].

Code:
<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.

Quote:
Originally Posted by Bouncer222 View Post
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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01325 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
  • (2)bbcode_code
  • (4)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