Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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 />&layout=box_count&show_faces=false&width=60&action=like&font=arial&colorscheme=light&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
Re: Add facebook like button to each article -- without a plugin?
Would this new plugin help?
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline