vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom VIP username color (https://vborg.vbsupport.ru/showthread.php?t=316399)

TC-Jamech 01-03-2015 03:09 PM

Custom VIP username color
 
Hi everyone,
So I've searched the forums for some sort of custom vip, but no joy. I managed to get hold of a custom VIP script however what gives anyone within the VIP group to change their user rank colour . How do I go about making this possible for usernames too?

This is the script I used for my usergroup (placed in postbit_legacy):

Code:

<if condition="is_member_of($post, 14)">
<div style="width: 125px; height: 24px; background: $post[field9]; margin-top: 1px"><img src="customvip.png" style="margin-top: -1px;" /></div>
</if>

And this is the current username field:
Code:

<div id="postmenu_$post[postid]">
                    <if condition="$show['profile']">
                    <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                    <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                    <else />
                    $post[musername]
                    </if>


ozzy47 01-03-2015 08:16 PM

You would need to make changes in the memberaction_dropdown template, as that is where the posters username is pulled from.

TC-Jamech 01-03-2015 10:03 PM

Quote:

Originally Posted by ozzy47 (Post 2530267)
You would need to make changes in the memberaction_dropdown template, as that is where the posters username is pulled from.

I tried looking for that template, or phrase, none found.. bare in mind this is vb3.

ForceHSS 01-03-2015 10:35 PM

in usergroup manager edit your vip group and in the Username HTML Markup
first box put
Code:

<span style="color:yellow;font-weight:bold;text-shadow: 1px 1px 10px yellow;">
2nd box put
Code:

</span>
change the yellow to the colour you want

not sure if this is the type of thing you are looking for

TC-Jamech 01-04-2015 12:39 AM

Quote:

Originally Posted by ForceHSS (Post 2530285)
in usergroup manager edit your vip group and in the Username HTML Markup
first box put
Code:

<span style="color:yellow;font-weight:bold;text-shadow: 1px 1px 10px yellow;">
2nd box put
Code:

</span>
change the yellow to the colour you want

not sure if this is the type of thing you are looking for

No it isn't.

ozzy47 01-04-2015 12:42 AM

Quote:

Originally Posted by TC-Jamech (Post 2530281)
I tried looking for that template, or phrase, none found.. bare in mind this is vb3.

Oooops, in that case, you need to mess around with the following, in the postbit or postbit_legacy template.

Code:

                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>

TC-Jamech 01-04-2015 12:44 AM

Update;

I've managed to get the username colour working on postbit, however, it isn't on the forum home.. Any idea?

Postbit code:
Code:

<if condition="$show['profile']">
                    <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]" <if condition="is_member_of($post, 27)">style="color:$post[field9]"</if>>$post[musername]</a>
                    <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                    <else />
                    $post[musername]
                    </if>

forumhome template:
Code:

<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
        <tr>
                <td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
                <td class="alt1" width="100%">
                        <div class="smallfont">
                                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                                <div>$activeusers</div>
                        </div>
                </td></if>
        </tr>
</tbody>
<!-- end logged-in users -->


Simon Lloyd 01-04-2015 01:16 AM

They are Usergroup colours that show in the forumhome, the usergroup colours are set in the usergroup manager for each usergroup.

ozzy47 01-04-2015 01:17 AM

Yeah I don't think you can do that easily, as the $post variable is only available in the postbit template.

TC-Jamech 01-04-2015 01:32 AM

Quote:

Originally Posted by Simon Lloyd (Post 2530334)
They are Usergroup colours that show in the forumhome, the usergroup colours are set in the usergroup manager for each usergroup.

Again, I want it so that it's customized to what the user has set it to through the profile field. Not to what I've set it to through the usergroup manager.


All times are GMT. The time now is 03:11 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.01115 seconds
  • Memory Usage 1,748KB
  • 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
  • (9)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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