2012-12-24, 06:16 AM
Hi, im trying to add a radio page to my forum that only allows registered users to see the page, I have used this code so far
I tried to add our code for the facebook recommend button on this page http://sharetune.net/misc.php?page=radio into SECTION1 but when I do, and try to load the page it says it hasnt been configured correctly yet seems to work perfectly fine on the other page.
The code in question that doesnt seem to be working is this
This is a page that I have all that code including the facebook code posted above it will show you the error that happens.
http://sharetune.net/misc.php?page=test
<?php
if(!$mybb->user['uid'])
{
error_no_permission();
}
$template .= '<html>
<head>
<title>'.$pages['name'].' - '.$mybb->settings['bbname'].'</title>
{$headerinclude}
</head>
<body>
{$header}
SECTION1
<br/>
{$footer}
</body>
</html>';
$template=str_replace("\'", "'", addslashes($template));
eval("\$page=\"".$template."\";");
output_page($page);
?>
I tried to add our code for the facebook recommend button on this page http://sharetune.net/misc.php?page=radio into SECTION1 but when I do, and try to load the page it says it hasnt been configured correctly yet seems to work perfectly fine on the other page.
The code in question that doesnt seem to be working is this
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=OURAPPIDISHERE";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
This is a page that I have all that code including the facebook code posted above it will show you the error that happens.
http://sharetune.net/misc.php?page=test