Quote
Ankur wrote:
Code Updated below to the Updated version of Comments Box :
Add it as either Lower Center or Upper Center Panel : Remember to replace XXXXX with your APP ID or XID. In new Interface, Old Comments may Lost !
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]openside("Comments via Facebook");
$curlink = 'http://';
$curlink .= $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$curlink = urlencode($curlink);
echo "<table cellpadding='0' cellspacing='0' width='auto' class='center tbl-border'>\n<tr>\n";
echo "<td class='tbl2' colspan='2'><strong>Comments Box</strong></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl1'>\n";
echo "<div id='fb-root'></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: 'XXXXX', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>\n";
echo "<fb:comments xid='XXXXX' href='".$curlink."' numposts='5' width='auto' publish_feed='false' migrated='1'></fb:comments>\n";
echo "</td></tr>\n</table>\n";
closeside();[/syntaxhighlighter]
You can also Set the width according to your needs...
Quote
Jack Daniels wrote:
Ok, got it working but now it take the panels on the right site and move it under the whole damn thing.
Quote
openside("Comments via Facebook"<img src="../images/smiley/wink.gif" alt="Wink" style="vertical-align:middle;">;
// Code Added for Facebook Comments Box
opentable("Comments via Facebook");
$curlink = 'http://';
$curlink .= $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$curlink = urlencode($curlink);
echo "<table cellpadding='0' cellspacing='0' width='auto' class='center tbl-border'>\n<tr>\n";
echo "<td class='tbl2' colspan='2'><strong>Umsagnir</strong></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl1'>\n";
echo "<div id='fb-root'></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: 'XXXXXXXXXXXXX', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/is_IS/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>\n";
echo "<fb:comments xid='XXXXXXXXXXXX' href='".$curlink."' numposts='5' width='auto' publish_feed='true' migrated='1'></fb:comments>\n";
echo "</td></tr>\n</table>\n";
closetable();
// Code Ends here
Category Forum
Code Snippet and functions - 8Labels
None yet
Statistics
9 participants
Notifications
You are not receiving notifications from this thread.
Related Questions