added facebook like functionality to posts.
$entry_array = 'index.php?entry='.$entry;
$entry_array = 'comments.php?y='.$y.'&m='.$m.'&entry='.$entry;
$blog_content .= '<BR><iframe src="http://www.facebook.com/widgets/like.php?href=http://yourblogaddress.com/' . $entry_array . '" scrolling="no" frameborder="0" style="border:none; width:450px; height:30px" allowTransparency="true" colorscheme="dark" "></iframe>';
you can add this anywhere, i added it under the date. you will see this section listed as // DATE
I think you have an extra double quote after dark. With your code it worked in every browser except for IE. Removing the double quote made it work in everything.
Thanks for the tip!
I tried this and got nothing at all. I changed the 'yourblogaddress' bit to my blog address, and took out the extra double quote. There wasn't a // DATE section on my themes.php page, so put that line of code under
$entry_array = $GLOBALS;
in the // SUBJECT section. You said it could go anywhere.
What might I have done wrong?
Is it possible that these changes do not work for the theme used?
I have made these changes to two pages I have and only works in one of them (which is not working is version 0.5.0).
Any idea what might be wrong?
Thanks in advance.
I got it to work on the Default Theme.
I also saw where I could remove "Created by" as it's a Personal Blog I don't really need "Created by"
thanks' for the tip..
this works for google+
$gplus_array = $base_permalink_url . 'index.php?entry=' . $entry;
at line 400 and edit line 402 to
$str .= ' ( ' . round( $rating * 5, 1 ) . ' / ' . $votes . ' )' . ' | ' . '<g:plusone size="small" annotation="none" href="' . $gplus_array . '"></g:plusone>';
Thanks for the script (y)
Log in to post a comment.