vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Add New Facebook "Like" button to your threads (https://vborg.vbsupport.ru/showthread.php?t=241011)

SonicGT 12-03-2010 02:29 AM

Quote:

Originally Posted by gobears20 (Post 2127906)
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 12-03-2010 06:34 PM

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.

bagh1 12-07-2010 04:27 AM

Quote:

Originally Posted by gobears20 (Post 2128925)
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-12-2010 04:21 PM

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

SM_Rob 01-04-2011 07:03 PM

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 01-05-2011 12:26 AM

Thank you :up:

tykesplace 01-05-2011 03:32 AM

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 01-15-2011 06:35 PM

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 01-23-2011 03:12 PM

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...evin-Nash&amp; could not be reached.
////////////////

For some reason it is missing the / before showthread.php. Tried editing the SHOWTHREAD but no luck.

Winter Sonata 02-08-2011 04:34 PM

To all ppl, this works like a charm https://vborg.vbsupport.ru/showpost....32&postcount=2


All times are GMT. The time now is 09:47 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.01398 seconds
  • Memory Usage 1,739KB
  • 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_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