Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Plugin Request: 'If Comments open'
On thing I miss from my MT days are the conditional ‘If Comments Open’ tags, where you could place markup to appear, only if commenting was allowed. Has anyone tackled this one already?
Cheers,
Jon VC#9
Offline
Re: Plugin Request: 'If Comments open'
Jon
I have now updated my plugin glx_if to include a if_comments_open tag.
Hope it will work like you want it to
Johan Nilsson
Offline
Re: Plugin Request: 'If Comments open'
osei, thanks a lot for adding this! When I try to install this plugin, I get the “Badly formed or empty plugin code” error. Is this me?
Cheers,
Jon VC#9
Offline
Re: Plugin Request: 'If Comments open'
hmm that is strange. But i did a minor change and just tested it here and it worked for me under rc1 and my dev 1.19, same download location as before.
But wasnt this an early bug in rc1 when installing plugins?
Johan Nilsson
Offline
Re: Plugin Request: 'If Comments open'
Ah – do I need to get updated versions from trac?
Cheers,
Jon VC#9
Offline
Re: Plugin Request: 'If Comments open'
yess, try that
You just have to get an new version of txp_plugin.php
Johan Nilsson
Offline
Re: Plugin Request: 'If Comments open'
That did the trick! Thanks so much – its working beautifully! I’ve added your plugin to the list of those I use on my site.
Cheers,
Jon VC#9
Offline
Re: Plugin Request: 'If Comments open'
great, thank you :)
Johan Nilsson
Offline
Re: Plugin Request: 'If Comments open'
Actually, I just realised, that it’s currently hiding everything in the if_comments tags, even if comments are open. I’m using the tags in my page template and my article forms. Any ideas?
Cheers,
Jon VC#9
Offline
Re: Plugin Request: 'If Comments open'
If you look at my frontpage i have it working there.
I just have it like this in a form
<code>
<txp:glx_if_comments_open>
Comments are open for this article
</txp:glx_if_comments_open>
</code>
Johan Nilsson
Offline
Re: Plugin Request: 'If Comments open'
Thats how I’m using it too, here’s an example:
<code><pre>
<txp:glx_if_comments_open>
<txp:comments_invite />
</txp:glx_if_comments_open>
</pre></code>
The plugin is activated as well. I’m on RC1.0, perhaps I need to update other files too?
Cheers,
Jon VC#9
Offline
Re: Plugin Request: 'If Comments open'
That is very strange…
but try this test version and see if it could be of any help
and if that dont work then try to update your txplib_db.php file
Now i have to get some food before my training begins, but i will be back later to night and try to solve this.
Last edited by osei (2004-10-27 19:52:11)
Johan Nilsson
Offline