PDA

View Full Version : Colored Names


MajorKokosnuss
08-01-2014, 05:45 AM
Hello there, i tryed to find it out by myself but i found nothing.

What do i want ?

I gave my usergroups (admin,donor etc) Rank Colors and backgrounds.

Now i want to place the rank colors etc in the Search module (latest posts)

http://prntscr.com/48ewlr

I defined the group colors like this:

.glow-admin{
color: #FF0000;
font-weight: bold;
text-shadow: 0px 0px 6px #FF0000;
background: transparent url("http://i59.tinypic.com/15dntbn.jpg") no-repeat;
}

Whould be cool if someone can help me :P!

MajorKokosnuss
08-03-2014, 05:51 AM
Anyone :s ?

ozzy47
08-03-2014, 09:05 AM
Try this mod, https://vborg.vbsupport.ru/showthread.php?t=290368

MajorKokosnuss
08-03-2014, 10:24 AM
i am using vb5 not 4

ozzy47
08-03-2014, 10:30 AM
Oops, I always forget to look at that. But as far as vB5, I have not seen any username markup mods yet. :(

MajorKokosnuss
08-03-2014, 10:43 AM
Well yea, sadly i can't downgrade my forum :s

ozzy47
08-03-2014, 10:55 AM
Where do I find that, Latest Posts?

MajorKokosnuss
08-03-2014, 11:03 AM
It is the Search Module :) from the Module Selection

ozzy47
08-03-2014, 11:14 AM
Ok in your style, edit the template, display_contenttype_searchwidget_item_header

Find this bit of code:
<vb:if condition="!empty($conversation['userid'])">
<a href="{vb:url 'profile', {vb:raw conversation}}">{vb:raw conversation.authorname}</a>
<vb:else />
{vb:phrase guest}
</vb:if>And change it to this:
<vb:if condition="!empty($conversation['userid'])">
<a href="{vb:url 'profile', {vb:raw conversation}}">{vb:raw conversation.musername}</a>
<vb:else />
{vb:phrase guest}
</vb:if>

MajorKokosnuss
08-03-2014, 11:25 AM
Thanks <3<3!!!

ozzy47
08-03-2014, 11:27 AM
Not a problem, glad to help. :)