Projects ⇒ Bugs ⇒ #599: Non-Compliance - Article Comments Various Fixes ⇒ CPG Dragonfly™ CMS
Bug #599 Non-Compliance - Article Comments Various Fixes
Project: Dragonfly 9.0.3 -> 9.2 Themes Category: News
Submitted: Wednesday, July 20, 2005 (04:03:21) Modified: Monday, January 09, 2006 (10:28:47)
Status: Closed Assigned to:
PHP Version: Irrelevant HTTPD Server: Apache 1.3
Votes: 1
Vote results:
Avg. Score: 3.0 ± 0.0 Reproduced: 0 of 0 (0.0%)

View/Vote Add Comment

by: 64bitguy
Description:
------------
I have recoded the article comments section for the Dragonfly theme to correct a number of Non-Compliance issues.

Please find the below code. Please note that this does not address the "Parent" comments problem that I have described in the bug report ID #598 (which seems to have been somehow misfiled).

If someone would be so kind as to update CVS with this new comments.html file, I'm sure others would appreciate it.



Reproduce code:
---------------
<!-- IF S_NOCOMMENTS -->
<div class="table1">
<center><font class="content">{S_NOCOMMENTS}</font></center>
</div>
<!-- ENDIF -->
<!-- IF S_THRESHOLD -->
<div class="table1" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- IF S_TITLE -->
<tr><td bgcolor="#D3DFE3" align="center"><font class="content" color="#009900">"{S_TITLE}" | <a href="{U_USER}">{S_USER}</a> | {S_COUNT} {S_COMMENTS}</font></td></tr>
<!-- ENDIF -->
<tr><td bgcolor="#ffffff" align="center" width="100%">
<form method="post" action="{U_ARTICLE}" {I18N}>
<font color="#000000">{S_THRESHOLD}</font><font class="content">
{S_SELTHOLD} {S_SELMODE} {S_SELORDER}
<input type="submit" value="{S_REFRESH}" />
</font></form>
<!-- IF S_POSTCOMM -->
<form action="{U_TOPREPLY}" method="post">{F_NEWSHIDE}
<input type="submit" value="{S_POSTCOMM}" />
</form>
<!-- ENDIF -->
</td></tr>
<tr><td bgcolor="#d3dfe3" align="center"><font class="tiny">{S_COMMWARN}</font></td></tr>
</table>
</div><br />
<!-- ENDIF -->
<!-- IF U_MODERATE -->
<form action="{U_MODERATE}" method="post">
<!-- ENDIF -->

<!-- BEGIN comment -->
<!-- IF comment.IS_NESTED -->
<ul>
<!-- ELSEIF comment.IS_FIRST -->
<div class="table1">
<!-- ENDIF -->
<!-- IF comment.IS_NESTED_END -->
</ul>
<!-- ELSEIF comment.IS_FIRST_END -->
</div><br />
<!-- ELSEIF comment.IS_LIST -->
<li><font class="content"><a href="{comment.U_READCOMM}">{comment.S_READCOMM}</a> {comment.S_BYNAME} {comment.S_ON} {comment.S_DATE}</font><br />
<!-- ELSE -->
<a href="{comment.I_COMMENTID}" title="{comment.I_COMMENTID}"></a>
<div style="background-color: #EFEFEF; filter:alpha(Opacity=90);">
<b>{comment.S_SUBJECT}</b> <font class="content">
<!-- IF comment.I_SCORE -->
({comment.S_SCORE} {comment.I_SCORE}
<!-- IF comment.S_REASON -->
, {comment.S_REASON}
<!-- ENDIF -->
)
<!-- ENDIF -->
<br /> {comment.S_BYNAME} {comment.S_ON} {comment.S_DATE} {comment.S_IP}
<!-- IF comment.U_USERINFO -->
<br />(<a href="{comment.U_USERINFO}">{comment.S_USERINFO}</a> | <a href="{comment.U_USERPM}">{comment.S_USERPM}</a>)
<!-- ENDIF -->
</font>
</div>
{comment.S_COMMENT}
<!-- IF comment.U_COMMENTEXT -->
<br /><br /><b><a href="{comment.U_COMMENTEXT}">{comment.S_COMMENTEXT}</a></b>
<!-- ENDIF -->
<br /><br /><div align="right">
<font class="content">
<!-- IF comment.U_REPLY -->
<a href="{comment.U_REPLY}">{comment.S_REPLY}</a>
<!-- ENDIF -->
| <a href="{comment.U_PARENT}">{comment.S_PARENT}</a>
<!-- IF comment.S_MODERATE -->
| {comment.S_MODERATE}
<!-- ENDIF -->
<!-- IF comment.U_DELETE -->
| <a href="{comment.U_DELETE}">{comment.S_DELETE}</a>
<!-- ENDIF -->
</font><br />
</div>
<!-- ENDIF -->
<!-- END comment -->

<!-- IF U_MODERATE -->
<center>{F_MODHIDE}
<input type="image" src="images/moderate.gif" name="submit" style="border: 0px" /></center></form>
<!-- ENDIF -->

Expected result:
----------------
Fixes a number of compliance issues with article displays.
by: DJMaze
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make Dragonfly 9.0.3 -> 9.1 Themes better.
User Info

Welcome Anonymous



(Register)
Community

Support for DragonflyCMS in a other languages:

Deutsch
Español