Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Facebook button in Postbit Details »»
Facebook button in Postbit
Version: 1.00, by tommyturnage tommyturnage is offline
Developer Last Online: Feb 2018 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.2.2 Rating:
Released: 06-22-2015 Last Update: Never Installs: 11
Template Edits
 
No support by the author.

This is a mod that I saw from 3.6.8

I really liked it, but the codes were a little off for vbulletin 4.2.
So here are the updated codes


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:
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
				</div>
			</vb:if>
After Add:
Code:
<vb: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>
</vb:if>
3. Button Upload

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

4. Enjoy!

Screenshots

File Type: png Untitled.png (25.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Alan_SP, Macgiber

Comments
  #2  
Old 06-24-2015, 06:42 AM
ramesh_umk3 ramesh_umk3 is offline
 
Join Date: Jul 2010
Location: Earth
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you could have given code for googleplus, twitter, pinrest it will be handy for users
Reply With Quote
  #3  
Old 06-24-2015, 03:46 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could easily use this code to produce links to whichever site you wish. Code is pretty obvious.
Reply With Quote
  #4  
Old 06-25-2015, 02:46 PM
ezak ezak is offline
 
Join Date: Nov 2004
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks installed

but some modify to be compatible with vb 4.2.3

Code:
<vb:if condition="$post['fieldX']">
<a href="http://www.facebook.com/profile.php?id={vb:raw post.fieldX}" alt="View my Facebook" target="_blank">
<img src="images/misc/im_facebook.gif" border="0"></a>
</vb:if>
Reply With Quote
  #5  
Old 09-30-2015, 08:29 PM
vBarsiv vBarsiv is offline
 
Join Date: Jul 2010
Location: Turkey / Manisa
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For vB 4.2.3 that's better

PHP Code:
<br />
<
vb:if condition="$post['field14']">
<
b>Facebook Sayfam :</b> <a href="{vb:raw post.field14}" alt="Facebook Profilim" target="_blank">
<
img src="images/misc/vBa_facebook.gif" border="0"></a>
</
vb:if> 
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 12:56 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.04564 seconds
  • Memory Usage 2,262KB
  • Queries Executed 21 (?)
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
  • (3)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (2)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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