![]() |
Clan Tag In Post Bit
1 Attachment(s)
this edit just adds a clan tag next to your username or wherever you decide to put it
first you will need to make a profile field Go to AdminCP --> User Profile Fields --> Add New User Profile Field for profile field type select Single-Line Text Box Title= Clan Tag Profile Field Category= (Uncategorized) Max length of allowed user input= 4 Field Required= Yes, at registration and profile updating Field Editable by User= Yes Private Field= No Field Searchable on Members List= Yes Show on Members List= Yes should look like this: http://i447.photobucket.com/albums/q...e/other/pf.png Now Go To postbit_legacy And Find: HTML Code:
<vb:else /> right above it add: (Replace Red XX with the profile feild number) Code:
<vb:if condition="$post['fieldXX']"> http://i447.photobucket.com/albums/q...e/other/ct.png |
Cant get this one to work - Something about a tag
|
Quote:
|
Reserved for future use.
|
thanks for this i got it working perfectly on my forum running 4.1.10 and it was just what i needed aswell :D
|
You add the code above
Code:
<vb:if condition="$post['userid']"> Code:
<div class="username_container"> |
Thank you for the great edit. Is there anyway to link the color to the usergroups color?
|
Quote:
|
Hmmm......okay....we will have to look into it.
|
GREAT WORK! Love it. Is there a way for it to read the contents of the field and set the color dependent on that?
|
See below.
|
YAY! I figgered it out. I had to create a custom phrase in the phrase mananger.
Went AdminCP>Phrase Manager. Phrase type: GLOBAL, then add new phrase. Product: vBulletin Varname: oppdiv//this was the name of the team Text: [TEAM1] Translations: [TEAM1] Then used the following code when editing the postbit template: Code:
EDIT: See my next post |
Ok, I fixed it. Had to use $post instead of $bbuserinfo. $post made it look at the poster's usergroup, not the viewers.
Code:
<vb:if condition="is_member_of($post, 779)"> Thanks for your hard work in showing me the way, I hope this post of mine helps others. |
Ok, that all works for the postbit. But does anyone know where I'd do to add this to the user profile page, and the currently active users sections?
|
How could I get text next to it so it would say Clan Tag: {[DM]} or something different than the question for the box.
|
How can I set this field to accept ALT characters? Currently, when a user enters an ALT character, it defaults to the numerical reference to the character.
In other words, what should be showing as ★ is showing as "&9733" in the profile field upon clicking "save". Thanks, CheckM8 |
You done it like this
Code:
<vb:if condition="$post['field5']"> |
Yes
|
can you post a ss of the template you edited
|
1 Attachment(s)
Quote:
|
You put it to far up it needs to be above
Code:
<vb:else /> Code:
<vb:if condition="$post['field5']"> |
Quote:
|
I am having no issues with ATL characters displaying correctly.
Only issue I see is when you use to many ALT characters. http://blind-eddie.com/forum/imageho...4217b78408.png http://blind-eddie.com/forum/imageho...4217bb7ad1.png http://blind-eddie.com/forum/imageho...4217bb865a.png http://blind-eddie.com/forum/imageho...4217bb8e22.png Also, I edited your code, see below Code:
<vb:if condition="$post['field11']"> |
Strange, alt9733 shows a club symbol for me in IE11 FF.
|
All times are GMT. The time now is 04:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|