View Full Version : Add New Facebook "Like" button to your threads
ericgtr
22 Apr 2010, 15:50
Please remember to click Mark as Installed if you use this modification.
Facebook has just launched their latest "Like" button to developers to use on any site. What this does is utilizes the Advertising module to add the "Like" button to the first post of each thread. Please see screenshots to get an idea.
In your Admin CP go to Advertising > New Ad > Choose "Thread" from the dropdown and then select the first thread box. Give it a title (I called mine FB Like) leave "First Post Content" at default and paste in this code:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Be sure to change YOURSITE.com to your URL including your forum.
The VBSEO team has instructions on how to make this work for their product here http://www.vbseo.com/f2/facebook-like-button-vbulletin-42695/#post265997
===========================================
Option 2 (different from above, do not use together) will show at top, see screenshot #3
In Postbit (or legacy) find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add this after:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
For additional information on this button and different parameters please visit http://developers.facebook.com/docs/reference/plugins/like
=================================================
For those who have asked, here is the modification adds both the "Like" button and comments to a users profile http://www.vbulletin.org/forum/showthread.php?t=239424
=================================================
Additional locations to place this code:
For CMS, in vbcms_content_article_page add the code below this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
For pictures, in template album_pictureview add the code below this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
For Blog, in template blog_show_entry add at the very top.
saviola8x
22 Apr 2010, 16:17
Fix with me ! Demo : http://s2facebook.com/forum/showthread.php?854
Open Postbit temp search
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add below :
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Done.
pjdaley
22 Apr 2010, 16:29
I also get "error"
The page at http://mysitehere.net/showthread.php?t could not be reached.
Also it seems not to work with VBSeo
Doctor Death
22 Apr 2010, 16:38
Would be great to have a dislike button as well.
Can it also be tagged to each post in a thread or can it only deal with first post?
saviola8x
22 Apr 2010, 16:50
Can it also be tagged to each post in a thread or can it only deal with first post?
Wherever you want. :up:
trackpads
22 Apr 2010, 17:35
I changed the width to =50 so that it didnt push the content around
trackpads
22 Apr 2010, 17:35
Suggestion: Can you create a hack like this so users can like members profiles?
ericgtr
22 Apr 2010, 17:49
To anyone getting a submit error, be sure your URL is correct. Also, I have not tested with vbseo and it will most likely need to be re-worked for that.
@trackpads I will look into that, I'm sure the parameters will have to be modified for that page.
PixelFx
22 Apr 2010, 17:54
looks like sweet addon thanks :D
wacnstac
22 Apr 2010, 18:21
Can this also be used with 3.8.X?
pjdaley
22 Apr 2010, 18:26
Very cool little add-on, but will need to re-work it to work with vbSEO
installed+rating good job :)
dirtycrow
22 Apr 2010, 18:45
i get an error =
The page at http://%5BB%5Dhttp//forums.orderofthecrow.org/%5B/B%5Dshowthread.php?82234-convention-2010-cape-cod-edition could not be reached.
dirtycrow
22 Apr 2010, 18:47
i get an error =
nvm, i think i got it to work.
dirtycrow
22 Apr 2010, 18:49
Very cool little add-on, but will need to re-work it to work with vbSEO
installed+rating good job :)
i agree 100 percent. with out the thread title of what you are liking its not descriptive enough to get people to visit.
ericgtr
22 Apr 2010, 18:49
Can this also be used with 3.8.X?
As it stands it will not work with 3.8 because the variable names have changed. I do not have a 3.x board to test on anymore.
ericgtr
22 Apr 2010, 18:52
Very cool little add-on, but will need to re-work it to work with vbSEO
installed+rating good job :)
i agree 100 percent. with out the thread title of what you are liking its not descriptive enough to get people to visit.
Understood, let's see if we can get this working with VBSEO by presenting this question to them, we need to convert this to VBSEO:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Please see if you can get one of their people to answer this and we can then add a VBSEO version of this mod here.
wacnstac
22 Apr 2010, 18:53
If someone could supply the variable names to make this work on 3.8.X I'd really appreciate it.
wacnstac
22 Apr 2010, 19:07
Even taking the stock "share" IFRAME from facebook, is giving me an error right now. Perhaps their system is overloaded?
Da-Vinci
22 Apr 2010, 19:07
Using the code from the 2nd post mine looks like this with VBSEO installed. and I think it's a pretty cool mod.
Obviously I'm using Adsense so it makes more sence to have the like button beneath the title, but I've found no problems with VBSEO.
http://www.hostmypics.org/pictures/47a582d1b7772ed42c9669d39c6288bd.png
One question, I have though is there a conditional, I can use to exclude certain forums?
ericgtr
22 Apr 2010, 19:12
Even taking the stock "share" IFRAME from facebook, is giving me an error right now. Perhaps their system is overloaded?
If it has the red "error" upon clicking then it most likely means the URL path isn't setup correctly. I would double check it.
Understood, let's see if we can get this working with VBSEO by presenting this question to them, we need to convert this to VBSEO:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Please see if you can get one of their people to answer this and we can then add a VBSEO version of this mod here.
I've taken the question to the devs.. it's odd. The link shows as the standard vB variable url inside the fb stuff, whether you use iframe or the js version.
Obviously the error is there to prevent people from having what they like link back to the wrong thing, but it's a tad annoying that it doesn't work with the way vbseo does it.
Does it work with the vB4 SEO options?
ericgtr
22 Apr 2010, 19:34
I've taken the question to the devs.. it's odd. The link shows as the standard vB variable url inside the fb stuff, whether you use iframe or the js version.
Obviously the error is there to prevent people from having what they like link back to the wrong thing, but it's a tad annoying that it doesn't work with the way vbseo does it.
Does it work with the vB4 SEO options?
I'm afraid I don't have vbseo to test it on so I can't say. But yeah, like you say it checks the URL before it allows it which is good and bad I guess depending on how you look at it. The benefit to me for iframe is that it won't affect the board if it's slow for any reason.
giorgino
22 Apr 2010, 20:13
Using the code from the 2nd post mine looks like this with VBSEO installed. and I think it's a pretty cool mod.
Obviously I'm using Adsense so it makes more sence to have the like button beneath the title, but I've found no problems with VBSEO.
http://www.hostmypics.org/pictures/47a582d1b7772ed42c9669d39c6288bd.png
One question, I have though is there a conditional, I can use to exclude certain forums?
Great effect! How you have done? Can you give me the code please?
Da-Vinci
22 Apr 2010, 20:32
Yes it's in the 2nd post of this thread.
http://www.vbulletin.org/forum/showpost.php?p=2025432&postcount=2
Maybe the VBSEO problem is to do with the type of url rewrite you use, I use 002 - Hierarchic directory type URLs with content relevant threads (used at www.vBSEO.com) for my forumURL's, but obviously if your using a different type of URL rewrite it's not something you want to change.
Also not wanting to be a pest but can anybody answear this?
Is there a conditional, I can use to exclude certain forums?
The reason being we have a few private forums which I would prefer not to be displayed on Facebook, and although I can tell the members who have access to said forums not to click the Like button in the said sections, you will always get one or two, who will.
Nice mod. Will install it soon. I was waiting for this since the news of Facebook discontinuing the Facebook Connect soon.
On multi-page threads, it will put up the like text/icons at the top of every page.
Less than ideal, I'd like to see it only on page 1/post 1 of a thread...
Fix with me ! Demo : http://s2facebook.com/forum/showthread.php?854
Open Postbit temp search
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add below :
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Done.
giorgino
22 Apr 2010, 20:58
Yes it's in the 2nd post of this thread.
http://www.vbulletin.org/forum/showpost.php?p=2025432&postcount=2
Maybe the VBSEO problem is to do with the type of url rewrite you use, I use 002 - Hierarchic directory type URLs with content relevant threads (used at www.vBSEO.com) for my forumURL's, but obviously if your using a different type of URL rewrite it's not something you want to change.
Also not wanting to be a pest but can anybody answear this?
Is there a conditional, I can use to exclude certain forums?
The reason being we have a few private forums which I would prefer not to be displayed on Facebook, and although I can tell the members who have access to said forums not to click the Like button in the said sections, you will always get one or two, who will.
Great work perfectly with vBSeo (with 002 rules like you). Thank you very much! :)
Da-Vinci
22 Apr 2010, 21:03
Cool glad it's worked for you, but I take no credit for any of the work, I just used what was available to me.
ericgtr
22 Apr 2010, 21:05
On multi-page threads, it will put up the like text/icons at the top of every page.
Less than ideal, I'd like to see it only on page 1/post 1 of a thread...
Here's the way around that:
In Postbit (or legacy) find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add this after:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This will only show on the first post no matter how many pages there are.
Excellent, eric. Thank you SO much. I'll just add an additional conditional to exclude some forums and we should be all set!
ericgtr
22 Apr 2010, 21:14
Excellent, eric. Thank you SO much. I'll just add an additional conditional to exclude some forums and we should be all set!
For reference, here is the code for it to only "show" in selected forums:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Nice mod. Will install it soon.
Nevermind, couldn't wait. Had to install it now. :D
Working perfectly!
SuperGLS
22 Apr 2010, 21:19
Very cool! I've done in like it post 29 and edited it so that the height=30 instead of 75 and it looks really good.
Would you put that forum conditional right underneath the code from post 29?
SuperGLS
22 Apr 2010, 21:22
Here's a screenshot.
http://www.elantraxd.com/vb4images/facebooklike.png
Any luck with vbseo, none work for me:
I get errors like:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with http obv.
ericgtr
22 Apr 2010, 22:26
Any luck with vbseo, none work for me:
I get errors like:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with http obv.
Have you tried the code posted up in the second post of this thread?
TimberFloorAu
22 Apr 2010, 22:34
Works a treat thanks Eric
TimberFloorAu
22 Apr 2010, 22:46
Shouldnt :
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')"
be
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
Da-Vinci
22 Apr 2010, 22:56
For reference, here is the code for it to only "show" in selected forums:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Thank you Eric, but as for the conditional, is there not a way to just exclude certain forums rather than only show to certain forum as I have many many forums and sub forums that I would like to display the Like button on and only say 4 forums and 7 subforums I would like to exclude lol. I am just finding my way around conditional at the moment and will try to refer to the article that details the conditional to work this one out on my own, but any help is greatly appreciated.
Shouldnt :
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')"
be
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
I don't want to look stupid here but are those 2 conditionals not identical?
TimberFloorAu
22 Apr 2010, 23:12
No he forgot closing bracket ">"
Uberguilds
22 Apr 2010, 23:31
Postbit_Legacy:
With VBSEO
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Without VBSEO
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
puertoblack2003
22 Apr 2010, 23:35
this is nice and clean.It'll be nice to have something but for twitter:)
RedTrinity
23 Apr 2010, 00:35
I suppose there is no way to have this mod show the member's forum username, instead of their real name from FB?
ericgtr
23 Apr 2010, 00:51
I suppose there is no way to have this mod show the member's forum username, instead of their real name from FB?
Unfortunately not.
TimberFloorAu
23 Apr 2010, 01:45
Code as follows mate:
<vb:if ........>
<--facebook code-->
</vb:if>
Uberguilds
23 Apr 2010, 01:48
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
PixelFx
23 Apr 2010, 02:06
I had the error for setup .. found putting www.domain.com/forum/ .. in websitehere link above fixed the error for me. Tried both ad version and postbit version.
anyway awesome mod thanks for the work getting this out so fast.
wacnstac
23 Apr 2010, 02:54
So I got this working with 3.8.X and and able to click the like button and the numeric value goes up, but nothing every gets posted to my fb wall. What gives?
ericgtr
23 Apr 2010, 02:56
So I got this working with 3.8.X and and able to click the like button and the numeric value goes up, but nothing every gets posted to my fb wall. What gives?
Sorry, as stated I cannot test on 3.8 because I no longer have that version, chances are the URL is not correct though, to double check view the source of your page to see the output URL.
ericgtr
23 Apr 2010, 02:57
Sorry, as stated I cannot test on 3.8 because I no longer have that version, chances are the URL is not correct though, to double check view the source of your page to see the output URL.
For those who have asked about adding this to user profiles please see this mod http://www.vbulletin.org/forum/showthread.php?t=239424 which adds both the "Like" button and a comments box.
worried
23 Apr 2010, 05:07
Thank you TimberFloorAu and Uberguilds for posting your code. Unfortunately, I couldn't get either to work. I can get the mod to work by itself except everytime I try to exclude forums it doesn't work. I've tried all different ways:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I bet I'm doing something simple that's wrong. I just don't see it.
Postbit_Legacy:
With VBSEO
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Without VBSEO
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This is a 4.0 mod. The bit in bold and big kind of jumps out as being totally incorrect..
ericgtr
23 Apr 2010, 05:27
Thank you TimberFloorAu and Uberguilds for posting your code. Unfortunately, I couldn't get either to work. I can get the mod to work by itself except everytime I try to exclude forums it doesn't work. I've tried all different ways:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I bet I'm doing something simple that's wrong. I just don't see it.
I bet they have to be combined, I don't have time to look at it tonight but I'll play with it some tomorrow.
Da-Vinci
23 Apr 2010, 05:46
No he forgot closing bracket ">"
Ah now I see it, give me a slap, I'll keep my mouth shut next time lol.
Thanks TimberFloorAu and everybody who has tweaked this, not forgetting EricGTR, I really like this mod and think overall, it's far better than Facebook Connect, I just hope Facebook don't decide to discontinue this like they the did with Facebook Connect.
worried
23 Apr 2010, 05:51
There is supposed to be a bug in 4.0.0 - 4.0.2 in which ads won't diplay at all if you set them for certain forums: http://www.vbulletin.com/forum/project.php?issueid=34416&page=2
It's supposed to be fixed in 4.0.3 which I'm using yet I can't get it to work.
Here's an adaptation I made for 3.8.x: http://www.vbulletin.org/forum/showthread.php?t=241053
Cheers.
I just changed to option 2. Much better. Option 1 was wrapping my text strange, leaving big gaps.
How is the code for the CMS?
TimberFloorAu
23 Apr 2010, 07:22
Option 2 to hide specific forums.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Dont forget if your forum is in folder [forum] change the above code to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
The code
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This displays this MOD in these forum ID's
The code
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Displays only in first post
To show in only ONE forum:
Replace
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
use this
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Change x to the forum id of the forum you want this mod to display in.
AURFSCAN
23 Apr 2010, 08:10
Option 2 to hide specific forums.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Dont forget if your forum is in folder [forum] change the above code to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
The code
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This displays this MOD in these forum ID's
The code
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Displays only in first post
To show in only ONE forum:
Replace
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
use this
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Change x to the forum id of the forum you want this mod to display in.
confusing..the display and hide are both the same?
how do you combine these conditions?
show in forum
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
thx
TimberFloorAu
23 Apr 2010, 09:11
confusing..the display and hide are both the same?
how do you combine these conditions?
show in forum
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
thx
Quite easily.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Bellinis
23 Apr 2010, 09:50
One thing I don't understand yet: will this button also show up for users not using facebook/facebook connect?
For people not using FB, this like-button has no use, has it?
Ranger375
23 Apr 2010, 12:37
Is there a way to use option 2, but have it so that it doesnt show the names of the people who like the post?
worried
23 Apr 2010, 12:42
Quite easily.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
TimberFloorAu, could you do me a favor and test your script on your forum. It's not working for me.
ericgtr
23 Apr 2010, 14:18
One thing I don't understand yet: will this button also show up for users not using facebook/facebook connect?
For people not using FB, this like-button has no use, has it?
Correct, but with 400 million people using FB most who visit forums will probably already have it.
Lizard King
23 Apr 2010, 15:16
vBSEO owners can use the following fix http://www.vbseo.com/f2/facebook-like-button-vbulletin-42695/#post265997 to get this mode compatible with vBSEO
War.Frog
23 Apr 2010, 15:25
I'm not really concerned with the private forums - when I create a Like link in one of those, it just says I like my domain (XXX likes www.domain.com). Not an overly bad thing IMO!
ericgtr
23 Apr 2010, 15:30
vBSEO owners can use the following fix http://www.vbseo.com/f2/facebook-like-button-vbulletin-42695/#post265997 to get this mode compatible with vBSEO
Thanks! Updated the first post with this.
dirtycrow
23 Apr 2010, 15:31
OK, so i don't have VBseo installed, i've tried with both "basic Friendly URLs" and "advanced Friendly URLs" in my Server Settings and Optimization Options panel in the admin cp and on my facebook wall it displayed "likes (the forum name)" as opposed to "like (thread title) on (forum name).
is this how its supposed to work? it there something i'm missing to get the title of the thread to display? please advise.
dirtycrow
23 Apr 2010, 15:33
i run a private forum, is that why my thread title are not being shown? my forum is set up so you have to have an account before you see any content.
ericgtr
23 Apr 2010, 15:54
OK, so i don't have VBseo installed, i've tried with both "basic Friendly URLs" and "advanced Friendly URLs" in my Server Settings and Optimization Options panel in the admin cp and on my facebook wall it displayed "likes (the forum name)" as opposed to "like (thread title) on (forum name).
is this how its supposed to work? it there something i'm missing to get the title of the thread to display? please advise.
To be clear, this modification is setup to work with out of the box VB without VBSEO, that takes a separate plugin to work. As for it now showing the titles properly I would make sure that you don't have any other SEO mods/plugins running.
ericgtr
23 Apr 2010, 15:56
i run a private forum, is that why my thread title are not being shown? my forum is set up so you have to have an account before you see any content.
That will do it, remember that FB has to be able to read the thread as a guest in order to display its title.
dirtycrow
23 Apr 2010, 16:01
That will do it, remember that FB has to be able to read the thread as a guest in order to display its title.
damn. no work around huh?
NFLfbJunkie
23 Apr 2010, 16:05
I inserted the code so that the FB Like will only show in certain forums, but it continues to show in all forums. I have seen this code in two different ways in this thread. Is either one correct.
<vb:if condition="in_array($forum['forumid'], array(2,14))">Show this to forum 2 and 14</vb:if>
<vb:if condition="in_array($forum['forumid'],array(2,14))">
This is what I have and it doesn't just show these two forums:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
One thing I don't understand yet: will this button also show up for users not using facebook/facebook connect?
For people not using FB, this like-button has no use, has it?
Maybe my screenshots will help. If you're not logged into facebook, you'll see this:
http://www.bogley.com/forum/attachment.php?attachmentid=33334&stc=1&d=1272003191
And when you are logged into facebook, you'll see this:
http://www.bogley.com/forum/attachment.php?attachmentid=33333&stc=1&d=1272003174
Obviously, the above examples are using Option 2.
Option 1 would look like this, and I didn't like the way it was wrapping the text.
http://www.bogley.com/forum/attachment.php?attachmentid=33327&stc=1&d=1272003056
And here's option 2 on the same thread:
http://www.bogley.com/forum/attachment.php?attachmentid=33328&stc=1&d=1272003108
Is there a way to use option 2, but have it so that it doesnt show the names of the people who like the post?
change
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
worried
23 Apr 2010, 21:54
Marked as unistalled. Although there seems to be no danger, it serves no purpose in a inaccessible forum.
EDIT: Installed. Having the code to specify forums changed my mind
dirtycrow
23 Apr 2010, 22:02
damn. no work around huh?
why doesn't it pull from the URL in private forums? the url's are supposed to be SEO friendly after all.
ericgtr
23 Apr 2010, 22:03
why doesn't it pull from the URL in private forums? the url's are supposed to be SEO friendly after all.
Because FB cannot access the URL as a guest. Try to think of FB as a guest on your site, if a guest cannot access a forum it cannot see the title.
AURFSCAN
23 Apr 2010, 22:13
ONLY DISPLAY IN CERTAIN FORUMS
29 and 133 being the forum ids you want this to show in.. more forums would be 29,44,123,49 etc
its not $forum[forumid] its $thread[forumid] :)
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
TimberFloorAu
23 Apr 2010, 22:20
I disagree.
From my knowledge of conditionals, even with multiple and / if / else statements inline. To display in particular forums the correct conditional is:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
AURFSCAN
23 Apr 2010, 22:21
$forum does not work for me
this does
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
AURFSCAN
23 Apr 2010, 22:23
just try $thread
CoZmicShReddeR
23 Apr 2010, 22:49
On dark themes the part where it says "likes this.Be the first of your friends to like this." is too hard to read... Is there a way to color code that to a lighter color?
TimberFloorAu
23 Apr 2010, 23:30
Its an iframe, so apply a class to a div. Then add that class to your css
worried
24 Apr 2010, 01:33
$forum does not work for me
this does
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Thanks! That works! I modified that line of code for my forum
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
ericgtr
24 Apr 2010, 14:02
On dark themes the part where it says "likes this.Be the first of your friends to like this." is too hard to read... Is there a way to color code that to a lighter color?
Try changing colorscheme=light to colorscheme=dark in the code.
Also, please click Install if you use this. :)
Ranger375
24 Apr 2010, 19:44
change
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Thanks for the response, but it is still showing names for some reason..
Uberguilds
24 Apr 2010, 20:12
I had to take this off my site.
The button loads slow and cracks out some people's browsers. I have it on for every post, which is pretty much the only thing I have use for it. Problem on Facebook's end.
=(
ericgtr
24 Apr 2010, 20:16
I had to take this off my site.
The button loads slow and cracks out some people's browsers. I have it on for every post, which is pretty much the only thing I have use for it. Problem on Facebook's end.
=(
FB has been really slow for me but since this is iframe it still doesn't slow the site down but may affect the formatting a little bit. I think they are making site updates and it probably won't last too long.
MedellinStyle
25 Apr 2010, 23:30
Hi
I want to ask, the script works fine, it displays fine on peoples wall on facebook, but in VBULLETIN, different to how many people clicks on LIKE, it still displays , LIKE 1.
Only 1 not acumulate, any help would be appreciated , thanks!
ericgtr
26 Apr 2010, 00:18
Hi
I want to ask, the script works fine, it displays fine on peoples wall on facebook, but in VBULLETIN, different to how many people clicks on LIKE, it still displays , LIKE 1.
Only 1 not acumulate, any help would be appreciated , thanks!
It only shows how many of your friends clicked on it.
Please click install. :)
YankForum
26 Apr 2010, 14:03
tnx installed
AndrewSpearin
26 Apr 2010, 15:06
I have this installed and working fine for forum posts, but how do I go about adding it for CMS articles, blog posts, and albums/pictures?
ericgtr
26 Apr 2010, 15:24
I have this installed and working fine for forum posts, but how do I go about adding it for CMS articles, blog posts, and albums/pictures?
Here's some suggestions.
For CMS, in vbcms_content_article_page add the code below this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
For pictures, in template album_pictureview add the code below this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This gives you the idea, I haven't added it to the blog yet but it's just a matter of locating the right template.
AndrewSpearin
26 Apr 2010, 16:58
Thanks, I added this code:
<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.npac.ca/2010/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}&layout=button_count&show_faces=false&width=450&action=like&color scheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:30px"></iframe>
<!-- / Facebook Like -->
in: vbcms_content_article_page
after: <vb:if condition="$comment_block"> ... </vb:if>
Example: http://npac.ca/2010/content.php/121-QA-with-Rod-MacIvor
I click like, it shows up with the proper article title on my Facebook profile, however it links to the corresponding forum post for the article: http://www.npac.ca/2010/showthread.php/17-Article-Q-amp-amp-A-with-Rod-MacIvor
The 'like' does appear in both the forum post and article though.
How can I make it link straight back to the article? I'm not familiar with the {vb:link} stuff, so I don't really know what else to try instead.
Thanks again for your help!
movslow
26 Apr 2010, 17:25
FYI, I had the error, and realized you need the trailing / on the end of the url.
Added that, worked liked a charm, this was in Postibit Legacy.
fluidswork
27 Apr 2010, 03:49
Awesome mod i will try it ..............
Is possible to add like thanks button or same locations?
I want code for button count 16x16
could you provide me code
hoadiem
28 Apr 2010, 00:14
will this work with 4.0.3
Ranger375
28 Apr 2010, 16:50
yeah it works with 4.0.3
Red Spider
30 Apr 2010, 10:47
im struggling to get this working correctly as per the screenshots in OP.
When i click "like" it on my fb newsfeed it just says "xxx likes xxx forum"... does NOT say "xxx likes xxx on xxx forum" as per the screenshot. any help?
Crazyfruitbat
30 Apr 2010, 14:36
that works great in postbit legacy - front page articles would be great now
ericgtr
30 Apr 2010, 16:26
im struggling to get this working correctly as per the screenshots in OP.
When i click "like" it on my fb newsfeed it just says "xxx likes xxx forum"... does NOT say "xxx likes xxx on xxx forum" as per the screenshot. any help?
That usually means something isn't right with your forum path, I would double check it.
that works great in postbit legacy - front page articles would be great now
I have a location for that a little while back here http://www.vbulletin.org/forum/showpost.php?p=2027633&postcount=95
have installed this. cheers.
how do you include tweets like in my attached image?
any way to display "Be the first of your friends to like this." in a different language ? like spanish or french. What i am trying to say is when a user changes the Forum Language from the bottom of the page, the phrase "Be the first of your friends to like this." should change accordingly.
(installed) thanks!
RockstarNetwork
01 May 2010, 20:28
Here's some suggestions.
For CMS, in vbcms_content_article_page add the code below this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
For pictures, in template album_pictureview add the code below this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This gives you the idea, I haven't added it to the blog yet but it's just a matter of locating the right template.
This doesn't seem to work for me. No like button appears in the CMS article. I tried changing "THIS_SCRIPT == showthread" to "THIS_SCRIPT == content" with no luck either.
Any tips?
It worked for me, I have VB 4.0.3
RockstarNetwork
02 May 2010, 00:38
Okay I got it to work by removing the first and last lines containing the "<vb:if..." and "</vb:if>" code. Now to reposition it somewhere that's a bit more appealing...
Also, I'm having the same issue as on the previous page where it links to the forum thread for the article instead of the article itself. Any ideas on how to change that?
Edit: Resolved the above with this code in the cms article template:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
salvador21
02 May 2010, 15:27
Here's some suggestions.
For CMS, in vbcms_content_article_page add the code below this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This didn't work for me, it's fine on forum threads though (in the postbit legacy template)
EDIT: and rockstarnetworks code isn't working either.
Also, any idea how to get it working in blogs?
How do i get this for my articles and user blogs (cms)
that makes even more sense than just in the forum...
ericgtr
03 May 2010, 15:27
This didn't work for me, it's fine on forum threads though (in the postbit legacy template)
EDIT: and rockstarnetworks code isn't working either.
Also, any idea how to get it working in blogs?
How do i get this for my articles and user blogs (cms)
that makes even more sense than just in the forum...
I've updated the first post to give the locations frequently asked here, these include photo albums, blogs and vbcms.
maipoman
04 May 2010, 18:19
But when you add this to a vbcms article, the link that is posted on Facebook is the one to vBCms Comments forum, not the article itself. Is there a way to fix this?
RockstarNetwork
05 May 2010, 00:35
But when you add this to a vbcms article, the link that is posted on Facebook is the one to vBCms Comments forum, not the article itself. Is there a way to fix this?
See my post #110 above to fix this.
maipoman
05 May 2010, 07:02
See my post #110 above to fix this.
Thank you, that worked like a charm! :)
Jabong82
05 May 2010, 08:32
Hey great Mod. I want to use this on my blog, but I think I need to modify the code?
I tried to use the post bit legacy version and did this:
<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURSITE.com/{vb:link blog, {vb:raw blog}}&layout=standard&show_faces=true&width=450&action=like&font=tahoma&colorsc heme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
<!-- / Facebook Like -->
Using this code it posts to facebook however the title is wrong, and it doesn't go to the specific blog, but rather all of the users blogs.
Is there a way to use the PostBit Legacy version you posted of the mod but make it work for blogs in the exact same way? (ie. posts blog title on FB and connects to the right blog?).
I know your other mod where you add the FB comment box has a "like" button that accomplishes this. I would like that basically without the cumbersome comment box (only like button).
Thanks in advance.
gyaronn
05 May 2010, 13:08
How can i add this to my CMS 2 ?
ericgtr
05 May 2010, 14:34
How can i add this to my CMS 2 ?
This code can be used pretty much anywhere, so it's just a matter of finding a location in your template for it. Not sure about CMS2 but what I normally do is find the template then look for keywords on the page that correspond to that template for placement ideas.
gyaronn
05 May 2010, 20:45
ok and another question i am traying to make a Like Box from facebook as a widget at my web site (www.fmsas.org) by using this code :
<iframe src="http://www.facebook.com/plugins/likebox.php?profile_id=189546965717&width=226& amp;height=295&connections=6&stream=false& amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:226px; height:295px;" allowTransparency="true"></iframe>
but for some reason it does not work can any one help me?
ericgtr
05 May 2010, 21:14
ok and another question i am traying to make a Like Box from facebook as a widget at my web site (www.fmsas.org) by using this code :
but for some reason it does not work can any one help me?
I just took a look and can't see why that's happening either, I even tested your code here http://developers.facebook.com/docs/reference/plugins/like-box I wonder if there is a problem with that right now on their end.
gyaronn
05 May 2010, 21:27
should it be an static HTML or something deferent ?
gyaronn
05 May 2010, 21:32
ok got it working the idiots on FB wrote the wrong code dont know how i did not see it before :-(
they wrote: profile_id=XXXX but its not a profile so if you delete the "profile" and stay with id=XXXX than it works perfect :-)
this is the corect code to use (you need to change the XXXXXXXX to the page id):
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
you can see an example at my site :-)
Vodkaholic
06 May 2010, 15:04
Awesome!
I hate facebook but soo many use it. Its free SEO!! Thanks<33
edit does not work on Albums
even with the changed code
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
As soon as i click it it shows my image than bang a second later its gone
salvador21
07 May 2010, 17:50
I've updated the first post to give the locations frequently asked here, these include photo albums, blogs and vbcms.
Thanks but it still isn't working in CMS or blog.
It's fine and dandy in the forum
Vodkaholic
07 May 2010, 18:07
Thanks but it still isn't working in CMS or blog.
It's fine and dandy in the forum
The code linked above works fine on CMS
ericgtr
07 May 2010, 18:26
When we see the on and off (sporadic) behavior it could have to do with FB being overloaded and not loading. That's one of the benefits of iframe, it lets the rest of the page load around it.
Vodkaholic
07 May 2010, 18:34
When we see the on and off (sporadic) behavior it could have to do with FB being overloaded and not loading. That's one of the benefits of iframe, it lets the rest of the page load around it.
I see but it works fine everytime on say forums
not albums /blog
ericgtr
07 May 2010, 18:58
I see but it works fine everytime on say forums
not albums /blog
Okay, just a couple of basics just to double check things. First we want to make sure you are sure the template is for the style you are using (even I overlook this sometimes) what I like to do is just type in "test" or something that will stick out where you would normally put that code and see if it displays.
Vodkaholic
07 May 2010, 19:06
Okay, just a couple of basics just to double check things. First we want to make sure you are sure the template is for the style you are using (even I overlook this sometimes) what I like to do is just type in "test" or something that will stick out where you would normally put that code and see if it displays.
Album code
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I added it here because is shows alot better
116806
And it is now working on my blogs :eek:
Cadellin
08 May 2010, 22:24
Firstly this is a great mod - my members love it already and I'm expecting to pick a lot of traffic up from it so thank you :)
Secondly I can't get it working on albums. Using the {vb:raw page_URL} in the href attribute results in the following error from Facebook
You must specify an URL as part of this widget or API.
What should I be using as the href for albums?
salvador21
09 May 2010, 09:25
Okay, just a couple of basics just to double check things. First we want to make sure you are sure the template is for the style you are using (even I overlook this sometimes) what I like to do is just type in "test" or something that will stick out where you would normally put that code and see if it displays.
OK I tried it with "test" and it showed up fine. Then I tried the code and nothing.
Then I tried the code with the vb:if and it works.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Maybe I missed it before in the CMS because it is positioned at the bottom of the article. I now have the code at the top of the article, after
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
salvador21
09 May 2010, 09:33
I can now get it to show in a blog by using the code without the "vb:if etc", but when you click on it the link in Facebook is going to a thread in the forum instead.
BiZiMDiYaR
09 May 2010, 19:14
Hi,
I tried option 2, but it doesn;t show up... I have VB .3 and also edited the postbit with the code and added it, but still doesn't show up.. What am I doing wrong ?
Thanks.
Vodkaholic
09 May 2010, 19:24
Hi,
I tried option 2, but it doesn;t show up... I have VB .3 and also edited the postbit with the code and added it, but still doesn't show up.. What am I doing wrong ?
Thanks.
In Postbit (or legacy)
Which ever you are using you edit
BiZiMDiYaR
09 May 2010, 21:48
In Postbit (or legacy)
Which ever you are using you edit
Hi,
I edited the postbit... I only need to edit 1, right ?
Thanks.
many unknown location in online.php, IP addresses are from facebook.
using vb4.0.3
Vodkaholic
09 May 2010, 23:14
Hi,
I edited the postbit... I only need to edit 1, right ?
Thanks.
you will need to edit which ever one you are using on your forums mate
my forums uses legacy
postbit legacy
http://www.vbskinzone.com/forums/images/docs/postbit_legacy.png
postbit
http://www.vbskinzone.com/forums/images/docs/postbit.png
BiZiMDiYaR
10 May 2010, 00:44
you will need to edit which ever one you are using on your forums mate
my forums uses legacy
postbit legacy
http://www.vbskinzone.com/forums/images/docs/postbit_legacy.png
postbit
http://www.vbskinzone.com/forums/images/docs/postbit.png
Owwwww... so that was the case :))))
Thanks very much animemike :))) That did it..
murekhalir
11 May 2010, 07:54
option one... squishes my text content into a small box. Anyway to make the like button right aligned? and keep the true width of content text.
Michael2
11 May 2010, 20:20
Is there a way to place this under the thread title at the top of the showthread template (above the first post and below the top reply button). I'd like to have it on every page since it's not convenient to go back to the first post to click "like." When I try it I get a big gap under the FB button/text.
Vodkaholic
11 May 2010, 20:58
Is there a way to place this under the thread title at the top of the showthread template (above the first post and below the top reply button). I'd like to have it on every page since it's not convenient to go back to the first post to click "like." When I try it I get a big gap under the FB button/text.
you will get a big gap under it, Thats the code ( the facebook members Avatars show after they click it)in this space
ericgtr
11 May 2010, 21:17
you will get a big gap under it, Thats the code ( the facebook members Avatars show after they click it)in this space
Right, it's the iframe container. Additionally, that could be a modification to the showthread template instead of the postbit and I'm not sure the URL code will work in that template.
I don't have an advertising section...
hilfe-forum
12 May 2010, 21:04
We have a Problem with the Facebook-Like Button in our Board. Sometimes the words are in english, sometimes in german. If it is in english and sombody clicks the "Like"-Button, appears "You like ist". If it is in german, appears the complete Name. Is there an facility for doing something, so that there appears only "You"?
Cadellin
14 May 2010, 20:55
Any suggestions how to get this to work in the gallery?
Hi! Maybe a silly question, but how do I exclude special forum ids with a conditional?
cu
Gargi
Dashmaster
18 May 2010, 01:38
Sweet Dude. Works n1 :)
TimberFloorAu
19 May 2010, 09:41
Notice tonight we are getting an error.
Example http://www.australiabound.org/forum/showthread.php?20444-Before-you-whinge-we-have-been-Cufon-d
Error is:
The page at http://www.australiabound.org/forum/showthread.php?20444-Before-you-whinge-we-have-been-Cufon-d could not be reached.
STRIKE THAT;;;;; error seems to be if we have ' in title
Ocean-Wonders
19 May 2010, 10:17
seems to be working fine on mine so far, thanks :D
speedimpulse
19 May 2010, 20:06
installed and working great
HobbesGTS
26 May 2010, 18:40
I added this code to the calendar_showeventsbit template, so now people can 'Like' events. I also have vbEventsForum installed, so not sure if it would be different for someone who didn't have it installed.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
hcmagix
26 May 2010, 21:30
We have a Problem with the Facebook-Like Button in our Board. Sometimes the words are in english, sometimes in german. If it is in english and sombody clicks the "Like"-Button, appears "You like ist". If it is in german, appears the complete Name. Is there an facility for doing something, so that there appears only "You"? dann setze statt facebook.com bitte facebook.de ein dann ist alles in deutsch :-)
Schreib mir bitte ob es bei Dir klappt, ich bekomme die Thread URL leider nicht nach Facebook
TeknoSounds
27 May 2010, 03:08
Recommendation:
Where you have in the Like link www.YOURSITE.com you should replace that with {vb:raw $vboptions[bburl]}
Fantastic mod :D Works great, tho I'm trying to figure out how to get it to post to the stream. Plus it doesn't say "likes this thread at mywebsite.com" it just says "likes this thread" and links to it.
I'm using the postbit option for install.
hcmagix
27 May 2010, 21:50
it works for me, thanks TeknoSounds :D
TeknoSounds
27 May 2010, 23:30
much welcome hcmagix :D
MichaelDance
28 May 2010, 15:04
Thanks mate love this :)
The past two days I get the message "error" besides the URL to click. Anobody else got this Problem?
hcmagix
02 Jun 2010, 04:05
Yes, same here
Seems to work again for now :)
sportsbuddys
02 Jun 2010, 09:45
Works great! Thank you :)
Largo .//npc
03 Jun 2010, 10:47
It works but doesn't seem to show on facebook.
TeknoSounds
03 Jun 2010, 11:46
It works but doesn't seem to show on facebook.
I've only been able to get it to show up on my personal page, it doesn't show in the newsfeed nor relates the actual website name.
Believe it has to do with the facebook connect and the new opengraph they got goin on, they don't talk quite right. Theres certain tags missing in headers that have to be added.
michelle86
03 Jun 2010, 19:42
So I got the button to work, but why doesn't it show up on my Facebook wall when I like a thread? (like in picture #2)
hcmagix
03 Jun 2010, 20:37
So I got the button to work, but why doesn't it show up on my Facebook wall when I like a thread? (like in picture #2) This will showing in your aktivities. What you mean ist the share button
try this code in the postbit/_legacy Template btw. use the vb ad system for this.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
then the Post will appear on your FB Wall. btw I think this function will be included in vb 4.0.4
michelle86
03 Jun 2010, 22:06
This will showing in your aktivities. What you mean ist the share button
try this code in the postbit/_legacy Template btw. use the vb ad system for this.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
then the Post will appear on your FB Wall. btw I think this function will be included in vb 4.0.4
Yeah, it is not showing in my recent activities on my profile which this mod is supposed to be able to do that if you look at the second image.
necie_r
04 Jun 2010, 01:33
Thank you! Thank you! Thank you!!!
Installed and rated. :)
Would it be possible to only show the Like button on threads with a certain prefix?
For instance, we've got a "Trip Report" prefix that works very well with the Like button. But it also shows on every other type of thread on the forum which is kind of a wasted space, such as questions about a trail or a shoe...
I see how it can be limited to certain forums, but we post "Trip Reports" in most of the forums, as well as general questions and discussion.
hcmagix
04 Jun 2010, 03:58
Perhaps with a specially condition
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
for this conditional u must create a plugin in global_start with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
not testet. is an idea
read also http://www.vbulletin.com/forum/entry.php?2423-vBulletin-4.0.4-and-the-Facebook...
Perhaps with a specially condition
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
for this conditional u must create a plugin in global_start with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
not testet. is an idea
Sorry, I can't tell, but were you replying to my question?
Michlerish
04 Jun 2010, 15:58
Uninstalled because a lot of users access the forum from their workplace, where facebook is blocked.
Uninstalled because a lot of users access the forum from their workplace, where facebook is blocked.
This is one of the reasons I don't want it on every thread, because of the ugly "blocked" box, but it is working wonderfully on the desired Thread Prefixes, I'd love to limit it to just those type of threads.
http://www.bogley.com/forum/attachment.php?attachmentid=34460&d=1275621075
steveyos666
04 Jun 2010, 16:54
It's not showing up on my wall.
michelle86
05 Jun 2010, 23:50
im struggling to get this working correctly as per the screenshots in OP.
When i click "like" it on my fb newsfeed it just says "xxx likes xxx forum"... does NOT say "xxx likes xxx on xxx forum" as per the screenshot. any help?
That usually means something isn't right with your forum path, I would double check it.
For whatever reason, it has started showing up on everyone's facebook walls. But now I have the same issue Red Spider was having.
For my forum path I have http://members.lovingfromadistance.com/forum.php
Am I missing anything? Did I do anything wrong?
War.Frog
05 Jun 2010, 23:56
It looks like this will be redundant on version 4.04 (http://www.vbulletin.com/forum/entry.php?2423-vBulletin-4.0.4-and-the-Facebook...), but I've enjoyed using it for the interim. Thank you for a great mod.
Largo .//npc
06 Jun 2010, 17:26
Doesn't seem to keep the people who have liked it after a few minutes.
Any help with adding this Like button to only threads with certain prefixes?
For those trying to figure this out, use this code for the CMS articles section. What is shown in the first post wont work.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
ChopSuey
10 Jun 2010, 12:22
Can't you just change the YOURSITE text to {vb:raw vb.options url} ?? or whatever the code is. it will wol
session-one
13 Jun 2010, 10:14
it'd be cool if you could see who liked the thread
Works great on the forum but can't get it to work on the CMS
wefictionjoe
19 Jun 2010, 18:34
the number of likes a thread gets is going to dictate the next thread started on my site. BUT, i do not want to force people to connect to facebook to "like" something. So:
Is there any way to allow non facebook connected member to also "like" something? Thanks!
wefictionjoe
19 Jun 2010, 21:37
Doesn't seem to keep the people who have liked it after a few minutes.
hmmm, same here
Anyone know how to add this to appear above the Quick Reply box? I know the template is in Showthread, but I don't where to drop in the code to make it work. I am using 4.0.2 PL4.
Thanks.
Anyone know how to add this to appear above the Quick Reply box? I know the template is in Showthread, but I don't where to drop in the code to make it work. I am using 4.0.2 PL4.
Thanks.
Anyone?
wefictionjoe
16 Jul 2010, 02:27
Anyone?
good question
RichieBoy67
18 Jul 2010, 07:59
This is great thanks!! I had just installed something just like this in one of my directories and I was just going to do this myself! Lucky I checked first I guess. :)
olivercookson
22 Jul 2010, 17:28
Is there a way to get this working on the articles?
TNERatedEdge
22 Jul 2010, 21:53
This has to work with facebook? What If I dont wanyt my facebook having links to these posts/ Can't it just be for the forum?
some problems though:
1. only users with facebook can 'Like'
2. like only appears on the first post of the thread
3. after i click the link in facebook after it was integrated, it came out like this
No Topik specified. If you followed a valid link, please notify the administrator
i checked the links, if i remove a character in this case '=', it'd work.
or else can't.
a lot of things you have to fix.
meanwhile i have to uninstall the mod.
dippetas
09 Sep 2010, 20:55
it has stopped working for me the last two days, no click at all, the behavior started after i updated my user ranks! any ideas what could be wrong?
Forgive me if this was already addressed; I didn't get anything when I searched.
Using method #1, is there a way to reduce the size of the margin it creates on the right side of the post?
Thanks.
ComoEstaEso-com
22 Sep 2010, 18:27
Please remember to click Mark as Installed if you use this modification.
Facebook has just launched their latest "Like" button to developers to use on any site. What this does is utilizes the Advertising module to add the "Like" button to the first post of each thread. Please see screenshots to get an idea.
In your Admin CP go to Advertising > New Ad > Choose "Thread" from the dropdown and then select the first thread box. Give it a title (I called mine FB Like) leave "First Post Content" at default and paste in this code:
HTML Code:
<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURSITE.com/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}&layout=button_count&show_faces=true&width=450&action=like&colorsche me=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:px"></iframe>
<!-- / Facebook Like -->
Be sure to change YOURSITE.com to your URL including your forum.
The VBSEO team has instructions on how to make this work for their product here http://www.vbseo.com/f2/facebook-lik...95/#post265997
Hello... I can't get this to work on a Blog post.
Neither can I make it appear on a CMS Article.
In the threads, it all works fine.
Should the procedure over here be used?
Or only what's mentioned on the vBSEO site? (we're running vBseo)
Should I do both things? What's mentioned here, and then what's mentioned over in vBSEO.com?
I'm at a loss... not sure what I'm doing wrong.
Any help is much appreciated.
Thanks.
Rebecca217
01 Oct 2010, 15:02
Beautiful! Thanks for this!
GONUMBER6
18 Nov 2010, 15:06
I am currently running on vb 4.06 and have the facebook connect enabled and set up. I just HATE the location of the ("Like" Be the first of your friends to like this), which is above the first post on the page and off to the right.
I would really like it to be like in the example #3. How would you suggest I do this?
washingtonboise
21 Nov 2010, 20:21
At the bottom of posts would be an excellent location. (It's at that point that a user will know if they actually like what they just finished reading.)
A couple of things:
1) Instead of it being per thread, can there be a like button per post?
2) My site is in this format: www.DOMAIN.com/forums/showthread...
For some reason, when I put href=http://www.DOMAIN.com/forums/{vb:link thread, {vb:raw thread}}, it doesn't work and I get an error in the FB link. The keyword "forums" is missing from the URL and it incorrectly looks like this: http://www.DOMAIN.com/showthread...
If I put anything else except "forums", like "forum", then the URL with that word shows up.
Any ideas on why my URL wouldn't be properly generated?
TIA!
gobears20
01 Dec 2010, 14:00
A couple of things:
1) Instead of it being per thread, can there be a like button per post?
2) My site is in this format: www.DOMAIN.com/forums/showthread...
For some reason, when I put href=http://www.DOMAIN.com/forums/{vb:link thread, {vb:raw thread}}, it doesn't work and I get an error in the FB link. The keyword "forums" is missing from the URL and it incorrectly looks like this: http://www.DOMAIN.com/showthread...
If I put anything else except "forums", like "forum", then the URL with that word shows up.
Any ideas on why my URL wouldn't be properly generated?
TIA!
I have the same problem. I get an error because it's looking for www.domain.com/showthread when it should be www.domain.com/forums/showthread. I have the full url in the href parameter but facebook is not getting it right. Any fix?
SonicGT
03 Dec 2010, 03:29
I have the same problem. I get an error because it's looking for www.domain.com/showthread when it should be www.domain.com/forums/showthread. I have the full url in the href parameter but facebook is not getting it right. Any fix?
I too am getting this same error message, I also changed the show_faces to false and it doesn't seem to make a difference
gobears20
03 Dec 2010, 19:34
Here's the fix that seems to have worked for me.
In the SHOWTHREAD template, edit the following line:
From this:
<link rel="canonical" href="{vb:raw thread_url}" />
To this:
<link rel="canonical" href="http://www.domain.com/forums/{vb:raw thread_url}" />
Even though you pass a url to facebook, they still scrape the page to get the url apparently. This fixes it.
Here's the fix that seems to have worked for me.
In the SHOWTHREAD template, edit the following line:
From this:
<link rel="canonical" href="{vb:raw thread_url}" />
To this:
<link rel="canonical" href="http://www.domain.com/forums/{vb:raw thread_url}" />
Even though you pass a url to facebook, they still scrape the page to get the url apparently. This fixes it.
Thank you very much! This fixed the problem for me as well. Is there a way to add a like button per post instead of per thread?
Nocturnal222
12 Dec 2010, 17:21
Hello,
i notice that it doesnt work when your forum is on sub directory of your host like test.com/forum1
it only takes test.com/showthread..etc..
any advice?
Thanks
When I "like" something on our site it just appears on facebook as "...likes yourdomain.com at yourdomain.com" rather than the specific title such as "...likes apples thread at yourdomain.com" - is this a permissions issue? The links are correct if you click them but the titles in facebook are all the main site title rather than the thread title?
MAdotcom
05 Jan 2011, 01:26
Thank you :up:
tykesplace
05 Jan 2011, 04:32
Created the ad. Changed the url to our site and forum as in http://site.com/Forum
Left as First Post. Left all display buttons off. Tried changing the size to 50 also.
Like button doesn't appear anywhere in any posts. :confused:
meissenation
15 Jan 2011, 19:35
I tried editing the showthread template as described but for the life of me I can not get this to work. I viewed the source and the source code clearly shows the correct URL but it still strips my directory out of the URL... :( Great idea, just wish it worked!
gregory_clayton
23 Jan 2011, 16:12
having the same problem with my forum being in a sub directory off /forum and facebook can not direct to the actual thread.
****Edit****
Here is my error
/////////////////
The page at http://www.wwehq.com/forumshowthread.php?4-More-Legends-Confirmed-For-WWE-All-Stars-WWE-Highlights-Scott-Hall-amp-Kevin-Nash& could not be reached.
////////////////
For some reason it is missing the / before showthread.php. Tried editing the SHOWTHREAD but no luck.
Winter Sonata
08 Feb 2011, 17:34
To all ppl, this works like a charm http://www.vbulletin.org/forum/showpost.php?p=2025432&postcount=2
after latest vbb 4 update its broken again ><
matrixmark
16 Feb 2011, 12:22
I just installed the latest vbulletin (upgrade from 4.1.1) and its working fine for me. I did the postbit_legacy edit way.
Mark
How can i change in my newsfeed that is does not show the page title for every like button i click but only the thread title + domain?
the links .../forum/ & .../album/ take me to the album & forum instead of the thread & image?
it only works for .../content/ with the right title and post?!
any idea on how to change the url?
deverill2010
20 Feb 2011, 13:27
Hi I have changed show_faces to false but it is still showing the little square images of peoples profile pictures, I don't want that to show.
I still havent figured it out for album & threads. C'mon guys pls help!
The new like button also inserts a thumbnail image to your fb newsfeed which is great unless the like button takes you to your homepage instead of the image in the album.
Pls heeeelp!
<div id="picturecontainer">
<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://myttoos.com/community/album/{vb:raw page_url}&layout=standard&show_faces=true&width=450&action=like&font=tahoma&colo rscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
<!-- / Facebook Like -->
Is this the wrong URL i put in for fetching the album images thru clicking like?
Am i the only one that get "You must reduce the number of redirects for this URL" error after i click "Like" button?
Thread for example:
http://www.root.co.il/threads/257957-%D7%A2%D7%99%D7%A6%D7%95%D7%91-%D7%97%D7%93%D7%A9!-%28%D7%95%D7%A2%D7%95%D7%93-%D7%94%D7%9E%D7%95%D7%9F-%D7%97%D7%99%D7%93%D7%95%D7%A9%D7%99%D7%9D%29
I just try to figure it out, so i tried to directly enter to the like.php and href to random thread.
http://www.facebook.com/plugins/like.php?href=http://www.root.co.il/showthread.php?t=123456 (123456, just for example)
but just got the same error.
Any ideas?
TalkVirginia
22 Apr 2011, 03:09
Thank you! It works - Nominated MOTM
lild100
23 Apr 2011, 20:39
Great mod! Just need some quick help.. in my forum my background is black... how can i make the writing that says
'Be the first of your friends to like this.'
How can i change that to white rather then black?
You can see an example here on my forum how the colours have matched well :)
Speak soon
Dan
http://www.tabletennisdaily.co.uk/forum/showthread.php?46-The-ranking-system-of-each-member
pharlap
25 Apr 2011, 07:01
Great Mod.
Is it possible to have this shown on every post ( not just post #1 in a thread) ?
Cheers
Could it be "Like" in every post like mod "Thanks" guys?
I'm having an issue with this, in that it duplicates showthread.php when it posts to facebook (resulting in an incorrect link, and incorrect page info on the like)... i.e. it links to this:
DOMAIN.com/showthread.php/showthread.php/4465
instead of
DOMAIN.com/showthread.php/4465
Anyone have any idea why this is happening?
XiTCLUB
25 Apr 2011, 22:12
Tagged
itforumz
28 Apr 2011, 06:03
Good mod
Any way to add the Send button to this code, as shown here?
https://www.facebook.com/note.php?note_id=10150231557835844
I tried with no success. I see a template mod here with the Send button, I just can't see how to merge the code:
http://www.vbulletin.org/forum/showthread.php?t=263717
crazymilk
21 May 2011, 09:47
Don't know whats happen but i get this error? it is showing 2 url when posting link?
The page at
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
could not be reached.
And now I can,t get in to edit my ads?
neetusn
16 Jun 2011, 12:25
when i like any thread in the forum, my facebook wall displays only thread link, but i need to display thread title.
MagicThemeParks
27 Jun 2011, 01:27
Option 2 has a missing bracket in the conditional code
Should be....
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
How would I align this to the right of the thread title, instead of underneath it?
thanks
flewfruit
30 Jun 2011, 13:32
I can't find Advertising > New Ad >. vB Version: 3.6.3. Please help me, thanks =)
I can't find Advertising > New Ad >. vB Version: 3.6.3. Please help me, thanks =)
That not a feature on vb3
flewfruit
30 Jun 2011, 14:51
Do you know how kann I install this on vb3?
BirdOPrey5
30 Jun 2011, 17:18
Moved this template modification to the appropriate forum.
Just installed this, works good however I have one issue.
The layout style won't stay set at Button_Count or Box_Count, it defaults to standard.
All I want is the Like Box and Counter, not the text (makes it to wide).
Code Below:
<iframe src="//www.facebook.com/plugins/like.php?href=http://www.MYFORUM.com/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}&
send=false&
layout=button_count&
width=85&
show_faces=false&
action=like&
colorscheme=light&
font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:55px; height:21px;" allowTransparency="true"></iframe>
Any ideas??
Griffoneur
02 Nov 2012, 00:58
Working with 4.2.0
Thanks for this mod.
Marcin1
06 Nov 2012, 18:23
It's not working for me 4.2.
How can i add this for every thread ?
Jpolola
03 Apr 2013, 13:48
Why it only shows to registered members and not for the admin? I am using 4.2.0 PL3
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.