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

Reply
 
Thread Tools
Publish VBulletin Stuff to FaceBook Details »»
Publish VBulletin Stuff to FaceBook
Version: 1.00, by Cobra-J82 Cobra-J82 is offline
Developer Last Online: Jul 2020 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.1 Rating:
Released: 02-21-2009 Last Update: Never Installs: 40
Template Edits
 
No support by the author.

I found this share link on facebook that will help your users and urself share threads, posts (Basically where ever you put this code on the VB page they will be able to send it to there Facebook Profile).

http://www.facebook.com/share_partners.php
Click this link and you will know what to do
Just Copy the Code and Put it anywhere on your Vbulletin Page

---------------------------------------------------------------------------------

Here is How to Publish a Thread to FaceBook Keeping the Facebook Publish Button on a First Post of a Thread Only (Follow Steps):-

1-AdminCP
2- Styles & Templates
3- Search in Templates
4- Look for Postbit_legacy or Postbit (Which Ever one you Use)
5- In there look for the code:
Code:
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false">
<img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" />
</a>
</if>
6- Then Add this Code below it:
Code:
<if condition="$forum[forumid]=='10,20,30'">
<else />
<if condition="$post[postcount] == 1">
<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)
+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a href="http://www.facebook.com/share.php?u=
<http://www.YOURSITE.com>" onclick="return fbs_click()" target="_blank">
<img src="http://www.YOURSITE.com/FaceBookIMAGEPATH" alt="Share on facebook" style="border-style: none"/>
</a>
</if>
</if>
The RED Font Indicates the Forums You wish to EXCLUDE
(lol traditional way I dont know if there is any other way)
The GREEN Font Needs to be changed too
Save and you are done.

My photoshop knowledge is limited but I would be happy to help you create one, just send me how you want it to be and I will try to create one for you

In the Screenshot you can see how the facebook button is after the quickreply button now.

---------------------------------------------------------------------------------

My forum has VB 3.8.1 on it.
Have a Good Day
Mark AS Installed would be Nice

Screenshots

File Type: jpg copy.JPG (16.6 KB, 0 views)
File Type: jpg screen.JPG (81.1 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 02-24-2009, 12:02 PM
Cobra-J82's Avatar
Cobra-J82 Cobra-J82 is offline
 
Join Date: Apr 2008
Location: Montreal
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Forum Lover View Post
Tagged. How can I do the same for my vb blog? Thanks in advance.

----------------------------------------------------------------------------------------------
This will Place the Facebook Icon after you Blog Title
Steps:
1- AdminCP
2- Styles & Templates
3- Search in Templates
4- Look For blog_show_entry
5- In there look for the code
Code:
</h1>
6-Add the following code BFEFORE it
<if condition="$post[postcount] == 1">
Code:
<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)
+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a href="http://www.facebook.com/share.php?u=
<http://www.YOURSITE.com>" onclick="return fbs_click()" target="_blank">
<img src="http://www.YOURSITE.com/FaceBookIMAGEPATH" alt="Share on facebook" style="border-style: none"/>
</a>
The GREEN Font Needs to be changed
----------------------------------------------------------------------------------------------
If you wana place it beside the icon which emails the blog entry
In the same template blog_show_entry
Look for:
Code:
<if condition="$show['emailentry']">
<a href="blog.php?$session[sessionurl]do=sendtofriend&amp;b=$bloginfo[blogid]">
<img src="$stylevar[imgdir_misc]/blog/email_go.gif" border="0" class="inlineimg" alt="$vbphrase[email_blog_entry]" />
</a>
</if>
After That add:
Code:
<script>function fbs_click() {u=location.href;t=document.title;window.open
('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)
+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436
');return false;}</script><a href="http://www.facebook.com/share.php?u=<
http://www.YOURSITE.com>" onclick="return fbs_click()" 
target="_blank"><img src="
http://www.YOURSITE.com/FaceBookIMAGEPATH" border="0" class="inlineimg" 
alt="Share on facebook" style="border-style: none"/></a>
The GREEN Font Needs to be changed
----------------------------------------------------------------------------------------------
Take Note that there is a slight difference between the code added beside the title and the one added beside the email entry.
Cheers
Attached Images
File Type: jpg Top.JPG (14.0 KB, 0 views)
File Type: jpg buttom.JPG (23.6 KB, 0 views)
Reply With Quote
  #13  
Old 04-16-2009, 03:56 AM
JohorBahru JohorBahru is offline
 
Join Date: Jan 2009
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi, could I use this for 3.7.6?
thank you
Reply With Quote
  #14  
Old 04-16-2009, 11:46 AM
Cobra-J82's Avatar
Cobra-J82 Cobra-J82 is offline
 
Join Date: Apr 2008
Location: Montreal
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JohorBahru View Post
hi, could I use this for 3.7.6?
thank you
Yes Sir
Reply With Quote
  #15  
Old 04-16-2009, 02:03 PM
all-in all-in is offline
 
Join Date: Apr 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this the same thing that place the facebook logo at the bottom of each post and allows you to share with fb?
Attached Images
File Type: jpg fb.jpg (16.7 KB, 0 views)
Reply With Quote
  #16  
Old 04-16-2009, 02:15 PM
Cobra-J82's Avatar
Cobra-J82 Cobra-J82 is offline
 
Join Date: Apr 2008
Location: Montreal
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by all-in View Post
Is this the same thing that place the facebook logo at the bottom of each post and allows you to share with fb?

Exactly
Plus you can put the Facebook link whereever u want on ur Vbulletin (Blog, Video Directory, Downloads).
Reply With Quote
  #17  
Old 04-16-2009, 04:40 PM
TNCclubman's Avatar
TNCclubman TNCclubman is offline
 
Join Date: Sep 2008
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ArnyVee View Post
Okay, so is this just another way to 'import' a 'feed' into Facebook? I have my RSS feed already going to my Facebook account and it comes through as a note.

What else does this do?
How do you do that (feed from vB into FB as a note)
Reply With Quote
  #18  
Old 04-16-2009, 05:44 PM
all-in all-in is offline
 
Join Date: Apr 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I have added the code and fb logo but nothing is showing up?
Reply With Quote
  #19  
Old 04-17-2009, 06:19 PM
MoveOver.cc MoveOver.cc is offline
 
Join Date: Dec 2005
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible so that the message will go automatically to facebook.

Thx
Reply With Quote
  #20  
Old 04-17-2009, 06:39 PM
DobieGillis? DobieGillis? is offline
 
Join Date: Feb 2009
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this mod works great. Installed!
Reply With Quote
  #21  
Old 06-12-2009, 10:00 AM
nonsolofitness nonsolofitness is offline
 
Join Date: Apr 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi, could I use this for 3.6.9?
thank you
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 01:42 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.04748 seconds
  • Memory Usage 2,350KB
  • Queries Executed 26 (?)
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
  • (6)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete