Stránka 1 z 1

reputation system

Napsal: ned 20. led 2013 18:42:11
od Sempoinus1
Ahoj nainstaloval jsem si Reputation System vše funguje jak má krom memberlist.php hází mi tuto chybu Parse error: syntax error, unexpected ';', expecting ')' in /home/users/ronnyt/pawno.eu/web/memberlist.php on line 656 na řádku 656 je ); patří k tomu $template->assign_vars(array(
'USER_ID' => $member['user_id'],
'REPUTATION' => $member['user_reputation'],
'U_VIEW_REP_LIST' => ($auth->acl_get('u_rs_view')) ? append_sid("{$phpbb_root_path}reputation.$phpEx", '&mode=details&u=' . $user_id) : '',
'S_RATE_USER' => ($config['rs_user_rating'] && $auth->acl_get('u_rs_give')) ? true : false,
)

Nevíte proč to nejde?

Re: reputation system

Napsal: ned 20. led 2013 18:53:49
od kksmirice
Zřejmě špatně provedená úprava souboru.
Zkontrolujte opravu:
najít:

Kód: Vybrat vše

			'U_REMOVE_FOE'		=> ($foe && $foes_enabled) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=zebra&remove=1&mode=foes&usernames[]=' . $user_id) : '',
		));
přidat za:

Kód: Vybrat vše

		// Reputation System
		$template->assign_vars(array(
			'USER_ID'			=> $member['user_id'],
			'REPUTATION'		=> $member['user_reputation'],
			'U_VIEW_REP_LIST' 	=> ($auth->acl_get('u_rs_view')) ? append_sid("{$phpbb_root_path}reputation.$phpEx", '&mode=details&u=' . $user_id) : '',
			'S_RATE_USER' 		=> ($config['rs_user_rating'] && $auth->acl_get('u_rs_give')) ? true : false,
			)
		);
		// Reputation System
Pravděpodobně Vám tam chybí )
Chyba píše - nečekané ";", očekával ")"

Re: reputation system

Napsal: ned 20. led 2013 20:29:10
od Sempoinus1
Dík funguje :)