Code:
<if $forum['fid'] != 14 then>
Anything here won't be applied for forum id 14
</if>
|
Updated to v1.9:
- fix bug with this plugin not working if HTML Comments is disabled
Thanks for the update, Yumi.
Thanks for updating, Yumi
Hey Zinga, any idea why the following error appears when MyBB Go Mobile is Installed (if it's deactivated, it still appears):
Code:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /PATH_TO/inc/functions_post.php(511) : eval()'d code(10) : eval()'d code on line 6
|
It appears on pages with PHP enabled. I can't seem to figure out the problem.
The GoMobile theme is still installed even if it's deactived I believe. Are you using that theme?
What's the code in the related template anyway?
No, the error happens with my default theme and most likely every theme.
Here's the PHP code in the template 'postbit_posturl':
PHP Code:
<?php
if ($postcounter == 1)
{
global $mybb;
echo '<div style="float: left; margin-bottom: 10px; text-shadow: 0 0px 0 #303030"><span class="st_facebook_button" displayText="Facebook"></span><span class="st_twitter_button" displayText="Tweet"></span><span class="st_email_button" displayText="Email"></span></div><br class="clear" />';
}
?>
|
It's nothing special really. If I take it out, the error no longer displays.
I've even stripped out nearly most of the code lines and the error still happens. I've done the same for the language files. I've also created new files because it could be some hidden character and also converted to UTF-8 without BOM and still no luck. I can't find the solution for this problem in the GoMobile plugin so I thought that perhaps the problem would be with this one. global_start hook doesn't seem to be a problem either, I've changed the priority of the GM's one to one higher than the PHP in Templates' one and still no luck.
/edit don't ask me why that $mybb is there, I had something else there before probably and removed it and global $mybb; was left there but I doubt that's the problem
I can't see the problem with that code - tried it and works fine for me.
All I can suggest doing is modifying your functions_post.php and, on the line specified, replace eval() with die() or var_dump() (if it doesn't do it on the first post) and see what it's trying to execute.
It works fine together with MyBB GoMobile installed? That's really weird. I guess I'll have to look at functions_post.php then