vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - Clan Tags for Usernames in Posts (https://vborg.vbsupport.ru/showthread.php?t=213494)

harmor19 05-11-2009 10:00 PM

Clan Tags for Usernames in Posts
 
1 Attachment(s)
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.

ZiG 05-12-2009 07:46 PM

awesome mod!

harmor19 05-13-2009 02:52 AM

Quote:

Originally Posted by ZiG (Post 1809585)
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

Quote:

Originally Posted by Phosphorus (Post 1809891)
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:
Code:

$post['musername'] = $tagcoloropen.$post['field5'] .' '. $tagcolorclose.$post['musername'];
could be like:
Code:

$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.

Quote:

Originally Posted by RG_LunAnder (Post 1809934)
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

Quote:

Originally Posted by harmor19 (Post 1809968)
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

Quote:

Originally Posted by RG_LunAnder (Post 1809985)
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

Quote:

Originally Posted by harmor19 (Post 1809986)
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.
  1. 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.
  2. 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

Sp32 06-04-2009 12:43 AM

kewllll installed

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.

DNG 01-12-2010 03:19 PM

nice mod :)

DNG 01-13-2010 10:19 PM

installed

MjrNuT 01-13-2010 10:41 PM

Quote:

Originally Posted by harmor19 (Post 1810872)
Updated.

This is what's in 1.2.
  1. 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.
  2. 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

DNG 01-14-2010 11:47 PM

Quote:

Originally Posted by DNG (Post 1954921)
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:

DNG 01-15-2010 02:58 PM

:up: working fine

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"?


All times are GMT. The time now is 01:02 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.01284 seconds
  • Memory Usage 1,774KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete