Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] Facebook Like Confirm Problem (Based On Sticky Thread)


  #1  
Old Dec 4, 2011, 07:53 PM
bswb97
 
158 posts · Aug 2010
I tried inserting the FB Like code from this thread into a site and it appears fine. However, there's a PHP error when you try to confirm it.

This is the URL it tries to confirm a Like for:
HTML Code:
http://invalid.invalid/?php%20echo%20$URI;%20?
I copied the exact code and put it in a footer widget.

HTML Code:
<?php $Path=$_SERVER['REQUEST_URI']; $URI='http://www.yuliapink.com'.$Path; ?>
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo $URI; ?>&layout=button_count&show_faces=false&width=450&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:21px; padding-top:10px; margin-bottom:-10px;" allowTransparency="true"></iframe>
I know widgets sometimes get goofy with PHP. Could that be an issue? I can hard-code it if that makes a difference.
  #2  
Old Dec 4, 2011, 08:32 PM
bswb97
 
158 posts · Aug 2010
For what it's worth, I got the same issue using the ShareThis plugin and putting the code into a footer widget.
  #3  
Old Dec 4, 2011, 08:33 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What kind of widget? If it was a text widget, do you have a plugin like exec-php?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Dec 4, 2011, 10:06 PM
bswb97
 
158 posts · Aug 2010
Yes, text widget and that plugin did the trick. I knew you needed one for shortcode, and now I know you need one for hard-coded PHP too.

Bookmarks

Tags
facebook like button



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Facebook Connect - works but doesn't display Facebook avatars grahambae Plugins & Atahualpa 8 Jan 29, 2012 06:17 PM
Comments about the 'So you have a problem...' thread Chuck M Atahualpa 3 Wordpress theme 4 May 9, 2011 05:10 PM
Please confirm TF is able to do what I think it can organicphoto ThemeFrame Presales 3 Mar 14, 2011 06:04 PM
[SOLVED] How to Remove the Icon Sticky.gif in Sticky Posts lexsisney Center area post/pages 1 Apr 16, 2010 01:27 PM
[SOLVED] Posts marked sticky don't show up with sticky formatting genevieve Atahualpa 3 Wordpress theme 12 Jun 30, 2009 08:06 AM


All times are GMT -6. The time now is 05:21 PM.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.