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-24-2009 12:02 PM

1 Attachment(s)
Quote:

Originally Posted by Forum Lover (Post 1752885)
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

JohorBahru 04-16-2009 03:56 AM

hi, could I use this for 3.7.6?
thank you :)

Cobra-J82 04-16-2009 11:46 AM

Quote:

Originally Posted by JohorBahru (Post 1792205)
hi, could I use this for 3.7.6?
thank you :)

Yes Sir :)

all-in 04-16-2009 02:03 PM

1 Attachment(s)
Is this the same thing that place the facebook logo at the bottom of each post and allows you to share with fb?

Cobra-J82 04-16-2009 02:15 PM

Quote:

Originally Posted by all-in (Post 1792516)
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).

TNCclubman 04-16-2009 04:40 PM

Quote:

Originally Posted by ArnyVee (Post 1751391)
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)

all-in 04-16-2009 05:44 PM

Okay I have added the code and fb logo but nothing is showing up?

MoveOver.cc 04-17-2009 06:19 PM

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

Thx

DobieGillis? 04-17-2009 06:39 PM

this mod works great. Installed!

nonsolofitness 06-12-2009 10:00 AM

hi, could I use this for 3.6.9?
thank you :)


All times are GMT. The time now is 02:53 PM.

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.01076 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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