Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 MYBB 1.8 template conditionals?
Seabody Offline
Member
***
Posts: 54
Joined: Aug 2012
Post: #7
RE: MYBB 1.8 template conditionals?
Did you make any edits? Smile

Reason I ask is because I installed a freshly downloaded copy of Template Conditionals. Made no edits to the plugin. I get the following odd error:

Parse error: syntax error, unexpected ')' in C:\wamp\www\divergentfans\inc\functions_user.php(468) : eval()'d code on line 21

I've no clue how this occurs, given my syntax is currently this (if clause is just a placeholder, was testing when error first occured):

Code:
<if 1==0>
<div>Hello, World!</div>
</if>


Line 21 in functions_user is the following piece, from the user_exists() function:

PHP Code:
$query = $db->simple_select("users", "COUNT(*) as user", "uid='".(int)$uid."'", array('limit' => 1));


And line 468 (for reference) is this, from the usercp_menu_messenger() function:

PHP Code:
	eval("\$usercpmenu .= \"".$usercp_nav_messenger."\";");


The template I am editing is usercp_nav_messenger. Running an almost vanilla MyBB install, except the theme is different.

11-09-2014 05:58 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: MYBB 1.8 template conditionals? - Seabody - 11-09-2014 05:58 PM

 Standard Tools
Forum Jump: