I am getting a parse error in groucp.php
Parse error: parse error, unexpected ';' in /home/somekin/public_html/circle/groupcp.php on line 1227
This is the line it is referring to:
- Code: Select all
while( $is_autogroup_enable = ($row['group_count'] <= $userdata['user_posts'] && $row['group_count_max'] > $userdata['user_posts']) ? true : false;
and the bigger picture
- Code: Select all
// Select all other groups i.e. groups that this user is not a member of
//
$ignore_group_sql = ( count($in_group) ) ? "AND group_id NOT IN (" . implode(', ', $in_group) . ")" : '';
$sql = "SELECT group_id, group_name, group_type, group_count , group_count_max
FROM " . GROUPS_TABLE . " g
WHERE group_single_user <> " . TRUE . "
$ignore_group_sql
ORDER BY g.group_name";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql);
}
$s_group_list_opt = '';
while( $is_autogroup_enable = ($row['group_count'] <= $userdata['user_posts'] && $row['group_count_max'] > $userdata['user_posts']) ? true : false;
$row = $db->sql_fetchrow($result) )
{
if ( $row['group_type'] != GROUP_HIDDEN || $userdata['user_level'] == ADMIN || $is_autogroup_enable )
{
$s_group_list_opt .='<option value="' . $row['group_id'] . '">' . $row['group_name'] . '</option>';
}
}
$s_group_list = '<select name="' . POST_GROUPS_URL . '">' . $s_group_list_opt . '</select>';
if ( $s_group_list_opt != '' || $s_pending_groups_opt != '' || $s_member_groups_opt != '' )
{
//
// Load and process templates
//
When I remove the semi colon, I get a parse error for an unexpected T_VARIABLE. I really dont know a whole lot of php and I have a feeling this is pretty easy to fix. Everything about the mod works except that when you click on my groups link, we get this.
Ive started fresh three times now and get the same error everytime so I assume its not a mistake on my part, although I dont see that anyone else had a similar problem. I am using phpbb 2.11 of course. And this is the first time I've installed a mod that even bothered with groucp.php so I dont think its a mod incompatibility unless this is something to do with 2.11. In any case, I LOVE this mod and really want to be able to use it. Everything aside from this worked perfectly.
Any help would be so greatly appreciated !
I posted this at the phpbb support forums and it looks like it will be on page 2 before anyone who might be able to help gets a chance to respond.

