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
Xbox Headset in postbit. Details »»
Xbox Headset in postbit.
Version: 1.00, by XLCR GODFATHER XLCR GODFATHER is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 08-06-2011 Last Update: Never Installs: 4
Template Edits
Re-useable Code Additional Files Is in Beta Stage  
No support by the author.

What this does: Allows users to choose from a list of headsets then allows it to show in their postbit legacy.

This mod should only take a few minuets to install

There are a few headsets available in the attached zip file. I used the most common ones for my community as well as the new Call of Duty MW3 headsets. There is also a no headset image containing a headset with a red ring/slash around it. They are saved in png 24 with a transparent background. You can add headsets as you need them.

I should not have to tell you to BACK UP YOUR FORUM before making any changes!

Step 1:
Upload the zip file to your images folder and unzip.

Step 2:
Create a new User Profile Field
Choose Single selection Menu
Call it "Headset"

(Optional) You can show a version of the available headsets below the dropdown menu as well as a forum link for members to request headsets that are not listed by pasting the following in the profile field description. Be sure to update the link to point to a forum on your site...
Code:
Please choose your Primary Headset from the drop down list above. If you do not see yours listed please request them <a href="www.yoursite.com/your_forum_for_requests">here. </a>
<br/>

<img src="images/headsets/No-Headset.png" alt="No-Headset" /> 
<img src="images/headsets/Stock-Headset.png" alt="Stock-Headset" /> 
<img src="images/headsets/Microsoft-Wireless.png" alt="Microsoft-Wireless" />
<img src="images/headsets/Halo3-Wireless.png" alt="Halo3-Wireless" />
<img src="images/headsets/Halo-Reach-Wireless.png" alt="Halo-Reach-Wireless" />
<img src="images/headsets/XLC.png" alt="XLC"/>
<img src="images/headsets/X1.png" alt="X1"/>
<img src="images/headsets/X11.png" alt="X11"/>
<img src="images/headsets/X31.png" alt="X31"/>
<img src="images/headsets/X41.png" alt="X41"/>
<img src="images/headsets/DX11.png" alt="DX11"/>
<img src="images/headsets/Black-Ops-Tritons.png" alt="Black-Ops-Tritons"/>
<img src="images/headsets/AX-180.png" alt="AX-180"/>
<img src="images/headsets/AX-720.png" alt="AX-720"/>
<img src="images/headsets/MW3-Bravo.png" alt="MW3-Bravo"/>
<img src="images/headsets/MW3-Charlie.png" alt="MW3-Charlie"/>
<img src="images/headsets/MW3-Delta.png" alt="MW3-Delta"/>
<img src="images/headsets/MW3-Foxtrot.png" alt="MW3-Foxtrot"/>
Step 3:
Paste the following into the profile fields options (Be sure there is a carriage return after each choice)

Code:
No-Headset
Stock-Headset
Microsoft-Wireless
Halo3-Wireless
Halo-Reach-Wireless
XLC
X1
X11
X31
X41
DX11
Black-Ops-Tritons
AX-180
AX-720
MW3-Bravo
MW3-Charlie
MW3-Delta
MW3-Foxtrot
You should not need to alter any other options when setting up the profile field unless you want something different.

Make note of the field# for the profile field you just created as you are going to need this later

Step 4:
Admincp->Styles & Templates->Style Manager
and choose edit templates from the dropdown menu of any or all parent styles you wish to edit.

Locate your postbit_legacy template and find
Code:
<vb:if condition="$show['avatar']">
			<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
				<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
			</a>
			</vb:if>
