vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How can you add color in (https://vborg.vbsupport.ru/showthread.php?t=313894)

FSG 08-24-2014 03:41 AM

How can you add color in
 
Hi everyone I wonder if there is a plugin that allowes you to get this;
Welcome, FSG .
I'm sorta looking for a plugin like that, I've seen it befor but I don't remember where.


Thanks in advance.

MajorKokosnuss 08-24-2014 10:23 AM

You can add this in a notice.

you can use this as begin:

Code:

Welcome, {font-color="yellow"}{musername}{/font}
{br}
{br}
Your Text

The {br} are spaces, you can remove them if you want

//EDIT:

you can use {username} too if you don't want that it shows your HTML group mark up :)

cellarius 08-24-2014 10:18 PM

Now, my guess would have been that he wants to color the username in the already existing "Welcome, username" message at the top of the header, not just adding it once againg a few pixels below.

Which would be done by editing the header template, changing bbuserinfo.username to bbuserinfo.musername in the following line of code (which will preserve the color added to the username by usergroup or individual user settings):
Code:

<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
Or, alternatively, edit the phrase welcome_x_link_y (html should be possible there).

FSG 08-25-2014 08:17 PM

Quote:

Originally Posted by cellarius (Post 2512605)
Now, my guess would have been that he wants to color the username in the already existing "Welcome, username" message at the top of the header, not just adding it once againg a few pixels below.

Which would be done by editing the header template, changing bbuserinfo.username to bbuserinfo.musername in the following line of code (which will preserve the color added to the username by usergroup or individual user settings):
Code:

<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
Or, alternatively, edit the phrase welcome_x_link_y (html should be possible there).

Thanks for the help, but is this ment to go into the main template?

cellarius 08-26-2014 05:26 AM

Just as I said: The code is in the header template. That's where you need to make the change. And you would have to do that for every style you use.

I have no idea what you mean by "main template".


All times are GMT. The time now is 07:03 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.01072 seconds
  • Memory Usage 1,720KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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