1
The comments in wf-links are displayed, regardless of the XOOPS config setting. Where a module has specified via the configuration, to "disable comments", then the "comment link" should not be displayed (Smartsection only displays the comments if they are enabled, I think ??) in the /modules/wflinks/singlelink.php
I haven't tested this modification, but it appears that it would only take 3 lines to add, as follows:
1. In /modules/wflinks/include/linkloadinfo.php, add this at the end
$link['comment_rules'] = $xoopsModuleConfig[''com_rule''];
2. Line 79 of /modules/wflinks/templates/wflinks_singlelink.html , currently displays the comments, as follows ..
<a href="<{$xoops_url}>/modules/<{$link.module_dir}>/singlelink.php?cid=<{$link.cid}>&lid=<{$link.id}>"><{$smarty.const._COMMENTS}> (<{$link.comments}>)a>
3. Change this, so that the displaying of the comments are conditional ..
<{if $link.comment_rules > 0}>
<a href="<{$xoops_url}>/modules/<{$link.module_dir}>/singlelink.php?cid=<{$link.cid}>&lid=<{$link.id}>"><{$smarty.const._COMMENTS}> (<{$link.comments}>)a>
<{/if}>
This _should_ work okay.
NO to the Microsoft Office format as an ISO standard. Sign the
petition