Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2011-03-02 09:38:09

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: Add facebook like button to each article -- without a plugin?

I hit the same problem doing this and used

<meta property="og:description" content='<txp:rah_function call="strip_tags"> <txp:body /></txp:rah_function>' />

sorry it uses a plugin … but it worked, you could use the php function … strip_tags directly.


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#14 2011-03-02 18:48:21

Malize
Member
From: Barcelona
Registered: 2007-08-28
Posts: 77
Website

Re: Add facebook like button to each article -- without a plugin?

Uli, thanks for your answer although it didn’t work either.

Geoff, thank you very much for this useful information, I rather have this working with a plugin than not working at all… :)

Offline

#15 2011-03-03 17:19:26

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: Add facebook like button to each article -- without a plugin?

Hi, I have something like this working on Roll Over Rover Threads, Inc (look at any individual design page). Here is the code I used:

<txp:if_individual_article>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.roll-over-rover.com%2Fdesigns%2F<txp:article_url_title />&amp;layout=box_count&amp;show_faces=false&amp;width=60&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=60" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:60px; height:60px;text-align:center" allowTransparency="true"></iframe></txp:if_individual_article>

Offline

#16 2011-03-03 17:25:14

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Add facebook like button to each article -- without a plugin?

Would this new plugin help?


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB