vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   how i can change a user color only? (https://vborg.vbsupport.ru/showthread.php?t=285536)

Dr@gon 07-14-2012 05:07 AM

how i can change a user color only?
 
hi

how i can change a user color only?
only one user id color!

Mythotical 07-14-2012 05:56 AM

Depends on where you want to change the username color. Forum wide or in a specific area.

Dr@gon 07-14-2012 06:31 AM

Everywhere
in postbit in forumhome and in other place...

Mythotical 07-14-2012 06:53 AM

You should be able to edit the user's profile and in the html markup add your font color change.

Now if that don't exist, I haven't edited users on vb in a long time. Then I'll dig and find an answer for you.

Dr@gon 07-14-2012 07:08 AM

I want to change one user only! not a usergroup.
i think it needs some php code or create a plugin!
Whether there are learning about in this forum?

Mythotical 07-14-2012 07:14 AM

Ok you misunderstood me, I didn't say edit the usergroup, I said edit the user's profile, but I just took a look so forget what I said.

You have 2 ways you can do this, add a new usergroup with the markup you want and add only that person to it. (Simplest method)

Or give me a few days and I'll see about building a plugin to do what you want.

Dr@gon 07-14-2012 11:37 AM

Thank you my friend.
But I need this training now.
Do you think someone else can help me?

ForceHSS 07-14-2012 11:52 AM

Make a new user group put all settings to the same as the one he is in move him and only him to it then you can change the group colour so it will look like only this user has been changed

Mythotical 07-14-2012 11:53 AM

What ForceHSS said.

Dr@gon 07-14-2012 12:51 PM

i knew this way! but i want change a userid of a usergroup without create new usergroup for one user!
Is it possible؟!

ForceHSS 07-14-2012 02:01 PM

Post ur request here

Dr@gon 07-14-2012 02:38 PM

Thank you

Sarteck 07-26-2012 06:04 AM

Dragon, do this instead.

Make a plugin on the hook fetch_musername

Use the code:
PHP Code:

if ($user['userid'] == $MySpecificUserID)
{
  
$user['musername'] = '<span style="color:MYCOLOR;">'.$user['username'].'</span>';


Replace $MySpecificUserID with the UserID and MYCOLOR with the color.

Very simple, I'm surprised you didn't get an answer. :o

Dr@gon 07-26-2012 06:32 AM

tank you for your reply. but i use this code and getting error!:

HTML Code:

if ($user['userid'] == $5)
{
  $user['musername'] = '<span style="color:red;">'.$user['username'].'</span>';
}


Sarteck 07-26-2012 06:01 PM

If the user ID yu want is '5' then use '5', not '$5'. :P

Dr@gon 07-26-2012 06:14 PM

Quote:

Originally Posted by Sarteck (Post 2351662)
If the user ID yu want is '5' then use '5', not '$5'. :P


A special thank Mythotical
Great work
:x


All times are GMT. The time now is 06:13 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.02197 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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