View Full Version : Mini Mods - Clan Tags for Usernames in Posts
harmor19
05-11-2009, 10:00 PM
With this modification you can create a Custom Profile Field that displays to the left of the username in posts as well as assign a color to the tags without editing a template.
Install Instructions
1. Go to ACP
2. Expand "Plugins & Products"
3. Click "Manage Products"
4. Click "[Add/Import Product]"
5. Browse to "product-ah_clan_tags.xml" and import it.
Setup Instructions
Create a Custom Profile Field that you wish to be displayed beside usernames.
Remember the number of the field ID and go into "Clan Tag Options" in "vBulletin Options".
Type the number into the field labeled "Field ID".
The Left and Right Boundary fields can be used to identify the tag.
Instead of "Revharmor19" you can change it to "[Rev]harmor19" or any other character(s) you wish.
Updates
1.1: Fixed the problem of another Custom Profile Field showing when you assign a color to the tags.
1.2: An option to either add or remove the space between the tag and username.
You can add boundary boxes to make the tags easily recognizable.
1.3: Fixed issue with displaying of boundary boxes even if the user didn't enter any text into the field on their profile.
Honk0815
05-12-2009, 05:33 PM
I need this hack for postbit legacy..
Can you creat this?
or what is the variable?
harmor19
05-12-2009, 05:37 PM
This will work with postbit and postbit_legacy.
harmor19
05-13-2009, 02:52 AM
awesome mod!
Thank you.
Phosphorus
05-13-2009, 06:25 AM
thx for this..
But i have a problem ... if i put a other color for clan tag the mod display a other field ...
Bowromir
05-13-2009, 08:52 AM
good stuff!!! great
RG_LunAnder
05-13-2009, 09:39 AM
thx for this..
But i have a problem ... if i put a other color for clan tag the mod display a other field ...
Might be a typo in the plugin, this line:
$post['musername'] = $tagcoloropen.$post['field5'] .' '. $tagcolorclose.$post['musername'];
could be like:
$post['musername'] = $tagcoloropen.$post['field'.$fieldx] .' '. $tagcolorclose.$post['musername'];
Id also would like to suggest the tag to be attached directly to the username instead of a blank inbetween.
btw. GREAT plugin! thnx for developing.
/Lun
RG_LunAnder
05-13-2009, 09:49 AM
oh and an other suggestion, id rather have:
Enable Clan Tags? (Yes) (No)
instead of the current:
Choose 'Yes' to disable Clan Tags (Yes) (No)
but its a matter of taste... i just didnt get why i couldnt get the clantag to show... till i actually read the line "Choose 'Yes' to disable Clan Tags" - and of course ive choosen yes... lol
/Lun
harmor19
05-13-2009, 10:56 AM
I will see if there is a typo in the code.
Id also would like to suggest the tag to be attached directly to the username instead of a blank inbetween.
btw. GREAT plugin! thnx for developing.
/Lun
That's a matter of personal taste. If you wish to remove the space between tag and username you can do it yourself.
RG_LunAnder
05-13-2009, 11:25 AM
That's a matter of personal taste. If you wish to remove the space between tag and username you can do it yourself.I agree, its a matter of taste.
An option would be great - but ill edit the file - thou i always feel im disrespectful when i do :)
/Lun
harmor19
05-13-2009, 11:30 AM
I agree, its a matter of taste.
An option would be great - but ill edit the file - thou i always feel im disrespectful when i do :)
/Lun
I will write instructions on how to remove the space. When there are a couple more ideas either from you, the users, or myself I like to add then I will also add an option to add a space between tag and the username.
RG_LunAnder
05-13-2009, 12:00 PM
When there are a couple more ideas either from you, the users, or myself I like to add then I will also add an option to add a space between tag and the username.Much appreciated, thnx for your efforts.
/Lun
harmor19
05-14-2009, 07:54 PM
Updated.
This is what's in 1.2.
The Left and Right Boundary fields can be used to identify the tag. Instead of "Revharmor19" you can change it to "[Rev]harmor19" or any other character(s) you wish.
An option to either add or remove the space between the tag and username.
RG_LunAnder
05-15-2009, 03:04 PM
wow. fast work!
thnx again :)
/Lun
Kottonmouth801
07-25-2009, 08:10 AM
Very Nice Modification :up: :up:
Kottonmouth801 Marks Installed :up::up::up::up::up:
masterwebguy
07-27-2009, 04:35 PM
Love it. added.
Mith_OWNS
11-06-2009, 10:58 PM
installed and love it, except I want to get the tags at the end of the name if that is possible in any way.
Thanks much
Anthony_RuBeZ
11-07-2009, 09:43 PM
I tried implementing this myself by editing the templates and wouldn't work :[
This hack is excellent, thank you very much.
Neomega
11-08-2009, 05:18 AM
I have it running on a competition/FPS website at www.gamescrim.com, made a few small modifications and it works great. This is really great for any clan or group site.
GrossKopf
01-07-2010, 06:36 PM
Any chance of getting this updated for VB 4?
GrossKopf
01-11-2010, 04:25 AM
I don't know much about this stuff, so if the author isn't going to update it, can someone handle it? I can't imagine this would be that tough to make for VB 4.
MjrNuT
01-13-2010, 10:41 PM
Updated.
This is what's in 1.2.
The Left and Right Boundary fields can be used to identify the tag. Instead of "Revharmor19" you can change it to "[Rev]harmor19" or any other character(s) you wish.
An option to either add or remove the space between the tag and username.
Is using No. 1 optional?
For instance, not all clan tags are brackets, sometimes nothing, sometimes braces, etc. If left blank, can the user enter the tag as they wish in the Profile Field?
eg., {tag}, tag*, )tag(
Oh, and this does not impact their actual username, right? it still remains the same, regardless of tag.
Thanks
installed, i am having Arabic forum, i am getting the [Boundary] mixed up
have a look pls,
http://www.DNG.com.sa/forums/t1612.html#post12425
any tip how to get this fixed??
:confused:
Llandy
03-01-2010, 08:33 AM
Nice, good job on the mod. Quick question: How do i enable so that the tags are visible under "currently active users"?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.