vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help - font color help (https://vborg.vbsupport.ru/showthread.php?t=203989)

BlackJacket 02-02-2009 08:10 PM

Help - font color help
 
How cani have Admins font color always red? Moderators always blue? etc...

Thank you very, VERY much! :)

Dismounted 02-03-2009 05:14 AM

Admin CP > Usergroups > Usergroup Manager > Edit Usergroup > HTML Markup. Enter the HTML to go before the name in the first box, and the HTML to go at the end in the second box. (Also click the little question mark for extra hints.)

BlackJacket 02-03-2009 10:37 AM

Quote:

Originally Posted by Dismounted (Post 1732719)
Admin CP > Usergroups > Usergroup Manager > Edit Usergroup > HTML Markup. Enter the HTML to go before the name in the first box, and the HTML to go at the end in the second box. (Also click the little question mark for extra hints.)

Thanks Dismounted. I will check this out now. :)

--------------- Added [DATE]1233664971[/DATE] at [TIME]1233664971[/TIME] ---------------

Does this change the font color etc... when that specific usergroup makes a post? Would their text be red or blue etc...

Thanks again!

Dismounted 02-04-2009 07:21 AM

Oh, I thought you meant username colours. To do that, you must edit the postbit(_legacy) template, and use conditionals to change the text colour according to the usergroup. Place the conditionals around the message variable.

BlackJacket 02-04-2009 09:41 PM

Quote:

Originally Posted by Dismounted (Post 1733942)
Oh, I thought you meant username colours. To do that, you must edit the postbit(_legacy) template, and use conditionals to change the text colour according to the usergroup. Place the conditionals around the message variable.

Im a noob when it comes to that. Could you show me?

Thank you very, VERY much! :)

--------------- Added [DATE]1233845644[/DATE] at [TIME]1233845644[/TIME] ---------------

http://i531.photobucket.com/albums/d...NDOM/bump2.jpg

--------------- Added [DATE]1233845691[/DATE] at [TIME]1233845691[/TIME] ---------------

errr this auto merge is getting annoying. :(

How come it auto merges sometimes, but others it will make a new post?

Lynne 02-05-2009 04:08 PM

searching "color" "titles only" gives me this thread - https://vborg.vbsupport.ru/showthrea...ighlight=color

BlackJacket 02-05-2009 04:36 PM

Quote:

Originally Posted by Lynne (Post 1735295)
searching "color" "titles only" gives me this thread - https://vborg.vbsupport.ru/showthrea...ighlight=color

I had searched before but i didnt find it. :(

For future reference -
Find in postbit_Legacy -
Code:

<!-- message -->
        <div id="post_message_$post[postid]">
            $ad_location[ad_showthread_firstpost_start]
            $post[message]
        </div>
        <!-- / message -->

Replace This -

Code:

<div id="post_message_$post[postid]">

With this -

PHP Code:

<if condition="is_member_of($post, 6)">
<
div id="post_message_$post[postid]style="color: red; font-weight: bold;">
<else />
<if 
condition="is_member_of($post, 7)">
<
div id="post_message_$post[postid]"  style="color: orange;">
<else />
<
div id="post_message_$post[postid]style="color: black;">
</if>
</if> 

You can change the number to any group you want And change the colors and font-weight to whatever you want unless you really want bold red text for your administrators and orange text for your moderators!

Thanks Lynne for the help! :)

Lynne 02-05-2009 05:09 PM

Quote:

Originally Posted by NittoMOD (Post 1735325)
You can change the number to any group you want.

And change the colors and font-weight to whatever you want unless you really want bold red text for your administrators and orange text for your moderators!


All times are GMT. The time now is 07:07 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.01047 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete