hey everyone, i fixed the 3.8.x problem...
put this code
PHP Code:
require(DIR . '/fbb/hook_process_templates_complete.php');
into
global complete plugin hook
so it looks like this
PHP Code:
require(DIR . '/fbb/iframe/hook_global_complete.php');
require(DIR . '/fbb/hook_process_templates_complete.php');
if (isset($vbulletin->fbb['runtime']['javascript_code'])) {
$vbulletin->fbb['runtime']['javascript_needed'] = true;
}
if ($vbulletin->fbb['runtime']['javascript_needed']) {
//tell browsers to skip fb:xxx tags
$output = preg_replace('/\<html (xmlns="[^"]+")?/i','$0 xmlns:fb="http://www.facebook.com/2008/fbml"',$output);
//include footer
if (isset($vbulletin->fbb['runtime']['javascript_code'])) {
//include our php-based javascript code
$vbulletin->fbb['runtime']['footer'] = str_replace(
'//FBB-JAVASCRIPT-FROM-PHP-PLACEHOLDER-PLEASE-DO-NOT-REMOVE-ME'
,$vbulletin->fbb['runtime']['javascript_code']
,$vbulletin->fbb['runtime']['footer']
);
}
$search = array('</body>');
$replace = array($vbulletin->fbb['runtime']['footer'] . "\n" . '</body>');
$output = str_replace($search,$replace,$output);
}
then disable this hook
process_templates_complete
and thats it, it should be working
and if you wanna move the connect button from your navbar and move it some where else... here is the code of that button
Code:
<a id="navbar_fbb_link" href="$vboptions[bburl]/facebook.php" rel="nofollow"<if condition="$vbulletin->fbb['config']['activated_system_wide']"> onClick="FB.Connect.requireSession(); return false;"</if>>
<img src="$vboptions[bburl]/fbb/facebook_logo_16x16.gif" width="16" height="16" border="0"/>
$vbphrase[fbb_navbar_button_text]
</a>
make sure to disable it in your facebook bridge settings first before adding this code, otherwise you will have two connect buttons