1
peterr
WF-Links - displaying comments
  • 2007/9/28 5:52

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


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

Login

Who's Online

267 user(s) are online (223 user(s) are browsing Support Forums)


Members: 0


Guests: 267


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits