vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Add-On Releases - Add "LIKE" button and other Facebook plugins to threads. (https://vborg.vbsupport.ru/showthread.php?t=243319)

BirdOPrey5 07-31-2010 08:42 PM

No... those tags don't go between the iframe tag... re-read the instructions, the meta tags go in the headerinclude template.

Support 08-01-2010 05:00 AM

i did but it does not work

plzzzzzzzzzzz help me
i need the full code, step by step

Xtrigit 08-01-2010 05:33 AM

The iframe method is very limited.

Follow the instructions above and it should show an image just fine.

BirdOPrey5 08-01-2010 12:58 PM

Quote:

Originally Posted by Support (Post 2077481)
i did but it does not work

plzzzzzzzzzzz help me
i need the full code, step by step

There are step by step instructions in the first post of this thread- no where in the first post does it even mention an <iframe> - I think you may have been looking at another facebook like thread and confused which instructions go with which. Just follow the instructions listed here and undo whatever you've already done. It can't really be made any simpler. If you have a specific question about any of the steps- then we will try and answer it.

Support 08-01-2010 01:40 PM

1 Attachment(s)
i did what you said
Attachment 120304

that is why i did it from Facebook plugin

can you help me ?

BirdOPrey5 08-01-2010 02:37 PM

Honestly I can't make much sense of that... I visited your site and I see you use the regular postbit template, not postbit_legacy- did you place the code in postbit?

Support 08-01-2010 02:39 PM

i use postbit_legacy not postbit
and No i did not place the code in postbitcould i have ur E-mail ?

BirdOPrey5 08-01-2010 06:46 PM

Quote:

Originally Posted by Support (Post 2077651)
i use postbit_legacy not postbit
and No i did not place the code in postbitcould i have ur E-mail ?

I see what you're saying but your first posts look like a regular postbit but the rest are legacy. I guess it is some sort of mod? It may be an issue since the edit is made for an unmodified postbit. Maybe make the edit in showthread instead? I'm just tossing ideas out there... Maybe the mod author has a better idea what is going on.

No, I would prefer to keep helping (best I can) via the forum and not e-mail, sorry.

Support 08-02-2010 03:47 PM

it is okay,
so i use a modified template Yes
i'll try what you said..

Support 08-02-2010 05:10 PM

Same for the original postbit legacy
plz help !

Agathadaimon 08-02-2010 05:22 PM

Original postbit_legacy


PHP Code:

$template_hook[postbit_start]
<
table id="post$post[postid]class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center">
<
tr>
<if 
condition="$show['announcement']">
<
td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]colspan="2">
<
img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]border="0" />
<
phrase 1="$post[startdate]2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</
td>
<else />
<
td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis]> 
<!-- 
status icon and date -->
<
a name="postimage$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / 
status icon and date --> 
</
td>
<
td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px" align="$stylevar[right]">
&
nbsp;
<if 
condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<
input type="checkbox" name="plist[$postid]" id="plist_$postidstyle="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]/>
</if>
</
td>
</if>
</
tr>
<
tr valign="top">
<
td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

<
fieldset><legend><b><font color="#000000" size="1">Kullan&#305;cı Profili</font></b></legend><div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<
center><class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a></center>
<
script type="text/javascript"vbmenu_register("postmenu_$post[postid]"true); </script>
<else />
<
center>$post[musername]</center>
</if>
</
div>

<if 
condition="$post['usertitle']"><div class="smallfont"><div class="postbit_buki"><center>$post[usertitle]</center></div></div></if>
<if 
condition="$post['rank']"><div class="smallfont"><div class="postbit_buki"><center>$post[rank]</center></div></div></if>
$template_hook[postbit_userinfo_left]

<if 
condition="$show['avatar']">
<
div class="smallfont"><div class="postbit_buki"><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]$post[avwidth$post[avheightalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></center></div>
<else />
<if 
condition="$bbuserinfo[showavatars]">
<
div class="smallfont"><div class="postbit_buki">
<
center><img src="http://img120.imageshack.us/img120/542/99104463oq1.png" alt="Avatar Yok" border="0" /></center>
</
div>
</if>
</
div>

</if></
fieldset>

<
fieldset><legend><b><font color="#000000" size="1">Kullan&#305;cı Bilgileri</font></b></legend><div class="smallfont">
<if condition="$post['joindate']"><div class="postbit_buki"><b>$vbphrase[join_date]:</b$post[joindate]</div></if>
<if 
condition="$post['field2']"><div class="postbit_buki"><b>$vbphrase[location_perm]: </b>$post[field2]</div></if>
<
div class="postbit_buki"><b>?ye No : </b>$post[userid]</div>
<if 
condition="$post['age']"><div class="postbit_buki"><b>$vbphrase[age]:</b$post[age]</div></if>
<
div class="postbit_buki">
<
b>$vbphrase[posts]:</b$post[posts]
</
div>
<if 
condition="$show['infraction']"><div class="postbit_buki">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>

<if 
condition="$show['reputation']"><if condition="$show['reppower']"><div class="postbit_buki">$vbphrase[reppower]: $post[reppower]</div></if> 
<
div class="postbit_buki"><b>Rep Puan&#305; :</b> $post[reputation]</div> 
<div class="postbit_buki"><b>Rep Derecesi :</b$post[reputationdisplay]</div></if> </fieldset>


$template_hook[postbit_userinfo_right]
$post[icqicon$post[aimicon$post[msnicon$post[yahooicon$post[skypeicon]
</
div

</
td>
<if 
condition="$show['moderated']">
<
td class="alt2" id="td_post_$post[postid]style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<
td class="alt1" id="td_post_$post[postid]style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
</if>
$template_hook[postbit_messagearea_start]
<if 
condition="$show['messageicon'] OR $post['title']">
<!-- 
icon and title -->
<
div class="smallfont">
<if 
condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]alt="$post[icontitle]border="0" /></if>
<if 
condition="$post['title']"><strong>$post[title]</strong></if>
</
div>
<
hr size="1" style="color:$stylevar[tborder_bgcolor]/>
<!-- / 
icon and title -->
</if>

<!-- 
message -->
<
div id="post_message_$post[postid]">$post[message]</div>
<!-- / 
message -->

<if 
condition="$show['attachments']">
<!-- 
attachments -->
<
div style="padding:$stylevar[cellpadding]px">

<if 
condition="$show['thumbnailattachment']">
<
fieldset class="fieldset">
<
legend>$vbphrase[attached_thumbnails]</legend>
<
div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</
div>
</
fieldset>
</if>

<if 
condition="$show['imageattachment']">
<
fieldset class="fieldset">
<
legend>$vbphrase[attached_images]</legend>
<
div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</
div>
</
fieldset>
</if>

<if 
condition="$show['imageattachmentlink']">
<
fieldset class="fieldset">
<
legend>$vbphrase[attached_images]</legend>
<
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
$post[imageattachmentlinks]
</
table>
</
fieldset>
</if>

<if 
condition="$show['otherattachment']">
<
fieldset class="fieldset">
<
legend>$vbphrase[attached_files]</legend>
<
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
$post[otherattachments]
</
table>
</
fieldset>
</if>

<if 
condition="$show['moderatedattachment']">
<
fieldset class="fieldset">
<
legend>$vbphrase[attachments_pending_approval]</legend>
<
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
$post[moderatedattachments]
</
table>
</
fieldset
</if>

</
div>
<!-- / 
attachments -->
</if>

$template_hook[postbit_signature_start]

<if 
condition="$post['signature']">
<!-- 
sig -->
<
div>
__________________<br />
$post[signature]
</
div>
<!-- / 
sig -->
</if>

$template_hook[postbit_signature_end]

<if 
condition="$show['postedited']">
<!-- 
edit note -->
<
div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]/>
<
em>
<
phrase 1="$post[edit_username]2="$post[edit_date]3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if 
condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</
em>
</
div>
<!-- / 
edit note -->
</if>

</
td>
</
tr>
<
tr>
<
td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
$post[onlinestatus]
<if 
condition="$show['reputationlink']">
<
span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
<if 
condition="$show['popups']"><script type="text/javascript"vbrep_register("$post[postid]")</script></if>
</if> 
<if 
condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
<if 
condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]border="0" /></a></if>
$post[iplogged]
&
nbsp;
</
td>
<if 
condition="$show['moderated']">
<
td class="alt2" align="$stylevar[right]style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
<else />
<
td class="alt1" align="$stylevar[right]style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
</if>
<!-- 
controls -->
<if 
condition="$post['editlink']">
<
img style="display: none" id="progress_$postidsrc="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]/>
<
a href="$post[editlink]name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]border="0" /></a>
</if>
<if 
condition="$post['forwardlink']">
<
a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]border="0" /></a>
</if>
<if 
condition="$post['replylink']">
<
a href="$post[replylink]rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]border="0" /></a>
</if>
<if 
condition="$show['multiquote_post']">
<
a href="$post[replylink]rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]border="0" id="mq_$post[postid]/></a>
</if>
<if 
condition="$show['quickreply'] AND !$show['threadedmode']">
<
a href="$post[replylink]rel="nofollow" id="qr_$post[postid]onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]border="0" /></a>
</if>
<if 
condition="$show['moderated']">
<
img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]border="0" />
</if>
<if 
condition="$show['deletedpost']">
<
img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]border="0" />
</if>
<if 
condition="$show['redcard']">
<
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]border="0" /></a>
<else />
<if 
condition="$show['yellowcard']">
<
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / 
controls -->
</
td>
</
tr>
</
table>
<
div class="dcc"><div class="dcg"></div><div class="dcd"></div></div>
<
div style="padding:0px 0px 5px 0px;"></div>
$template_hook[postbit_end]
<!-- 
post $post[postidpopup menu -->
<
div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<
table cellpadding="4" cellspacing="1" border="0">
<
tr>
<
td class="thead">$post[username]</td>
</
tr>
<if 
condition="$show['profile']">
<
tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if 
condition="$show['pmlink']">
<
tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if 
condition="$show['emaillink']">
<
tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if 
condition="$show['homepage']">
<
tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if 
condition="$show['search']">
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if 
condition="$post['userid'] AND $show['member']">
<
tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
$template_hook[postbit_user_popup]
</
table>
</
div>
<!-- / 
post $post[postidpopup menu --> 


Support 08-03-2010 01:31 PM

Agathadaimon ,
i reset the template so i have the original one already, i need the original template with modification

and btw, that is not the original template

Support 08-04-2010 03:57 PM

so no one can do it..

soundbarrierpro 08-04-2010 08:32 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2063890)
I agree this is much more difficult then it should be- something isn't playing nicely in vB... but I did end up getting this to work using all the instructions in this mod but instead if pasting the last step here into the template I used the IFRAME code provided by facebook...

Code:

<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURDOMAIN/forums/showthread.php$session[sessionurl]?t=$threadid" &amp;show_faces=false&amp;width=350&amp;action=like&amp;colorscheme=dark&amp;height=30" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:30px;" allowTransparency="true"></iframe>
edit YOURDOMAIN to be your web domain...

Additionally I put it in an if tag:
Code:

<if condition="!in_array($GLOBALS[forumid], array(2, 3, 6, 15, 24, 45))">
 -iframe code-
</if>

Where the numbers are the forum id's of private forums that aren't viewable by guests and therefore useless to add a 'like' button too.

Finally I moved this to under where the page navigation menu would show if it was a multiple page thread on the showthread template... I moved the <td></td> tags out of the built in <if> statement so the table will be there regardless of whether the page nav menu is displayed... the code for everything now looks like:

Code:

        <td align="$stylevar[right]"><if condition="$show['pagenav']">$pagenav</if>
<if condition="!in_array($GLOBALS[forumid], array(2, 3, 6, 15, 24, 45))">
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURDOMAIN/forums/showthread.php$session[sessionurl]?t=$threadid" &amp;show_faces=false&amp;width=350&amp;action=like&amp;colorscheme=dark&amp;height=30" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:30px;" allowTransparency="true"></iframe>
</if>
</td>

Anyway this all works fine (for me), you can see a demo at:
http://www.juot.net/forums/showthread.php?t=41185
No login required.

What if you're using vbSEO? http://www.mysite.com/forum/showthread.php?.....doesn't post the correct link on your facebook page.

BirdOPrey5 08-04-2010 11:26 PM

I don't know, I've never had nor used vbSEO- is there an alternate variable you can use maybe?

soundbarrierpro 08-04-2010 11:33 PM

Hmmm. It still posts the "Like" thread to the members FB profile. But it just posts exactly what the url is which is defined in the mod instructions. I don't know anything about writing variables. I just have vbSEO relative .html URLS defined in the rewrite instructions. They rewrite as http://www.mysite.com/forum/topic-name.html

ShawneyJ 08-31-2010 01:17 AM

3. Click the Connect tab
-----------------
Connect tab seems to be gone on facebook, was there when i added this to my other forum a week ago.

EDIT: im guessing step 3 is now 3. Click the Website tab

Xtrigit 09-01-2010 02:57 AM

Quote:

Originally Posted by jaycob (Post 2091828)
EDIT: im guessing step 3 is now 3. Click the Website tab

That's correct. Thanks

MikesSite 09-14-2010 03:24 PM

Confirmed, does NOT work properly with Zoints SEO. The button is there and you can push it, but on facebook it leaves out the thread URL and does not create the actual page on facebook.

carsafety 10-14-2010 03:30 PM

Anyone have a live demo of this running on vb 3.8 right now? Thanks!

carsafety 10-20-2010 06:01 PM

I've been testing the Like button today. One suggestion so far is that anyone using the opengraph meta tags consider using the value "article" instead of "website" for the og:type tag. I noticed that when using website, every time a page was liked, it would create a Facebook fan page for that particular thread, as if it was its own website. I didn't want to end up with thousands of fan pages being created, as I read that others were banned for using the website tag outside of their homepage. I'm not sure if there are other functional differences, but that is one to consider if you have a lot of threads on your forum.

BirdOPrey5 10-20-2010 07:21 PM

I've actually had to (temporarily I hope) remove this mod from my threads because there is a bug with Internet Explorer that causes the page to be blank and reload in the browser with a different url.
http://blog.facesharp.com/2010/10/05...ing-analytics/

It's causing some serious issues with Analytics, SEO, etc... This particular link mentions it's IE6 an the XFBML implementation but it has also been reported with the iframe and newer ie versions.

When I checked my google logs sure enough this was happening at my site too.

carsafety 10-20-2010 07:54 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2112132)
I've actually had to (temporarily I hope) remove this mod from my threads because there is a bug with Internet Explorer that causes the page to be blank and reload in the browser with a different url.
http://blog.facesharp.com/2010/10/05...ing-analytics/

