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
  #22  
Old 03-27-2014, 03:58 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You put it to far up it needs to be above

Code:
<vb:else />
                <span class="username guest">{vb:raw post.musername}</span>
So it looks like
Code:
<vb:if condition="$post['field5']"> 
<font color="red" size="4"><B>{vb:rawphrase field5}[{vb:raw post.field5}]</B></font></vb:if>
            <vb:else />
                <span class="username guest">{vb:raw post.musername}</span>
also you said you used profile field 5 but in that ss you have it as 4
Reply With Quote
  #23  
Old 03-27-2014, 04:29 AM
Checkmate MK8 Checkmate MK8 is offline
 
Join Date: Mar 2014
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
You put it to far up it needs to be above

Code:
<vb:else />
                <span class="username guest">{vb:raw post.musername}</span>
So it looks like
Code:
<vb:if condition="$post['field5']"> 
<font color="red" size="4"><B>{vb:rawphrase field5}[{vb:raw post.field5}]</B></font></vb:if>
            <vb:else />
                <span class="username guest">{vb:raw post.musername}</span>
also you said you used profile field 5 but in that ss you have it as 4
That method only puts the clan tag to the right of the username. My original coding puts it to the left of the username, which is where I want it. It also does not change the fact that the clan tag doesn't display ALT characters correctly and that is what I am looking to correct..
Reply With Quote
  #24  
Old 03-27-2014, 01:11 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having no issues with ATL characters displaying correctly.
Only issue I see is when you use to many ALT characters.



Also, I edited your code, see below

Code:
<vb:if condition="$post['field11']"> 
<font color="red" size="4"><B>{vb:rawphrase field5}<br />[{vb:raw post.field11}]</B></font></vb:if>
Adding the <br /> will add clan tag on new line, looks better.
Reply With Quote
  #25  
Old 03-27-2014, 02:09 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange, alt9733 shows a club symbol for me in IE11 FF.
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 11:11 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.07868 seconds
  • Memory Usage 2,272KB
  • Queries Executed 20 (?)
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
  • (6)bbcode_code
  • (1)bbcode_html
  • (1)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
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (2)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete