Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MySpace & FaceBook buttons in member profile and postbit Details »»
MySpace & FaceBook buttons in member profile and postbit
Version: 2.00, by ChU v2 ChU v2 is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 10-13-2007 Last Update: 10-27-2007 Installs: 130
Template Edits
Re-useable Code Translations  
No support by the author.

Updated version with more options here: https://vborg.vbsupport.ru/showthread.php?t=174863



What is it?

This modification adds the MySpace & FaceBook icons to the Postbit/Postbit_legacy & MEMBERINFO templates. It will display and link to the member's myspace and facebook profiles from there postbit and profiles.

How is it done?

- 2 Image uploads
- 2 Profile fields
- 2 Template edits

Other Info

What gave me this idea was this: https://vborg.vbsupport.ru/showthread.php?t=142290
I did not copy any of his code. He said he was going to try and add it to the member profile, so I went ahead and did it.

Instructions

Instructions and images and located in the .zip folder attached to this post.

PLEASE CLICK INSTALL!



UPDATES:


v2.0:

- Added stylevar so that it cuts down 2 temp edits.
- Changed image directory to /forum/images/YOURSKIN/misc instead of /forum/images/misc.
- Fixed </if> coding error.

No real need to update or re download if you have it working already! This update is mainly for user's that have never installed or can't get it working.

v3.0

Just one minor template edit. This was brought to my attention by jmurrayhead. Go to the MEMBERINFO template.

FIND:

HTML Code:
<if condition="$show['hasimicons']">
REPLACE WITH:

HTML Code:
<if condition="$show['hasimicons'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX']">
Replace the XX's with the field numbers for your MySpace & Facebook profile fields.

Show Your Support

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

Comments
  #72  
Old 08-17-2008, 01:36 PM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
 
Join Date: Sep 2006
Location: Washington, D.C.
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #73  
Old 10-15-2008, 04:20 AM
BucWiLd's Avatar
BucWiLd BucWiLd is offline
 
Join Date: Jun 2008
Location: pa, usa
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jmurrayhead View Post
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?
Reply With Quote
  #74  
Old 12-12-2008, 01:46 PM
TriMe's Avatar
TriMe TriMe is offline
 
Join Date: Apr 2008
Location: Ottawa
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #75  
Old 08-26-2010, 01:58 PM
zonaenlinea's Avatar
zonaenlinea zonaenlinea is offline
 
Join Date: Dec 2009
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for 4.0 ?
Reply With Quote
  #76  
Old 01-24-2011, 03:57 AM
sector77 sector77 is offline
 
Join Date: Jan 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 12:35 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.04325 seconds
  • Memory Usage 2,266KB
  • Queries Executed 20 (?)
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
  • (8)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete