yeah i know, i am just making my own changes to it. mainy using it for the connect with facebook, and the avatar linking. good work btw.keitzy wrote:The like button is for each post not the page. I am working on the fix for the admin settings.
yeah i know, i am just making my own changes to it. mainy using it for the connect with facebook, and the avatar linking. good work btw.keitzy wrote:The like button is for each post not the page. I am working on the fix for the admin settings.
Code: Select all
'FBLIKE' => ($forum_id == $auth_role['forum_id']) ? '' : '<div style="overflow:visible !important;"><br /><fb:like href="' . generate_board_url() . '/viewtopic.php?f=' . $forum_id . '&t=' . $topic_data['topic_id'] . '&p=' . $row['post_id'] . '#p' . $row['post_id'] . '" ' . (($config['fb2011_like_layout'] == 'standard') ? '' : 'layout="' . $config['fb2011_like_layout'] . '" ') . (($config['fb2011_like_action'] == 'like') ? '' : 'action="' . $config['fb2011_like_action'] . '" ') . 'show_faces="' . $config['fb2011_like_faces'] . '" ' . 'width="' . $config['fb2011_like_width'] . '" ' . 'font="' . $config['fb2011_like_font'] . '"' . (($config['fb2011_like_color'] == 'light') ? '' : 'colorscheme="' . $config['fb2011_like_color'] . '" ') . ' /></div>'),
'FBCOMMENTS' => ($forum_id == $auth_role['forum_id']) ? '' : '<div style="display:inline;"><br /><fb:comments href="' . generate_board_url() . '/viewtopic.php?f=' . $forum_id . '&t=' . $topic_data['topic_id'] . '&p=' . $row['post_id'] . '#p' . $row['post_id'] . '" xid="' . $row['post_id'] . '" numposts="2" width="' . $config['fb2011_like_width'] . '" publish_feed="true" /></div>'),
Code: Select all
'FBLIKE' => ($forum_id == $auth_role['forum_id'] || $config['fb2011_like_enable'] == 'no' ? '' : '<div style="overflow:visible !important;"><br /><fb:like href="' . generate_board_url() . '/viewtopic.php?f=' . $forum_id . '&t=' . $topic_data['topic_id'] . '&p=' . $row['post_id'] . '#p' . $row['post_id'] . '" ' . (($config['fb2011_like_layout'] == 'standard') ? '' : 'layout="' . $config['fb2011_like_layout'] . '" ') . (($config['fb2011_like_action'] == 'like') ? '' : 'action="' . $config['fb2011_like_action'] . '" ') . 'show_faces="' . $config['fb2011_like_faces'] . '" ' . 'width="' . $config['fb2011_like_width'] . '" ' . 'font="' . $config['fb2011_like_font'] . '"' . (($config['fb2011_like_color'] == 'light') ? '' : 'colorscheme="' . $config['fb2011_like_color'] . '" ') . ' /></div>'),
'FBCOMMENTS' => ($forum_id == $auth_role['forum_id'] || $config['fb2011_comment_enable'] == 'no' ? '' : '<div style="display:inline;"><br /><fb:comments href="' . generate_board_url() . '/viewtopic.php?f=' . $forum_id . '&t=' . $topic_data['topic_id'] . '&p=' . $row['post_id'] . '#p' . $row['post_id'] . '" xid="' . $row['post_id'] . '" numposts="2" width="' . $config['fb2011_like_width'] . '" publish_feed="true" /></div>'),
Code: Select all
$aclsql = "SELECT forum_id
FROM " . ACL_GROUPS_TABLE . "
WHERE auth_role_id = '16'";
$result = $db->sql_query($aclsql);
$auth_role = $db->sql_fetchrow($result);
'FBLIKE' => ($forum_id == $auth_role['forum_id']
Eh, iv no idea, just inputed my codes and now it seems to connect, dont know if thats a good thing or bad thingkeitzy wrote:I'm surprised its actually posting to facebook. How did you get an appid for localhost?
Code: Select all
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ps3coffindodgers.com%2Fviewtopic.php%3Ff%3D{FORUM_ID}%26t%3D{TOPIC_ID}&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:45px"></iframe>
no, for individual posts..keitzy wrote:You mean for the whole topic?
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions_fb2011.php on line 35: simplexml_load_file() [function.simplexml-load-file]: URL file-access is disabled in the server configuration
[phpBB Debug] PHP Notice: in file /includes/functions_fb2011.php on line 35: simplexml_load_file(http://www.facebook.com/translations/FacebookLocales.xml) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found
[phpBB Debug] PHP Notice: in file /includes/functions_fb2011.php on line 35: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://www.facebook.com/translations/FacebookLocales.xml"
[phpBB Debug] PHP Notice: in file /includes/functions_fb2011.php on line 39: Invalid argument supplied for foreach()
[phpBB Debug] PHP Notice: in file /adm/index.php on line 151: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3502)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3502)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3502)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3502)
Looks like this will be a no go on my live site, my host says that i need PHP setting called "allow_url_fopen" but they wont allow it due to it being a security concern as it creates cronss-site scripting attacks. He suggests i ask for a way around this or use other plugin.keitzy wrote:Oh. Looks like you may need to contact your host to get them to add url file access for your web hosting.
In the Facebook 2011 settings you can choose what settings you want for your like button.