![]() |
Postbit_Legacy:
With VBSEO Code:
<iframe src="http://www.facebook.com/plugins/like.php?href=http://(domain)$_SERVER[VBSEO_URI]?p=$post[postid]&layout=button_count&show_faces=true&width=&action=like&colorscheme=light" Without VBSEO Code:
<iframe src="http://www.facebook.com/plugins/like.php?href=http://(domain)/showthread.php$session[sessionurl]?p=$post[postid]&layout=button_count&show_faces=true&width=&action=like&colorscheme=light" |
this is nice and clean.It'll be nice to have something but for twitter:)
|
I suppose there is no way to have this mod show the member's forum username, instead of their real name from FB?
|
Quote:
|
Code as follows mate:
<vb:if ........> <--facebook code--> </vb:if> |
Code:
<if condition="$forum[forumid] == 15 || $forum[forumid] == 12 || $forum[forumid] == 13 || $forum[forumid] == 14"> |
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. |
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?
|
Quote:
|
Quote:
|
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:
<!-- Facebook Like --> Code:
<!-- Facebook Like --> |
Quote:
|
Quote:
|
Quote:
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. |
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/proje...d=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. |
|
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?
|
Option 2 to hide specific forums.
Code:
<!-- Facebook Like --> Code:
<!-- Facebook Like --> Code:
<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))"> The code Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')"> To show in only ONE forum: Replace Code:
<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))"> Code:
<vb:if condition="$forum[forumid] == x">Show this if forum id is x</vb:if> |
Quote:
confusing..the display and hide are both the same? how do you combine these conditions? show in forum Code:
<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))"> Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')"> thx |
Quote:
Code:
<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))"> |
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? |
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?
|
Quote:
|
Quote:
|
vBSEO owners can use the following fix http://www.vbseo.com/f2/facebook-lik...95/#post265997 to get this mode compatible with vBSEO
|
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!
|
Quote:
|
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. |
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.
|
Quote:
|
Quote:
|
Quote:
|
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: PHP Code:
|
Quote:
http://www.bogley.com/forum/attachme...1&d=1272003191 And when you are logged into facebook, you'll see this: http://www.bogley.com/forum/attachme...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/attachme...1&d=1272003056 And here's option 2 on the same thread: http://www.bogley.com/forum/attachme...1&d=1272003108 |
Quote:
change Code:
show_faces=true Code:
show_faces=false |
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 |
Quote:
|
Quote:
|
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:
|
All times are GMT. The time now is 07:17 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|