Add the following after the above (remember to replace the x with your field#
Code:
<!-- Headset in postbit -->
<vb:if condition="$post['fieldx']">

<img src="images/headsets/{vb:raw post.fieldx}.png" alt="{vb:raw post.fieldx}"> 
</vb:if>
<!-- End Headset in postbit -->
DONE!

You may choose to place your code somewhere else in your postbit legacy to suit your needs but I found I like this location the best.

Download Now

File Type: zip headsets.zip (157.7 KB, 24 views)

Screenshots

File Type: jpg screenshot.jpg (93.4 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 08-07-2011, 03:27 AM
XLCR GODFATHER XLCR GODFATHER is offline
 
Join Date: Mar 2010
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved for updates...
Reply With Quote
  #3  
Old 10-20-2013, 09:18 AM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to have this show up in the user profile page below the gamerID's block

within its own block?
Reply With Quote
  #4  
Old 10-20-2013, 09:57 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find the following line in your postbit_legacy :

Code:
{vb:raw template_hook.postbit_userinfo_right}
				<div class="imlinks">
					{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
				</div>
			</vb:if>
Add your code:

Code:
<!-- Headset in postbit -->
<div class="pbit"><vb:if condition="$post['fieldX']">

Headset: <img src="images/headsets/{vb:raw post.fieldX}.png" alt="{vb:raw post.fieldX}"> 
</vb:if></div>
<!-- End Headset in postbit -->
Make sure the code is right before the last div tag before you get to the </div>
<div class="postbody">

It needs to look like this:

Code:
{vb:raw template_hook.postbit_userinfo_right}
				<div class="imlinks">
					{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
				</div>
			</vb:if>
<!-- Headset in postbit -->
<div class="pbit"><vb:if condition="$post['field8']">

Headset: <img src="images/headsets/{vb:raw post.field8}.png" alt="{vb:raw post.field8}"> 
</vb:if></div>
<!-- End Headset in postbit -->
		</div>
		<div class="postbody">
I highlighted the last div tag that the code needs to be in between ....
Reply With Quote
  #5  
Old 10-20-2013, 10:54 AM
franzes80 franzes80 is offline
 
Join Date: Sep 2012
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good work.Please How do you call your skin?And your font?
Reply With Quote
  #6  
Old 10-20-2013, 03:15 PM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CAG CheechDogg View Post
Find the following line in your postbit_legacy :

Code:
{vb:raw template_hook.postbit_userinfo_right}
				<div class="imlinks">
					{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
				</div>
			</vb:if>
Add your code:

Code:
<!-- Headset in postbit -->
<div class="pbit"><vb:if condition="$post['fieldX']">

Headset: <img src="images/headsets/{vb:raw post.fieldX}.png" alt="{vb:raw post.fieldX}"> 
</vb:if></div>
<!-- End Headset in postbit -->
Make sure the code is right before the last div tag before you get to the </div>
<div class="postbody">

It needs to look like this:

Code:
{vb:raw template_hook.postbit_userinfo_right}
				<div class="imlinks">
					{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
				</div>
			</vb:if>
<!-- Headset in postbit -->
<div class="pbit"><vb:if condition="$post['field8']">

Headset: <img src="images/headsets/{vb:raw post.field8}.png" alt="{vb:raw post.field8}"> 
</vb:if></div>
<!-- End Headset in postbit -->
		</div>
		<div class="postbody">
I highlighted the last div tag that the code needs to be in between ....
thanks cheech....but already have that setup in my postbit legacy....what I wanted was it also on each user profile page below the gamer card block....
Reply With Quote
Благодарность от:
CAG CheechDogg
  #7  
Old 10-25-2013, 12:36 PM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this on my one site running 4.2.1 but have another site running 3.8.7. So my question is what would be the equivalent postbit legacy code to have this show up?
Reply With Quote
  #8  
Old 10-26-2013, 11:42 AM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahhh figured it out...for those still on 3.8.x look for:
Code:
</td>
	<if condition="$show['moderated']">
	<td class="alt2" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
and place this code above it:
Code:
<!-- Headset in postbit -->
div class="pbit"><if condition="$post['fieldx']">

Headset: <img src="images/headsets/$post[fieldx].png" alt="$post[fieldx]">
</if></div>
<!-- End Headset in postbit -->
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 07:10 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.05420 seconds
  • Memory Usage 2,313KB
  • 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
  • (12)bbcode_code
  • (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
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete