Pagina 1 din 1

unexpected T_IF, expecting ')' in

Scris: 11-Aug-2013, 19:16:42
de alecsandrudani
dupa ce am instalat modul ultimate_points am primit aceasta eroare la functions_posting.php

Cod: Selectaţi tot

Parse error: syntax error, unexpected T_IF, expecting ')' in /home/vlad/public_html/includes/functions_posting.php on line 2126
la linia 2126 am acest cod

Cod: Selectaţi tot

if ( $config['points_enable'] && $points_config['pertopic_enable'] && $p_pertopic > 0 )

Re: unexpected T_IF, expecting ')' in

Scris: 11-Aug-2013, 19:28:37
de Anișor
Posteaza aici functions_posting.php folosing codul BB

Re: unexpected T_IF, expecting ')' in

Scris: 11-Aug-2013, 19:43:35
de alecsandrudani
care este codul bb ?

Re: unexpected T_IF, expecting ')' in

Scris: 11-Aug-2013, 19:47:13
de Anișor
Foloseste codul BB pentru coduri adica

Cod: Selectaţi tot

 [/ code]

Re: unexpected T_IF, expecting ')' in

Scris: 11-Aug-2013, 19:49:23
de alecsandrudani
nu pot posta intreg codul pentru ca este limita la 60 de mii de caractere! codul contine mai mult de 100 de mii asa ca postez un link de download
http://www21.zippyshare.com/v/11989228/file.html

Re: unexpected T_IF, expecting ')' in

Scris: 11-Aug-2013, 19:56:06
de Anișor
Deschide functions_posting.php , cauta :

Cod: Selectaţi tot

		if ($post_mode == 'post')
		{
			$sql_data[TOPICS_TABLE]['sql'] = array(
				'topic_first_post_id'		=> $data['post_id'],
				'topic_last_post_id'		=> $data['post_id'],
				'topic_last_post_time'		=> $current_time,
				'topic_last_poster_id'		=> (int) $user->data['user_id'],
				'topic_last_poster_name'	=> (!$user->data['is_registered'] && $username) ? $username : (($user->data['user_id'] != ANONYMOUS) ? $user->data['username'] : ''),
				'topic_last_poster_colour'	=> $user->data['user_colour'],
				'topic_last_post_subject'	=> (string) $subject,

			// Start Ultimate Points
			if ( $config['points_enable'] && $points_config['pertopic_enable'] && $p_pertopic > 0 )
			{
				$ultimate_points->new_topic_ch($data['forum_id'], $data['topic_id'], $ultimate_points->strip_text($data['message']));
			}
			// End Ultimate Points

			);
		}
Inlocuieste cu :

Cod: Selectaţi tot

		if ($post_mode == 'post')
		{
			$sql_data[TOPICS_TABLE]['sql'] = array(
				'topic_first_post_id'		=> $data['post_id'],
				'topic_last_post_id'		=> $data['post_id'],
				'topic_last_post_time'		=> $current_time,
				'topic_last_poster_id'		=> (int) $user->data['user_id'],
				'topic_last_poster_name'	=> (!$user->data['is_registered'] && $username) ? $username : (($user->data['user_id'] != ANONYMOUS) ? $user->data['username'] : ''),
				'topic_last_poster_colour'	=> $user->data['user_colour'],
				'topic_last_post_subject'	=> (string) $subject,
			);

			// Start Ultimate Points
			if ( $config['points_enable'] && $points_config['pertopic_enable'] && $p_pertopic > 0 )
			{
				$ultimate_points->new_topic_ch($data['forum_id'], $data['topic_id'], $ultimate_points->strip_text($data['message']));
			}
			// End Ultimate Points
		}
Apoi sterge cache.

Re: unexpected T_IF, expecting ')' in

Scris: 11-Aug-2013, 21:52:05
de alecsandrudani
Multumesc! Sa rezolvat!

Re: unexpected T_IF, expecting ')' in

Scris: 12-Aug-2013, 01:38:39
de alecsandrudani
scuzati 2x post!
am o problema de mult timp pe forum!
eu incerca sa pun niste linkuri sub logo! acolo langa panoul utilizatorului, faq,ecc... si dispar! dispar pur si simplu fara ca cineva sa modifice! a disparut linkul care iti arata cate puncte ai pe forum si cel text! ce o avea oare?

Re: unexpected T_IF, expecting ')' in

Scris: 12-Aug-2013, 08:13:07
de Anișor
Nu amesteca subiectele.

Subiect inchis.