vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Full Member's Yahoo Information In Postbit (https://vborg.vbsupport.ru/showthread.php?t=257079)

VBIran 01-12-2011 10:00 PM

Full Member's Yahoo Information In Postbit
 
1 Attachment(s)
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 :D
Screenshot :
https://vborg.vbsupport.ru/attachmen...2&d=1294952767
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 . :)

ehsanix 01-14-2011 09:00 AM

OMG :)
Thank you so much!
ali dude :D

A.Chakery 01-14-2011 10:57 AM

thankx, installed :)

hamedbia2 01-30-2011 05:12 PM

that's great


All times are GMT. The time now is 03:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01137 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete