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
Full Member's Yahoo Information In Postbit Details »»
Full Member's Yahoo Information In Postbit
Version: 1.00, by VBIran VBIran is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.1.0 Rating:
Released: 01-12-2011 Last Update: Never Installs: 10
Code Changes  
No support by the author.

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 . :up:
Good Luck .

Screenshots

File Type: png vb121.PNG (39.8 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 01-14-2011, 09:00 AM
ehsanix ehsanix is offline
 
Join Date: Oct 2003
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OMG
Thank you so much!
ali dude
Reply With Quote
  #3  
Old 01-14-2011, 10:57 AM
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thankx, installed
Reply With Quote
  #4  
Old 01-30-2011, 05:12 PM
hamedbia2 hamedbia2 is offline
 
Join Date: Aug 2010
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that's great
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 10:11 AM.


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.03756 seconds
  • Memory Usage 2,251KB
  • Queries Executed 18 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete