Back to vBulletin 4.x Template Modifications

Full Member's Yahoo Information In Postbit
Mod Version: 1.00, by VBIran

vB Version: 4.1.0 Rating: (1 vote - 5.00 average) Installs: 10
Released: 13 Jan 2011 Last Update: Never Downloads: 0
Not Supported Code Changes  

Hi .
Description :
With this small mod you can make a place in postbit that shows member's Yahoo ID , Yahoo Avatar And Yahoo Status . Lets go
Screenshot :

Installation :
Step 1 - Go to User Profile Fields(In AdminCP) and create a new Field (single line). In the title put "Yahoo ID" and description put something like "Insert your Yahoo ID". Field length must be 40 Check it then save field options. Make sure you take the field id name .
Step 2 - Now that you have set up your profile field its time to go and edit your template. According to what style you are using, edit postbit or postbit legacy and find the following code:
Code:
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>
After it Add :
Code:
<vb:if condition="$post['field7']">
<head>
<style type="text/css">
.vbiran0 {
	direction: ltr;
	text-align: left;
}
</style>
</head>
		<div class="vbiran0">
			<span class="vb.org" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium;">
			<span class="vb.org" style="font-family: tahoma; font-size: 11px; text-align: -webkit-right;">
			Yahoo Avatar :
			<a href="http://img.msg.yahoo.com/avatar.php?format=jpg&amp;yids={vb:raw post.field7}">
		<img src="http://img.msg.yahoo.com/avatar.php?format=jpg&amp;yids={vb:raw post.field7}" alt="" border="0" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; cursor: pointer; " width="56" height="51"></a><br>
			Yahoo ID : {vb:raw post.field7}<br>
			Yahoo Status :&nbsp; 		<img src="http://opi.yahoo.com/online?u={vb:raw post.field7}&amp;m=g&amp;t=5" alt="" border="0" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; cursor: pointer; " width="12" height="12"></div>
		</span></span></div>
</vb:if>
IMPORTANT NOTE : You must replace your field id With {vb:raw post.field7} !
You can force users to fill this field in register( In field Options )or trying other ways .
Good Luck .

Download

No files for download.

Screenshots

Click image for larger version
Name:	vb121.PNG
Views:	318
Size:	39.8 KB
ID:	125572  

Similar Mods

Show Thread Enhancements PS - Boxed Postbit Information & Centered Postbit vBulletin 3.7 Template Modifications

vblts.ru supports vBulletin®, 2022-2024