Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-14-2003, 05:12 PM
Veg Veg is offline
 
Join Date: May 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Post bit User info Conditional

I need to know the condition so that if user is admin there username color is lets say red. I thought it was

<if condition="($bbuserinfo['usergroupid'] == 6"><font color="red">$post[username]</font><else />$post[username]</if>

And i also tried,

<if condition="($permissions['adminpermissions'] & CANCONTROLPANEL)"><font color="red">$post[username]</font><else />$post[username]</if>

That worked but then all users username was in that color if you were an admin. Can anyone sort me out with the correct code?. Thanks.
Reply With Quote
  #2  
Old 09-14-2003, 09:39 PM
imported_Dawson imported_Dawson is offline
 
Join Date: Jul 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not just do this in 'Username HTML Markup' under your Administrator Usergroup?
Reply With Quote
  #3  
Old 09-15-2003, 08:11 AM
Veg Veg is offline
 
Join Date: May 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could only see User Title Markup.
Reply With Quote
  #4  
Old 09-15-2003, 08:17 AM
Veg Veg is offline
 
Join Date: May 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found it, but it only edits the "Whos Online and Memberlist" part. Not the $post[username]
Reply With Quote
  #5  
Old 09-15-2003, 07:25 PM
imported_Dawson imported_Dawson is offline
 
Join Date: Jul 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yours doesn't look like this?
Attached Images
File Type: gif usergroup.gif (44.4 KB, 0 views)
Reply With Quote
  #6  
Old 09-16-2003, 10:55 AM
Veg Veg is offline
 
Join Date: May 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ive attached some screenies.

My Admins are

Veg
HeadSurfer
BlueShift

And all our Super Administrators in Config file.
Attached Images
File Type: jpg adminpic.jpg (24.8 KB, 0 views)
File Type: jpg viewpost.jpg (7.8 KB, 0 views)
File Type: jpg whosonline.jpg (2.2 KB, 0 views)
File Type: jpg admins.jpg (2.8 KB, 0 views)
Reply With Quote
  #7  
Old 09-16-2003, 10:57 AM
Veg Veg is offline
 
Join Date: May 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All Admins dont have it showing on Post bit for some reason. My postbit_userinfo hasnt changed at all.
Reply With Quote
  #8  
Old 09-16-2003, 11:20 AM
Veg Veg is offline
 
Join Date: May 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, Fixed.
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 11:20 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.04498 seconds
  • Memory Usage 2,243KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (5)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete