Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-02 09:29:59

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Comment invite setting: Global vs. local

Something I notice but haven’t seen mention of…

I’m using TxP 4.0.1 stable

In the admin panels, you can set the comment invite in two places: Globally in the admin > preferences panel (Default invite), and on a per article basis in the content > write panel (Invitation). Having them both is good, because I might want to have a default setting for everything, but override that setting on an individual article bases once in a while.

However, that’s not how it seemingly works; I can only use the local setting to manage the invite text, the global setting doesn’t work at all, even if there is nothing specified in the local field.

I can certainly use the local field no problem for all my needs, especially since it doesn’t seem to change with each new article, but that makes the global setting pointless and confusing. Am I missing something here?

Offline

#2 2005-10-02 10:03:08

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Comment invite setting: Global vs. local

The default value specified in preferences will be used to “pre-fill” the per-article field.

Since preferences are loaded on every page-view anyhow, it should be easy to use the default value, when the per-article-value is left empty. I think it should be $GLOBALS[‘prefs’][‘comments_default_invite’] so you could do this via txp:php or with a little plugin.

I am not sure whether that change would lead to unexpected behaviour if added to core. But given that comment_invites behave rather strange and leave some things to be desired (that will hopefully be fixed soon), we might slip that in as well.

Objections on this (using the default value in prefs, when the per-article-field is empty) are welcome (please include an explanation though).

Offline

#3 2005-10-02 10:12:34

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: Comment invite setting: Global vs. local

… (using the default value in prefs, when the per-article-field is empty) ….

This is how I intuitively understood it to work to begin with, thus my post, so you certianly do not have objections from me.

Offline

Board footer

Powered by FluxBB