PDA

View Full Version : Miscellaneous Hacks - Facebook Send Button and Google +1 (XML)


LOGECT
05-15-2011, 10:00 PM
Info:

Add Facebook send button and Google +1 (http://www.google.com/+1/button/) Button beside Facebook Like Button

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 (http://www.logect.com/f30/purchase-vbulletin-most-powerful-forum-software-available-1176/)

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/attachment.php?attachmentid=130114&stc=1&d=1308248208



https://vborg.vbsupport.ru/attachment.php?attachmentid=130111&stc=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
Ummm doesn't work over here. LOL

Send Button Works only in (XFBML)

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.

<iframe id="fb_likeframe" src="{vb:raw href}&amp;layout=standard&amp;show_faces=false&amp;width=260&amp;a ction=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 :

xfbml:false
and change it with
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
Thank you all, i'm happy that you like it.


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
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/showthread.php/348372-vBulletin-4.0.3-Maintenance-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
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/attachment.php?attachmentid=129296&stc=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
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:

<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 (https://vborg.vbsupport.ru/member.php?u=274667)


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 :

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

<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
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.

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