vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Add-On Releases - Publish VBulletin Stuff to FaceBook (https://vborg.vbsupport.ru/showthread.php?t=206189)

Cobra-J82 02-21-2009 10:00 PM

Publish VBulletin Stuff to FaceBook
 
1 Attachment(s)
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 :p

Chadi 02-22-2009 05:27 AM

Your install instructions are non-existent.

Sweeks 02-22-2009 09:56 AM

Theyre clear enough for me, he just doesnt use a specific example of where to place the code but he does state anywhere :) Installed
________
I Inhale

hobbybox 02-22-2009 12:12 PM

what template do we add this to?

ArnyVee 02-22-2009 01:14 PM

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?

Cobra-J82 02-22-2009 02:04 PM

I hope I am more clear now :p
It was like 2 am when I found how to do this publish thing lol
Please read again and ask if you have a queston

ArnyVee
This is just a simple template edit which will allow your users to publish threads they like to there profile, just like in youtube.com for example, you see there is a facebook button under every video, when you click on it it will share the video on your profile.

ArnyVee 02-22-2009 02:23 PM

Ahh...gotcha Cobra. Thanks for the explanation :D

Cobra-J82 02-22-2009 03:30 PM

Okay Guys I have added a way to exclude certain forums from using the faecbook in thread, its a traditional way I know, i dont know if ther is another way lol, but its workin fine for me.
I have added:

<if condition="$forum[forumid]=='10,20,30'">
<else />


At the begining and:

</if> at the end

Cobra-J82 02-22-2009 03:46 PM

Quote:

Originally Posted by ArnyVee (Post 1751445)
Ahh...gotcha Cobra. Thanks for the explanation :D

Welcome Arny ;)

Forum Lover 02-24-2009 02:14 AM

Tagged. How can I do the same for my vb blog? Thanks in advance. :)


All times are GMT. The time now is 09:14 AM.

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.01144 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)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
  • (10)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