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.


All times are GMT. The time now is 09:04 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.02628 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)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