1
Hello,
I am trying to do me a small module, everything goes well and all thanks to the doc, but I block on one thing: the comments!
I proceed as below, but it works on a page, or video.php photo.php.
[code] $ modversion [ 'hasComments'] = 1;
$ modversion [ 'comments'] [ 'itemName'] = 'video_id';
$ modversion [ 'comments'] [ 'pageName'] = 'video.php';
$ modversion [ 'comments'] [ 'itemName'] = 'photo_id';
$ modversion [ 'comments'] [ 'pageName'] = 'photo.php';
$ modversion [ 'comments'] [ 'callbackFile'] = 'include / comment_functions.php';
$ modversion [ 'comments'] [ 'callback'] [ 'approve'] = "mymodule_com_approve";
$ modversion [ 'comments'] [ 'callback'] [ 'update'] = "mymodule_com_update"; [/ code]
It should perhaps be like this?
[code] $ modversion [ 'comments'] [1] [ 'itemName'] = 'photo_id';
$ modversion [ 'comments'] [1] [ 'pageName'] = 'video.php';
$ modversion [ 'comments'] [2] [ 'itemName'] = 'photo_id';
$ modversion [ 'comments'] [2] [ 'pageName'] = 'photo.php'; [/ code]
Sorry for my bad English, it is google translation.
Thank you in advance for your answers.