Forums / Cotonti / Support / paginasion synax

GHengeveld
#27208 2010-11-22 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?