Форуми / Cotonti / Support / paginasion synax

Kaan
#1 21.11.2010 21:11
Parse error: syntax error, unexpected ',' in

$pagnav = sed_pagination('plug.php?m=details&id='.$urr['user_id'].'&ps='.$ps.''), $dp, $totalitems, $cfg['plugin']['userpages']['countonpage'], "dp", "ajaxSend", "url: "plug.php?r=userpages&id='.$urr['user_id']."&ps=".$ps."", divId: 'reloadp', errMsg: ".$L['plu_msg500']."";

Where is the problem.?
esclkm
#2 21.11.2010 21:23
plug.php = users.php

"plug.php?r=userpages&id='.$urr['user_id']." ="plug.php?r=userpages&id=".$urr['user_id']."
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
Kaan
#3 21.11.2010 23:29
The problem continues
GHengeveld
#4 22.11.2010 00:40
By the looks of it the closing parenthesis is in the wrong place. Also, the number of arguments for sed_pagination is incorrect. The last one, 'object' should be a JSON object I think (not sure, but it looks that way). Try this:
$pagnav = sed_pagination(
	'plug.php?m=details&id='.$urr['user_id'].'&ps='.$ps, 
	$dp, 
	$totalitems, 
	$cfg['plugin']['userpages']['countonpage'], 
	"dp", 
	'{
		"ajaxSend", 
		"url": "plug.php?r=userpages&id='.$urr['user_id'].'&ps='.$ps.'", 
		"divId": "reloadp", 
		"errMsg": "'.$L['plu_msg500'].'"
	}'
);

By the way, where did you find this code?
Kaan
#5 22.11.2010 00:57
Thank you Koradhil
userpages plugins