It's causing some serious issues with Analytics, SEO, etc... This particular link mentions it's IE6 an the XFBML implementation but it has also been reported with the iframe and newer ie versions.

When I checked my google logs sure enough this was happening at my site too.

I saw this in the other mod thread, along with this link-

http://www.searchmarketingman.com/20...utton-bug.html

How can I duplicate the blank page issue? The mod appears to be working for me (I am only using the Like button, not the comment box app). The link appears on Facebook and correctly directs to the correct forum page.

According to the searchmarketingman page, you can force Google/Yahoo/etc not to index the fragment pages. That seems to resolve the issue for me.

My question is, were else would someone find a link to the fragment/duplicate page? From facebook? Obviously, I don't want people finding blank pages, but it's not clear to me how they find them. Incidentally, his page says iframe works correctly at the bottom, but I don't like it as much since it doesn't give the comment box.

carsafety 10-20-2010 08:03 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2112132)
I've actually had to (temporarily I hope) remove this mod from my threads because there is a bug with Internet Explorer that causes the page to be blank and reload in the browser with a different url.
http://blog.facesharp.com/2010/10/05...ing-analytics/

It's causing some serious issues with Analytics, SEO, etc... This particular link mentions it's IE6 an the XFBML implementation but it has also been reported with the iframe and newer ie versions.

When I checked my google logs sure enough this was happening at my site too.

Also, did you try the custom channerl URL fix mentioned in the link you provided? If so and if it worked, can you please let me know the details of where and how you implemented the code?

BirdOPrey5 10-20-2010 08:38 PM

I don't know how to replicate it but when I looked at google analytics there werre dozens, maybe hundreds of those "fragment" URLs and if I followed those URLs sure enough I got the blank page... This means some people were also getting blank pages- now none of my members complained so maybe it was random visitors... I don't know.To be safe I removed all Facebook elements from my threads but I kept the like button on my homepage.

As a backup I did implement the channel url fix. It involves making a new blank HTML file with the 1 line of code mentioned on the page that describes the fix, then adding extra code to the facebook code... i wont know if its working until a few days go by and i don't see anymore fragment urls.

in the mean time i added the share button from www.addthis.com which has facebook, twitter, and 200+ other sites to share with, but a custom javascript so shouln't be affected by this bug,

carsafety 10-20-2010 09:19 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2112162)
As a backup I did implement the channel url fix. It involves making a new blank HTML file with the 1 line of code mentioned on the page that describes the fix, then adding extra code to the facebook code... i wont know if its working until a few days go by and i don't see anymore fragment urls.

Newb question, but I'm not a coding expert. Can I simply add the following code:

channelUrl: 'http://example.com/channel.html'

to the relevant location in the fb.js file that is downloaded for this mod?

If not, where do you implement the Fb.init code otherwise?

Quote:

in the mean time i added the share button from www.addthis.com which has facebook, twitter, and 200+ other sites to share with, but a custom javascript so shouln't be affected by this bug,
I tried the Wibiya bar, but I had a lot of problems with slow loading and other user complaints, among other issues. Is the addthis button any better? I noticed the Wibiya bar just seemed to integrate the Facebook app code into their bar, but I have no idea if that resolves the bug or not.

BirdOPrey5 10-20-2010 11:04 PM

I never tried the Wibiya bar so I can't compare but addthis seems fast (faster than facebook's button would load infact) and I've had no complaints. I just don't like it as much because it opens the facebook post in a new tab instead of a small pop-up window like the real facebook like button does.

As for the fix- in the .js file:

Add a comma to the end of the "xfbml" line and add the following line below it:

Code:

channelUrl:'http://www.yoursite.com/channel.html'
Change yoursite.com to your URL obviously.

And make a channel.html file in your web root wirh only this line in it:

Code:

<script src="http://connect.facebook.net/en_US/all.js"></script>

carsafety 10-20-2010 11:50 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2112189)
I never tried the Wibiya bar so I can't compare but addthis seems fast (faster than facebook's button would load infact) and I've had no complaints. I just don't like it as much because it opens the facebook post in a new tab instead of a small pop-up window like the real facebook like button does.

As for the fix- in the .js file:

Add a comma to the end of the "xfbml" line and add the following line below it:

Code:

channelUrl:'http://www.yoursite.com/channel.html'
Change yoursite.com to your URL obviously.

And make a channel.html file in your web root wirh only this line in it:

Code:

<script src="http://connect.facebook.net/en_US/all.js"></script>

Thanks! That's what I thought but I'd have certainly missed the comma.

I'm testing the addthis button now, too. It doesn't seem to format as nicely where I want it to the left of the edit/quote buttons. It also doesn't allow for comments with the "Like" button and the share utility is cumbersome and somewhat of a duplication of what I have in the vBulletin Bookmarks bar. It looks like Addthis uses the same FB application.

BirdOPrey5 10-21-2010 01:00 AM

It certainly allows comments for me... when I click on Facebook on Add This it opens a new tab with a box that says "What's on your mind" with the image I set in the meta tags added by this mod. Whatever I type in that box is the 'comment" and it puts it on my wall with the comment and link.

carsafety 10-21-2010 01:55 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2112223)
It certainly allows comments for me... when I click on Facebook on Add This it opens a new tab with a box that says "What's on your mind" with the image I set in the meta tags added by this mod. Whatever I type in that box is the 'comment" and it puts it on my wall with the comment and link.

Oh I think you must have used a different Addthis bar. I just added the default one in a different spot (showthread first post start ad location template) and it looks fine there and works like you said.

Before I used the one with the Facebook Like on the left side, followed by tweet, followed by the share utility. The Like part will only "Like" a thread when I use it, it doesn't pop up a mouse-over comment box like this mod does. You could still go to the Share section and pop up the Facebook sharer app that's the same as the others, of course.

I like the hover comment box on the "Like" button of this mod and it plays nicer with the postbit legacy template in terms of formatting than Addthis does. I hope they fix the bug soon. I'm going to test it for a couple weeks then go live if I don't see any other issues. Perhaps just the Google/Yahoo exclusions and the url channel will suffice.

By the way you can see mine live at www.car-seat.org without registration. For now, you do have to select the "Facebook Test" style from the style selector to see the mod and Addthis.

BirdOPrey5 10-21-2010 03:30 AM

I see you have the like button on every post- does it link back to the whole thread or just the single post?

carsafety 10-21-2010 05:00 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2112260)
I see you have the like button on every post- does it link back to the whole thread or just the single post?

It links to the thread but adds the post as a qualifier at the end, for example:

http://www.car-seat.org/showthread.php?p=1464875

Also, if you Like a post, it only applies to that post and not any of the other posts in the thread. For that reason, I opted to make it more apparent rather than limit it to the first post.

Also, the comment box appeared to be somehow tied to posts before I removed it. If I was in hybrid view and clicked on a post and left a comment in the box below the thread, I could not view the comments if I clicked the threaded link to another post in the thread. Given that it could be hard to find comments so that any questions would be unlikely to be answered, I decided to remove it. Plus, we allow unregistered members to post (via moderation) questions in some forums. For another forum format, it seems like it was a very nice way to allow visitors to leave a comment.

Oh, I do like how the opengraph image setting forces the Facebook Sharer app to use the forum logo, rather than a random image from the page. That was annoying some users when they posted photos and the sharer would grab them and slap them on FB.

the_ace 10-28-2010 01:06 PM

1 Attachment(s)
I use this mod with a slight modification as my requirement is to show the LIKE button in front of the thread title for a selected forum instead of the individual post.

Managed this by adding the codes to display the like button in the threadbits template.

Complete the steps given up to editing the headerinclude template. After editing the headerinclude templete follow these instructions :

Template to edit : threadbits

Find :
Code:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
Add below:
Code:

<!--- facebook Like button ------->
<if condition="$foruminfo[forumid]==xxx">
<span id="fb-root"></span>
<script src="/images/fb.js" type="text/javascript"></script>
<fb:like href="$vboptions[bburl]/showthread.php$session[sessionurl]?t=$thread[realthreadid]" width="260"></fb:like></if>

<if condition="$foruminfo[forumid]==xxx"> <-- this is to limit the button only to a selected forum. If you want it like that, replace xxx with the actual forum id.

Thats it.
It shows the FB Like button as follows :
Attachment 123206

soundbarrierpro 11-05-2010 11:20 AM

This mod is not compatible with vbSEO. You will get an error every time. In order for the app to work, you must make coding changes which are available at vbSEO forums.

carsafety 11-23-2010 02:20 PM

I just went live with this mod. I did end up limiting it to the first post. I didn't realize that first post wasn't ONLY the very first post, but at least in hybrid view, it is the first post on the page you are viewing even if it isn't the first post in the thread, which is nice. It worked fine on all posts, but the resizing could take a while on a long thread and was a little annoying. Anyone head about the facebook bug issue? Is it resolved or is there any other fix aside from the custom channel mod?

BirdOPrey5 11-23-2010 11:37 PM

Quote:

Originally Posted by carsafety (Post 2124998)
I just went live with this mod. I did end up limiting it to the first post. I didn't realize that first post wasn't ONLY the very first post, but at least in hybrid view, it is the first post on the page you are viewing even if it isn't the first post in the thread, which is nice. It worked fine on all posts, but the resizing could take a while on a long thread and was a little annoying. Anyone head about the facebook bug issue? Is it resolved or is there any other fix aside from the custom channel mod?

I've looked into this bug issue and confirmed my site was affected even though I never had the issue myself nor did any member ever complain... but I see virtually every news site and blog out there continues to use this so as bad as the problem sounds it really can't be that big of a deal in the end. At least that's my logic.

lukdesigns 12-12-2010 04:51 PM

Thank you, works great!
But how to change language of this text: "Be the first of your friends to like this" and like button ?

carsafety 03-02-2011 12:55 PM

Facebook plugins/like.php has been the top referrer (outside of search engines) for a few months now. Great mod!

yamahapaul 03-05-2011 10:01 AM

Quote:

Originally Posted by soundbarrierpro (Post 2118228)
This mod is not compatible with vbSEO. You will get an error every time. In order for the app to work, you must make coding changes which are available at vbSEO forums.


I run the latest vbseo on 3.8.5 and this mod works fine for me-


https://vborg.vbsupport.ru/showthrea...03#post2152203

SVTCobraLTD 03-08-2011 02:00 AM

Nevermind got it to work. I put the fb.js file in forum root instead of site root.

How can I change the font color of "Be the first of your friends to like this."


All times are GMT. The time now is 01:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01944 seconds
  • Memory Usage 2,112KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete