Add Comments
1) xoops_version.php
// ------------------- Comments ------------------- //
$modversion['hasComments'] = 1;
$modversion['comments']['pageName'] = 'article.php';
$modversion['comments']['itemName'] = 'art_id';
// Comment callback functions
$modversion['comments']['callbackFile'] = 'include/comment_functions.php';
$modversion['comments']['callback'] = [
'approve' => 'myexampleCommentsApprove',
'update' => 'myexampleCommentsUpdate',
];Explaination:
3) File include/comment_functions.php
Update function 'myexampleCommentsUpdate'
Approve function 'myexampleCommentsApprove'
4) Add comment includes
5) Add caller for comment system
Last updated