vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Facebook Send Button and Google +1 (XML) (https://vborg.vbsupport.ru/showthread.php?t=263717)

LOGECT 05-15-2011 10:00 PM

Facebook Send Button and Google +1 (XML)
 
1 Attachment(s)
Info:

Add Facebook send button and Google +1 Button beside Facebook Like Button

Quote:

The Send Button allows your users to easily send your content to their friends. People will have the option to send your URL in an inbox message to their Facebook friends, to the group wall of any Facebook group they are a member of, and as an email to any email address. While the Like Button allows users to share your content with all of their friends, the Send Button allows them to send a private message to just a few friends.
Live Demo

To get this working don't forget to:
Enable Facebook like button option.
vbulletin options>facebook options>Like button xxx

Note:
Works with v 4.1.3 +


Screenshots:

https://vborg.vbsupport.ru/attachmen...1&d=1308248208



https://vborg.vbsupport.ru/attachmen...1&d=1308247806


Installation:

-Import XML file (as product) through AdminCP: Plugin System > Manage Products > [Add/Import Product]

To set options:
Go to: vBulletin Options > LOGECT - Facebook Send Button and Google +1

Versions:
v1.1 16 June 2011 - Added Google +1 Button
v1.0 15 June 2011 ( XML )

elwachiman 05-16-2011 01:27 PM

installed tnks

Special Pages 05-16-2011 09:10 PM

Ummm doesn't work over here. LOL

LOGECT 05-17-2011 07:04 AM

Quote:

Originally Posted by Special Pages (Post 2196493)
Ummm doesn't work over here. LOL

Send Button Works only in (XFBML)

Quote:

There are two Like button implementations: XFBML and Iframe. The XFBML version is more versatile, but requires use of the JavaScript SDK. The XFBML dynamically re-sizes its height according to whether there are profile pictures to display, gives you the ability (through the Javascript library) to listen for like events so that you know in real time when a user clicks the Like button, and it always gives the user the ability to add an optional comment to the like. If users do add a comment, the story published back to Facebook is given more prominence.
I can see in your Page source that you are using Iframe.

Code:

<iframe id="fb_likeframe" src="{vb:raw href}&amp;layout=standard&amp;show_faces=false&amp;width=260&amp;action=like&amp;font=tahoma&amp;colorscheme=light&amp;height=27" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
Upgrade to vb 4.1.3 or :

Open vbulletin_facebook.js in clientscript folder and search for :

Code:

xfbml:false
and change it with
Code:

xfbml:true

Krusty1231 05-17-2011 10:24 AM

Very handy - Thanks for this!

BlessedFWI 05-17-2011 10:47 AM

This is awesome...thanks!

BlessedFWI 05-17-2011 11:54 AM

Hmmmm, I tired sending a thread link to my Facebook page and it didn't show up. But it does show up when I send it to a group that I am in. :D Anyone else having a problem sending it to your wall?

BlessedFWI 05-17-2011 11:56 AM

OK, nevermind. It sends it as a PM...DUH! My bad! I LOVE IT!!!

Pvtiste 05-17-2011 12:23 PM

Excellent addon! Thanks for sharing :)
5 stars and installed!

cloferba 05-18-2011 01:55 AM

images doesnt show

crazymilk 05-20-2011 06:30 AM

Not showing for me?

Robru 05-20-2011 07:59 AM

Nice mod, thank you!

LOGECT 05-20-2011 09:56 AM

1 Attachment(s)
Thank you all, i'm happy that you like it.


Quote:

Originally Posted by crazymilk (Post 2197902)
Not showing for me?

Did you try to disable this on your navbar and see if it works ?
https://vborg.vbsupport.ru/external/2011/05/29.jpg

I'm not sure that you can use iframe+xfbml in the same page.

hiker 05-20-2011 03:52 PM

I assume this isn't available for vb 4.0.2 since I don't have a 'facebook_likebutton' template?

TheLastSuperman 05-21-2011 08:38 AM

Quote:

Originally Posted by bogley (Post 2198032)
I assume this isn't available for vb 4.0.2 since I don't have a 'facebook_likebutton' template?

FB integration came about in 4.0.3 reference here: http://www.vbulletin.com/forum/showt...enance-Release

If you upgrade then the functionality is built in otherwise you must add it using other methods such as http://developers.facebook.com/

crazymilk 05-21-2011 09:46 AM

Quote:

Originally Posted by LOGECT (Post 2197928)
Thank you all, i'm happy that you like it.




Did you try to disable this on your navbar and see if it works ?
https://vborg.vbsupport.ru/attachmen...1&d=1305888849

I'm not sure that you can use iframe+xfbml in the same page.

Sorry how do I do that? I'm a noob at this

TheLastSuperman 05-21-2011 04:48 PM

Quote:

Originally Posted by crazymilk (Post 2198294)
Sorry how do I do that? I'm a noob at this

If I remember correctly that comes built into that custom style correct? If yes then simply contact the style author and ask where and what code to remove and then you should be good to go!

*I would once you find the code instead of deleting simply wrap it in <vb:comment> example:

Code:

<vb:comment>THIS IS THE CODE THEY SAID TO REMOVE, ADD <vb:comment> BEFORE THE START OF THE CODE AND THEN ADD </vb:comment> AT THE END AND IT "HIDES" or "COMMENTS OUT" THAT CODE IN QUESTION!</vb:comment>
This way if you ever want it back for whatever new reason or disable this new functionality at any later point you can simply delete the <vb:comment> tags and it's back ;).

LOGECT 05-21-2011 05:15 PM

Thanks for you help TheLastSuperman


Quote:

Originally Posted by crazymilk (Post 2198294)
Sorry how do I do that? I'm a noob at this

I think that it's on your navbar template, open your navbar template and search for :

Code:

<div id="breadcrumb" class="breadcrumb">
there should be somethings like that after the code above:

Code:

<div class="social-top"><center><iframe scrolling="no" frameborder="0" class="twitter-share-button twitter-count-horizontal" tabindex="0" allowtransparency="true" src="http://platform0.twitter.com/widgets/tweet_button.html?_=1306001211682&amp;count=horizontal&amp;lang=en&amp;text=BOS%20Forums&amp;url={vb:raw href}" style="width: 110px; height: 20px;" title="Twitter For Websites: Tweet Button"></iframe><script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script><iframe scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:80px; height:21px;" src="http://www.facebook.com/plugins/like.php?href={vb:raw href};&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;colorscheme=light&amp;height=21"></iframe></center></div>

Wordplay 05-25-2011 12:45 PM

how many e-mail addresses can people send to?

Mr_Running 05-27-2011 02:20 AM

Excellent !!! but the one thing about this is that it sends the names and email info of everyone and not just the person receiving it.

Example: Joe, Sally, Bob, you @mail, them @mail, Peter, etc

Is there anyway when it's received that not all the recipients names or emails delivered to the end user.

LOGECT 05-27-2011 01:51 PM

Quote:

Originally Posted by Wordplay (Post 2199772)
how many e-mail addresses can people send to?

I think that is unlimited, but i'm not sure about it.
You will need to ask it on facebook support forums.

Quote:

Excellent !!! but the one thing about this is that it sends the names and email info of everyone and not just the person receiving it.

Example: Joe, Sally, Bob, you @mail, them @mail, Peter, etc

Is there anyway when it's received that not all the recipients names or emails delivered to the end user.
That is correct, you will also need to ask it on facebook support forums :D

8thos 06-01-2011 03:03 AM

Awesome

clubplanet 06-02-2011 09:49 AM

This is great, thanks!

Robru 06-05-2011 09:55 AM

Works good in vBulltin 4.1.4 :)

LOGECT 06-15-2011 11:44 AM

Update: Created an XML product for this mod (Auto-Template).
- Please revert your edited template ( facebook_likebutton ) and Import XML file (as product) through AdminCP: Plugin System > Manage Products > [Add/Import Product]

CoZmicShReddeR 06-15-2011 06:51 PM

The box cuts out or acts strange over youtube video's

tcarter01 06-16-2011 12:26 AM

Modifying facebook_likebutton manually worked. After I reverted back to the original and installed this product, The send button no longer appeared on CMS articles, It does appear on forum posts and blog entries.

This code "$vbulletin->templatecache[$templatename] = str_replace($find, $replace, $vbulletin->templatecache[$templatename]);" leaves the original template unchanged. Is this correct?

-Tony

Mukashi 06-17-2011 09:54 AM

Send works perfectly, however the Google +1 button doesn't seem to be showing up for some reason. Our skin is close to stock, so I don't know why it'd be missing, unless perhaps it's not interacting well with vBSEO.

goxy63 04-12-2012 11:25 AM

Not working good with articles, default FB like button is not displayed within articles if this mod is used.
Disabled for now :(

mgurain 04-28-2012 11:16 AM

After installing it, I can not see my facebook link to my account ?

kartheekb 11-19-2012 12:18 PM

any plans for 4.2


All times are GMT. The time now is 03:28 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.01219 seconds
  • Memory Usage 1,804KB
  • 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
  • (6)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete