Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Facebook button in postbit Details »»
Facebook button in postbit
Version: 1.00, by SLY LS1 SLY LS1 is offline
Developer Last Online: Aug 2019 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 10-13-2007 Last Update: Never Installs: 28
Template Edits
Additional Files  
No support by the author.

I couldn't find this anywhere else so I made my own using Bratz-Designs Myspace mod as a start.

1. Make a profile field

In Admin CP go to - User Profile Fields - Add New User Profile Field
Profile field type = Single-line text box
Title: Facebook Profile
Description: Type your Facebook ID number
You can leave the rest to default

**Note down the number of the field! Example: field16. You need to replace the fieldX in the next code with the number!**

2. Template changes - In postbit_lecacy & Postbit

Find:
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
After add:
Code:
<!-- Facebook display start -->
<if condition="$post[fieldX]"><a href="http://www.facebook.com/profile.php?id=$post[fieldX]" alt="View my Facebook" target="_blank">
<img src="images/misc/im_facebook.gif" border="0"></a>
</if><!-- Facebook display end -->
3. Button Upload

Upload the attached image to your: /images/misc folder!


4. Add link in members profile "Contact Info: section

Edit template - "memberinfo"

Find:
Code:
<if condition="$show['homepage']">
				<tr>
					<td>
						$vbphrase[home_page]:<br />
						<a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
					</td>
				</tr>
				</if>
Above add:
Code:
<if condition="$userinfo[fieldX]">
				<tr>
					<td>
						Facebook Profile:<br />
						<a href="http://www.facebook.com/profile.php?id=$userinfo[fieldX]" target="_blank">Check out my Facebook page</a>
					</td>
				</tr>
				</if>
Dont forget to change the X to your field number.

Show Your Support

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

Comments
  #2  
Old 10-14-2007, 08:16 PM
Munzo Munzo is offline
 
Join Date: Sep 2007
Location: Canada
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah First post - Great Add!!

I will add it for sure in the future!
Reply With Quote
  #3  
Old 10-15-2007, 07:39 AM
Mazoo's Avatar
Mazoo Mazoo is offline
 
Join Date: Apr 2005
Location: KSA - Riyadh
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I add it ..
wonderfull ..

Thanks
Reply With Quote
  #4  
Old 10-15-2007, 11:56 PM
Lyricsmama Lyricsmama is offline
 
Join Date: Jan 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Added... Thanks
Reply With Quote
  #5  
Old 10-18-2007, 01:00 PM
Meghwar's Avatar
Meghwar Meghwar is offline
 
Join Date: Apr 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

added but its not working
Reply With Quote
  #6  
Old 10-18-2007, 01:15 PM
SLY LS1's Avatar
SLY LS1 SLY LS1 is offline
 
Join Date: May 2007
Location: Melbourne Australia
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Meghwar View Post
added but its not working
It will only show if you have your facebook ID number in filled in, in your profile.
Reply With Quote
  #7  
Old 10-18-2007, 01:21 PM
Meghwar's Avatar
Meghwar Meghwar is offline
 
Join Date: Apr 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SLY LS1 I have Facebook id

i did add the fieldX = my Id and i added all the modification to postbit_legacy and postbit , then follow with members on members info,,,edited and saved added the new fields ot the "Add New User Profile Field" Save and refresh ....nothing happen i double check the info on my userCp ,,,,doesnt view the FACE BOOK modification some thing not right,,, and ist [fieldX] should be my Example: [89749819] id .... thanx
Reply With Quote
  #8  
Old 10-18-2007, 08:48 PM
Meghwar's Avatar
Meghwar Meghwar is offline
 
Join Date: Apr 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any one !!! could help
Reply With Quote
  #9  
Old 10-19-2007, 12:03 AM
SLY LS1's Avatar
SLY LS1 SLY LS1 is offline
 
Join Date: May 2007
Location: Melbourne Australia
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Meghwar View Post
SLY LS1 I have Facebook id

i did add the fieldX = my Id and i added all the modification to postbit_legacy and postbit , then follow with members on members info,,,edited and saved added the new fields ot the "Add New User Profile Field" Save and refresh ....nothing happen i double check the info on my userCp ,,,,doesnt view the FACE BOOK modification some thing not right,,, and ist [fieldX] should be my Example: [89749819] id .... thanx

No the [fieldX] should be the number of the field you created, NOT your facebook number, if you go to userfields in your Admin control panel and look for the field you named "Facebook Profile" it will have a field number next to it, you need to change all the X to that field number.

Check through the instructions from the start again and you will work it out.

Your facebook number gets added in your UserCP.

Hope this helps
Reply With Quote
  #10  
Old 10-30-2007, 02:53 AM
youradhere4222 youradhere4222 is offline
 
Join Date: Sep 2007
Location: Houston, TX
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It isn't showing up for me...
Reply With Quote
Reply

Thread Tools

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 08:04 PM.


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.04714 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (2)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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