Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Automiatc Specific User Text Colouring Details »»
Automiatc Specific User Text Colouring
Version: 1.00, by Renny Renny is offline
Developer Last Online: Nov 2018 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.3 Rating:
Released: 10-12-2008 Last Update: Never Installs: 4
Code Changes  
No support by the author.

Hello,

I asked how to do this a while back and was told how and thought id post it incase everyone else would like to do this.

The mod is simple, it allows you to set a specific colour for a usergroup you set so when a member of that usergroup post it is automaticly posted as the colour you've set. however the colour can be changed if the user seletes a different colour from the text colours

>>> I take no credit for this coding, full credit to Karri <<<

Please note you will have to edit the code to any layout(s) you have and want it to show on.



First login to your admincp --> Style Manager --> Edit Templates

In your postbit find
PHP Code:
<!-- message -->
<
div id="post_message_$post[postid]">$post[message]</div>
<!-- / 
message --> 
replace with
PHP Code:
<!-- message -->             
<if 
condition="(in_array($post['usergroupid'],  array('6', '#', '#', '#')))">
    <
div class="VIP_$post[usergroupid]id="post_message_$post[postid]">$post[message]</div>
<else />
<
div id="post_message_$post[postid]">$post[message]</div>
</if>

<!-- / 
message --> 
where the # are you put the user groups id for example if i wanted to set my admin, id put
PHP Code:
<if condition="(in_array($post['usergroupid'],  array('6')))"
after you are happy with this click save.

If your using legacy, make sure you edit postbit_legacy instead of or aswell as postbit.

once this is done go to your Main CSS and add in "Additional CSS Definitions" the following

Code:
.VIP_# { color:#000000 }
.VIP_# { color:#ffffff }
# replace with the group id and click Save.

Remember that if you have more then one forum skin you will have to edit the code thoughout them inorder for it to show.

i hope this helps and can understand my guide. I will look in to trying to make it in to a mod. if you have any further questions please ask.

Renny

Show your support by clicking installed

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-13-2008, 01:34 PM
Renny Renny is offline
 
Join Date: Mar 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Reserved*
Reply With Quote
  #3  
Old 10-14-2008, 07:05 AM
rooban12 rooban12 is offline
 
Join Date: May 2007
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the hack but if you attach a screenshot that would be fine
Reply With Quote
  #4  
Old 10-14-2008, 02:58 PM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a template edit, NOT a product.
Reply With Quote
  #5  
Old 10-15-2008, 12:55 PM
Renny Renny is offline
 
Join Date: Mar 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rooban12 View Post
thanks for the hack but if you attach a screenshot that would be fine
Picture Added =]

Quote:
Originally Posted by Magnumutz View Post
This is a template edit, NOT a product.
Never said it was a product? :S
Reply With Quote
  #6  
Old 10-15-2008, 07:00 PM
Fynnon Fynnon is offline
 
Join Date: Jul 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great, thank you !
Reply With Quote
  #7  
Old 10-16-2008, 04:17 PM
TilkiBey's Avatar
TilkiBey TilkiBey is offline
 
Join Date: Jul 2008
Location: Konya, TR
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Renny View Post
Never said it was a product? :S
yes u did
why? coz u opened this thread in ADD-ON FORUMS

modifications' for 37x forum
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 07:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05222 seconds
  • Memory Usage 2,272KB
  • Queries Executed 22 (?)
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)bbcode_code
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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