vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Clan Tag In Post Bit (https://vborg.vbsupport.ru/showthread.php?t=273551)

iDHKHCM 11-06-2011 11:00 PM

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 />


{vb:raw post.musername}



right above it add: (Replace Red XX with the profile feild number)
Code:

<vb:if condition="$post['fieldXX']">
<font color="red" size="4"><B>{vb:rawphrase fieldXX}[{vb:raw post.fieldXX}]</B></font></vb:if>

after its done it will look like this
http://i447.photobucket.com/albums/q...e/other/ct.png

djscoop 11-18-2011 01:36 AM

Cant get this one to work - Something about a tag

iDHKHCM 11-19-2011 06:18 AM

Quote:

Originally Posted by djscoop (Post 2269085)
Cant get this one to work - Something about a tag

fixed try again

UncleGrundle 01-19-2012 02:04 AM

Reserved for future use.

Spectre_Aidan 01-21-2012 07:46 AM

thanks for this i got it working perfectly on my forum running 4.1.10 and it was just what i needed aswell :D

MrBeastlymfe 02-22-2012 11:02 PM

You add the code above
Code:

<vb:if condition="$post['userid']">
And under
Code:

<div class="username_container">

SnaKe |WiH| 03-25-2012 03:16 PM

Thank you for the great edit. Is there anyway to link the color to the usergroups color?

iDHKHCM 03-25-2012 08:57 PM

Quote:

Originally Posted by SnaKe |WiH| (Post 2313159)
Thank you for the great edit. Is there anyway to link the color to the usergroups color?

i wouldnt know how to do it....im sure its possible though

SnaKe |WiH| 03-26-2012 08:56 PM

Hmmm......okay....we will have to look into it.

Dogma21cw 07-20-2012 04:40 AM

GREAT WORK! Love it. Is there a way for it to read the contents of the field and set the color dependent on that?


All times are GMT. The time now is 03:26 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.01065 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)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