Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2004, 03:21 PM
docjay docjay is offline
 
Join Date: Dec 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Admin Specific Font Color

I have searched this site for 2 days trying to find this, but havent had any luck. What im looking for is this, So that when an Admin posts, his font will automatically appair a different font color then the default forum font color. I have found a couple of hacks here that allow everyone to change their font color, but not one to just allow a specific usergroup. Can this be done?
Reply With Quote
  #2  
Old 12-27-2004, 10:04 PM
docjay docjay is offline
 
Join Date: Dec 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No ideas from anyone?
Reply With Quote
  #3  
Old 12-28-2004, 11:38 AM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can do this by creating a new class and then making this change to your postbit templates.

replace
Code:
<!-- message -->
<div>$post[message]</div>
<!-- / message -->
with
Code:
<!-- message -->
<if condition="is_member_of($post, 6)">
<div class="adminclass">$post[message]</div>
<else />
<div>$post[message]</div>
</if>
<!-- / message -->
Reply With Quote
  #4  
Old 12-30-2004, 12:01 AM
docjay docjay is offline
 
Join Date: Dec 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much, it took me a lil bit to figure out where to add the "class" to, but I did and its working great,
Reply With Quote
  #5  
Old 12-30-2004, 12:44 AM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem. Great to hear you got it working!
Reply With Quote
  #6  
Old 02-26-2005, 02:09 PM
docjay docjay is offline
 
Join Date: Dec 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I went an added a couple more Admin usergroups, how would I get them to also appear in a font specific color, this worked great on just one usergroup, how would I add 3 more to it?
Reply With Quote
  #7  
Old 02-27-2005, 03:47 PM
docjay docjay is offline
 
Join Date: Dec 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ideas anyone?
Reply With Quote
  #8  
Old 03-02-2005, 04:35 PM
docjay docjay is offline
 
Join Date: Dec 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still trying to get this to work, but it is still not working for me for the other usergroups, any ideas from anyone would be great.
Reply With Quote
  #9  
Old 03-03-2005, 06:43 PM
docjay docjay is offline
 
Join Date: Dec 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well after doing alot of searches on some different forums, I found a bit of a modification for what I needed to do, so I figured I would share with people in case they are looking to do the same thing.


I just added a few "or" commands I guess they would be called and it works great now. This is what I did.


Code:
<if condition="is_member_of($post,6)or is_member_of($post,24)or is_member_of($post,25)or is_member_of($post,26)"><div class="adminclass">$post[message]</div>
Reply With Quote
  #10  
Old 03-04-2005, 12:08 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by docjay
Well after doing alot of searches on some different forums, I found a bit of a modification for what I needed to do, so I figured I would share with people in case they are looking to do the same thing.


I just added a few "or" commands I guess they would be called and it works great now. This is what I did.


Code:
<if condition="is_member_of($post,6)or is_member_of($post,24)or is_member_of($post,25)or is_member_of($post,26)"><div class="adminclass">$post[message]</div>
You can simplify the process by installing the is_member_of improvement modification by merk. This will allow you to specify multiple usergroupid's in the same is_member_of() statement.

ie:
PHP Code:
<if condition="is_member_of($post, 6, 24, 25, 26)">
    <
div class="adminclass">$post[message]</div
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:58 AM.


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.08241 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
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
  • (4)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete