Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Trouble with glx_if_comments_closed
I’ve installed the glx_if plugin as I want to use the glx_if_comments_closed tag to show any previous comments when comments close.
I’ve used the tag in my comments_display form as follows:
<code>
<txp:if_comments_allowed>
<a name=“comments”></a>
<h2 class=“comments”>Comments</h2>
<txp:comments wraptag=“dl” class=”“ break=”“ />
<txp:comments_form />
<txp:else />
<txp:if_section name=“journal”>
<p class=“info”>Commenting closed for this journal entry.</p>
<txp:glx_if_comments_closed_comments>
<h2 class=“comments”>Previous Comments</h2>
<txp:comments wraptag=“dl” class=”“ break=”“ />
</txp:glx_if_comments_closed_comments>
</txp:if_section>
</txp:if_comments_allowed>
</code>
I can’t for the life of me get anything between the glx_if_comments_closed_comments tags to display. An example of a page with comments closed, but with previous comments is here
Everything else in the form works fine. Any ideas? I’m running Textpattern 4.0.3.
Offline
Re: Trouble with glx_if_comments_closed
Hi Kitto, I’m also from Leicester (near the city center). Coincidentally, I had a similar problem, which I posted here . I ended up using the default comment conditionals built into textpattern. Here is my (complete) form:
<code>
<h1><txp:title /></h1>
<p style=“font-size: 12px; margin-top: -30px;”><img src=“http://www.thekhans.me.uk/assets/images/calendar.png” width=“16px” height=“16px” style=“vertical-align: middle;” alt=“Permalink” /> <txp:permlink style=“text-decoration: none;”>Permalink</txp:permlink> <txp:if_comments><img src=“http://www.thekhans.me.uk/assets/images/comment_new.gif” width=“16px” height=“16px” style=“vertical-align: text-bottom;” alt=“Comment” /> <txp:comments_count /> comments<txp:else /><img src=“http://www.thekhans.me.uk/assets/images/comment_delete.gif” width=“16px” height=“16px” style=“vertical-align: text-bottom;” alt=“Comments off” /> Comments off</txp:if_comments></p>
<span class=“calPage”><txp:posted format=”%b” /><span class=“day”><txp:posted format=”%d” /></span></span>
<txp:body />
<div class=“hr”><hr /></div>
</code>
The only limitation I find, is that I can’t code the behaviour where comments were open (and where comments were left) but now commenting is closed.
Saj
Offline
Pages: 1