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

DaanLT 02-16-2011 10:01 AM

after latest vbb 4 update its broken again ><

matrixmark 02-16-2011 11:22 AM

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

asus78 02-18-2011 01:26 AM

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?

asus78 02-18-2011 02:25 AM

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 02-20-2011 12:27 PM

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.

asus78 03-02-2011 03:52 AM

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!

asus78 03-02-2011 03:56 AM

<div id="picturecontainer">
<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://myttoos.com/community/album/{vb:raw page_url}&amp;layout=standard&amp;show_faces=true& amp;width=450&amp;action=like& amp;font=tahoma&amp;colorscheme=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?

BBF 04-20-2011 09:56 PM

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%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...d.php?t=123456 (123456, just for example)
but just got the same error.

Any ideas?

TalkVirginia 04-22-2011 02:09 AM

Thank you! It works - Nominated MOTM

lild100 04-23-2011 07:39 PM

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/fo...of-each-member

pharlap 04-25-2011 06:01 AM

Great Mod.

Is it possible to have this shown on every post ( not just post #1 in a thread) ?

Cheers

ttran 04-25-2011 12:01 PM

Could it be "Like" in every post like mod "Thanks" guys?

Bundle 04-25-2011 08:54 PM

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 04-25-2011 09:12 PM

Tagged

itforumz 04-28-2011 05:03 AM

Good mod

hiker 05-17-2011 04:42 AM

Any way to add the Send button to this code, as shown here?
https://www.facebook.com/note.php?no...50231557835844

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:
https://vborg.vbsupport.ru/showthread.php?t=263717

crazymilk 05-21-2011 08:47 AM

Don't know whats happen but i get this error? it is showing 2 url when posting link?

The page at
HTML Code:

http://www.blackops-squad.com/forums/http://www.blackops-squad.com/forums/showthread.php?3014-Three-toed-sloth-crossing-the-road-I-believe-I-can-fly-remix
could not be reached.

And now I can,t get in to edit my ads?

neetusn 06-16-2011 11:25 AM

when i like any thread in the forum, my facebook wall displays only thread link, but i need to display thread title.

MagicThemeParks 06-27-2011 12:27 AM

Option 2 has a missing bracket in the conditional code

Should be....

Code:

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">

oldfan 06-28-2011 01:36 PM

How would I align this to the right of the thread title, instead of underneath it?

thanks

flewfruit 06-30-2011 12:32 PM

I can't find Advertising > New Ad >. vB Version: 3.6.3. Please help me, thanks =)

oldfan 06-30-2011 01:24 PM

Quote:

Originally Posted by flewfruit (Post 2215015)
I can't find Advertising > New Ad >. vB Version: 3.6.3. Please help me, thanks =)

That not a feature on vb3

flewfruit 06-30-2011 01:51 PM

Do you know how kann I install this on vb3?

BirdOPrey5 06-30-2011 04:18 PM

Moved this template modification to the appropriate forum.

HKp30 10-16-2011 01:04 AM

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}&amp;
send=false&amp;
layout=button_count&amp;
width=85&amp;
show_faces=false&amp;
action=like&amp;
colorscheme=light&amp;
font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:55px; height:21px;" allowTransparency="true"></iframe>

Any ideas??

Griffoneur 11-02-2012 12:58 AM

Working with 4.2.0
Thanks for this mod.

Marcin1 11-06-2012 06:23 PM

It's not working for me 4.2.

Cobro 11-13-2012 08:45 PM

How can i add this for every thread ?

Jpolola 04-03-2013 12:48 PM

Why it only shows to registered members and not for the admin? I am using 4.2.0 PL3

orenlebbo 11-18-2013 08:11 AM

Hi,

This method is for adding the button to the first message only.

Is there a way to add LIKE button to ALL posts in a thread?

Thanks :)


All times are GMT. The time now is 06:07 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.01467 seconds
  • Memory Usage 1,815KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)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