vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Colored Names (https://vborg.vbsupport.ru/showthread.php?t=313386)

MajorKokosnuss 08-01-2014 05:45 AM

Colored Names
 
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:
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:
Code:

                <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!!!


All times are GMT. The time now is 07:28 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.01279 seconds
  • Memory Usage 1,728KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete