vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - MySpace & FaceBook buttons in member profile and postbit (https://vborg.vbsupport.ru/showthread.php?t=160232)

jmurrayhead 08-17-2008 01:36 PM

In 3.7, the postbit has the following:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
But instead of the original template update:
Code:

<if condition="$show['hasimicons'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX']">
try this:
Code:

<if condition="$userinfo['fieldXX'] OR $userinfo['fieldXX']">
I haven't tested this myself, but might as well give it a try...

BucWiLd 10-15-2008 04:20 AM

Quote:

Originally Posted by jmurrayhead (Post 1600711)
In 3.7, the postbit has the following:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
But instead of the original template update:
Code:

<if condition="$show['hasimicons'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX']">
try this:
Code:

<if condition="$userinfo['fieldXX'] OR $userinfo['fieldXX']">
I haven't tested this myself, but might as well give it a try...

didnt work, anyone figure this out yet?

TriMe 12-12-2008 01:46 PM

For 3.7.* users who would like something like the attached image

In memberinfo_block_contatinfo look for

Code:

        <if condition="$prepared['hasimdetails']">
                <fieldset>
                        <legend>$vbphrase[instant_messaging]</legend>
                        <div class="fieldset_padding floatcontainer">
                                <div><phrase 1="$prepared[username]">$vbphrase[send_instant_message_to_x_using]</phrase></div>
                                <ul class="list_no_decoration" id="instant_messaging_list">
                                        $block_data[imbits]
                                </ul>
                        </div>
                </fieldset>
        </if>

and replace with

Code:

        <if condition="$show['hasimicons'] OR $userinfo['field6']">
                <fieldset>
                        <legend>$vbphrase[instant_messaging]</legend>
                        <div class="fieldset_padding floatcontainer">
                                <div><phrase 1="$prepared[username]"></phrase></div>
                                <ul class="list_no_decoration" id="instant_messaging_list">
                                        $block_data[imbits]
                          <if condition="$userinfo['fieldXX']"><br />
                        <td><a href="http://www.facebook.com/profile.php?id=$userinfo[fieldXX]"target="_blank"><img src="../images/misc/im_facebook.gif"border="0"alt="View Member's FaceBook Profile"></td></a>&nbsp;
                        <td><font color="#938d91" size="1">Facebook &nbsp;<a href="http://www.facebook.com/profile.php?id=$userinfo[fieldXX]"target="_blank"></font>&nbsp;<phrase 1="$prepared[username]">$vbphrase[visit_x_facebook_profile]</phrase></a></td>
                          </if>
                                </ul>

                        </div>
                </fieldset>
        </if>

Replace [fieldXX] with the field number of your Facebook profile field

Replace ../images/misc/im_facebook.gif with the location of your facebook gif, and rename it accordingly.

Add New Phrase in Phrase Manager with varname: 'visit_x_facebook_profile' and text: 'Visit {1}'s Facebook Profile'

Search in admincp Phrases for $vbphrase[instant_messaging], replace with what ever you want. I chose Messaging and Social Networking.

Cheers

zonaenlinea 08-26-2010 01:58 PM

for 4.0 ?

sector77 01-24-2011 03:57 AM

This worked except for some minor issues. In the link on the instructions it shows for example: www.facebook.com/user/profile.php?id=1234567. However, the 'user' folder should be removed otherwise the finished link will redirect you to a non-working url.


All times are GMT. The time now is 02:47 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.03438 seconds
  • Memory Usage 1,736KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete