Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Clan Tag In Post Bit Details »»
Clan Tag In Post Bit
Version: 1.00, by iDHKHCM iDHKHCM is offline
Developer Last Online: Aug 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 11-06-2011 Last Update: Never Installs: 15
Template Edits
Re-useable Code  
No support by the author.

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:




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

Screenshots

File Type: png pf.png (59.4 KB, 0 views)
File Type: png ct.png (3.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-18-2011, 01:36 AM
djscoop djscoop is offline
 
Join Date: Jun 2010
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cant get this one to work - Something about a tag
Reply With Quote
  #3  
Old 11-19-2011, 06:18 AM
iDHKHCM iDHKHCM is offline
 
Join Date: Aug 2011
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djscoop View Post
Cant get this one to work - Something about a tag
fixed try again
Reply With Quote
  #4  
Old 01-19-2012, 02:04 AM
UncleGrundle UncleGrundle is offline
 
Join Date: Dec 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved for future use.
Reply With Quote
  #5  
Old 01-21-2012, 07:46 AM
Spectre_Aidan Spectre_Aidan is offline
 
Join Date: Jul 2011
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this i got it working perfectly on my forum running 4.1.10 and it was just what i needed aswell
Reply With Quote
Благодарность от:
iDHKHCM
  #6  
Old 02-22-2012, 11:02 PM
MrBeastlymfe's Avatar
MrBeastlymfe MrBeastlymfe is offline
 
Join Date: Dec 2011
Location: My WonerLand
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You add the code above
Code:
<vb:if condition="$post['userid']">
And under
Code:
<div class="username_container">
Reply With Quote
  #7  
Old 03-25-2012, 03:16 PM
SnaKe |WiH| SnaKe |WiH| is offline
 
Join Date: May 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the great edit. Is there anyway to link the color to the usergroups color?
Reply With Quote
  #8  
Old 03-25-2012, 08:57 PM
iDHKHCM iDHKHCM is offline
 
Join Date: Aug 2011
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SnaKe |WiH| View Post
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
Reply With Quote
  #9  
Old 03-26-2012, 08:56 PM
SnaKe |WiH| SnaKe |WiH| is offline
 
Join Date: May 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm......okay....we will have to look into it.
Reply With Quote
  #10  
Old 07-20-2012, 04:40 AM
Dogma21cw Dogma21cw is offline
 
Join Date: Sep 2011
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04694 seconds
  • Memory Usage 2,316KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete