Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-10-27 08:07:02

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

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

#2 2004-10-27 08:41:14

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

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

#3 2004-10-27 09:53:47

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

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

#4 2004-10-27 10:09:41

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

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

#5 2004-10-27 10:13:09

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: Plugin Request: 'If Comments open'

Ah – do I need to get updated versions from trac?


Cheers,
Jon VC#9

Offline

#6 2004-10-27 10:22:07

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

Re: Plugin Request: 'If Comments open'

yess, try that

You just have to get an new version of txp_plugin.php


Johan Nilsson

Offline

#7 2004-10-27 10:33:46

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

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

#8 2004-10-27 10:35:54

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

Re: Plugin Request: 'If Comments open'

great, thank you :)


Johan Nilsson

Offline

#9 2004-10-27 13:14:36

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

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

#10 2004-10-27 13:27:14

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

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

#11 2004-10-27 13:36:02

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

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

#12 2004-10-27 13:56:20

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

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

Board footer

Powered by FluxBB