3
hi
by debugging the xoops core code step by step I found the solution:
it is necessary to adapt xoops_version.php
$modversion['hasComments'] = 1;
$modversion['comments']['pageName'] = 'images.php';
$modversion['comments']['itemName'] = 'img_id';
$modversion['comments']['extraParams'] = ['op', 'alb_id', 'start', 'limit', 'img_submitter'];
the interesting line is
$modversion['comments']['extraParams'] = ['op', 'alb_id', 'start', 'limit', 'img_submitter'];
here you have to repeat all parameters, which should be used for redirect after posting the comment.
Important: this parameters must be in the $_POST of the site, where the comments are called from.
example:
I call my site by:
http://localhost/wggallery/htdocs/modules/wggallery/images.php?op=show&redir=list&img_id=22&alb_id=1&start=0&limit=10&img_submitter=0I post a comment. now comment system takes 'op', 'alb_id', 'start', 'limit', 'img_submitter' from the $_POST and create the redirect url based on these parameters
after succesful posting of the comment you will be redirected to site from "$modversion['comments']['pageName'] = 'images.php';" by using the param from "$modversion['comments']['extraParams']"