vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Add Facebook "Like" button to your threads [vB 3.8.x] (https://vborg.vbsupport.ru/showthread.php?t=241053)

alehawk 07-22-2010 11:37 AM

Ah yes, I got it, it may be that... tnx 4 the reply!

ram94401 07-25-2010 04:46 AM

Thank you hubie. I added like button next to Post Reply button in each thread. I like it this way instead of placing the like button after first post. Like button is more prominent if you place it in the top of thread -- just my thought.

I modfied showthread template. Find

Code:

<td class="smallfont"><a

href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"

rel="nofollow">

and create another td element after this td; place the iframe tag between the new td tags.

To see how it looks, see http://www.digitalbhoomi.in/forums/.

Complete code:

Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
        <if condition="$show['largereplybutton']">
        <td width="120px;" valign="top" class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a>
        </td>
        <td>
        <iframe scrolling="no" frameborder="0" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.digitalbhoomi.in/forums/showthread.php?t=$thread[threadid]&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=30" style="border: medium none; overflow: hidden; width: 450px; height: 30px;" allowtransparency="true"></iframe>
        </td>       
       
        <else />

I used iframe instead of xfbml. The reason is that xfbml needs Javascript SDK which mess up with flash ads in the page. Facebook has a solution for this, but it's not working. Moreover, I don't want to add too many javascripts in the forum page that will slow down the page loading.

soundbarrierpro 08-06-2010 12:56 PM

Anybody knows how this will work with vbSEO? How would you change standard URL format to SEO urls?

ex. http://www.mysite.com/forum-name/topic-name.html

?

Thank you

ram94401 08-07-2010 02:12 PM

Quote:

Originally Posted by soundbarrierpro (Post 2080043)
Anybody knows how this will work with vbSEO? How would you change standard URL format to SEO urls?

ex. http://www.mysite.com/forum-name/topic-name.html

?

Thank you

For Like URL, you dont need to optimize it for SEs. If you want to do it, I guess it may not be too difficult. Find the variable for forum name and topic name and format it the way you want it.

soundbarrierpro 08-07-2010 07:33 PM

Quote:

Originally Posted by ram94401 (Post 2080518)
For Like URL, you dont need to optimize it for SEs. If you want to do it, I guess it may not be too difficult. Find the variable for forum name and topic name and format it the way you want it.

The URL added to my FB page isn't a direct link to the topic I "like". Instead since my URL's are SEO'd, the link added on facebook is just my domain name. If a facebook friend clicks the link that was liked, it just goes to my base domain URL, not the topic.

I need to know how I can code http://www.YOURSITE.com/showthread.php$session[sessionurl]?p=$post[postid]&amp;show_faces=false&amp

To be an SEO’d URL

kall 08-07-2010 08:05 PM

Quote:

Originally Posted by ram94401 (Post 2080518)
For Like URL, you dont need to optimize it for SEs. If you want to do it, I guess it may not be too difficult. Find the variable for forum name and topic name and format it the way you want it.

That's not true. If vB says one URL, but when Facebook's spider hits it, it sees the vBSEO URL (or vice-versa), the Like will not work.

@soundbarrierpro: There is a thread at vbseo.com that deals with this, just search for Facebook over there. :)

paradoxx109 08-15-2010 01:37 AM

Hi, excellent mod, but I have 2 issues, I have already read every post here but nothing worked.

First: im using FF 3.5.10 and when I hit the like button, the pop up loops between like and unlike and wont stop.

Second: When you use it in IE, it works fine, but when you go to your FB wall the link redirects to a page not found, because is not including the post number.

Im using the IFrame code and vB 3.8.6PL1

Any tips?

paradoxx109 08-15-2010 06:04 PM

my second issue above has been already fixed.

Now i wonder, is there any way I can locate the like button just aside the twitter as in this mod

https://vborg.vbsupport.ru/showthread.php?t=248568

Any help will be appreciated.

hubie 08-15-2010 07:53 PM

Quote:

Originally Posted by paradoxx109 (Post 2084370)
my second issue above has been already fixed.

Now i wonder, is there any way I can locate the like button just aside the twitter as in this mod

https://vborg.vbsupport.ru/showthread.php?t=248568

Any help will be appreciated.

Post #4 of that thread explains how to locate the like button. Take a look to his code.

Carlos X 08-15-2010 08:07 PM

I have vbSEO installed, so does this work with the facebook like? o_O

And, I'm english spoken, I see another language in your ScreenCaps.


All times are GMT. The time now is 03:43 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02264 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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