2010-07-09, 06:10:46
Hi again
I try to write function for Like button but phpget_page_url() is not working, how can i get it works.
I try both " ' quotation mark none of them working . (My PHP experience is zero)
I try to write function for Like button but phpget_page_url() is not working, how can i get it works.
I try both " ' quotation mark none of them working . (My PHP experience is zero)
Code:
function LikeNews(){
$go = "";
$go .= "<iframe src=\"http://www.facebook.com/plugins/like.php?href='.phpget_page_url().'&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:450px; height:80px;\" allowTransparency=\"true\"></iframe>";
return $go;
}