Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-11-14 20:45:59

Hervardur
New Member
Registered: 2009-11-13
Posts: 6

problem with the form "comments_display"

Hy again,

I use the theme “Relaxation” and have a problem with my “comments-page”.
When I go on the page which shows the comments to an article, there is an error-code:

“<txp:glx_if_comments_count operator=“greater_than” value=“0”> -> Textpattern Warning: on line 1120 <txp:message /> -> Textpattern Warning: on line 1120”

I installed the theme step by step like in the instructions. I changed nothing on the theme too.

Is there anybody who can give me something which helps me to solve the problem please?

Hervardur

Offline

#2 2009-11-14 21:52:33

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: problem with the form "comments_display"

Some of the themes were created for older versions of Txp, and haven’t been adapted to changes in newer versions. This appears to be one of them. <txp:message /> changed to <txp:comment_message />, you’ll probably find the tag in the ‘comments’ form.

Offline

#3 2009-11-14 22:04:07

Hervardur
New Member
Registered: 2009-11-13
Posts: 6

Re: problem with the form "comments_display"

Oh, thanks, you helped me again.

Sorry, but I have already a last little question:

by formatting the content of an article, there are the “Textile”, which give me the necessarily code.
There are also the generator on http://textile.thresholdstate.com/.

But I’m not be able to formate for example a phrase to center.
The html code is: <p align=“center”>phrase</p>, but which Textile I must use in the article?

Sorry for my bad english!

Offline

#4 2009-11-14 23:45:22

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: problem with the form "comments_display"

p{text-align:center}. phrase

Here is the Textile Reference Manual :)

Last edited by els (2009-11-14 23:48:31)

Offline

#5 2009-11-15 13:19:46

Hervardur
New Member
Registered: 2009-11-13
Posts: 6

Re: problem with the form "comments_display"

Some of the themes were created for older versions of Txp, and haven’t been adapted to changes in newer versions. This appears to be one of them. <txp:message /> changed to <txp:comment_message />, you’ll probably find the tag in the ‘comments’ form.

When I changed the message to comment_message, the second problem was corrected (<txp:message /> -> Textpattern Warning: on line 1120).

Have you got an idea, in which way I can change the code here: <txp:glx_if_comments_count operator="greater_than" value="0"> -> Textpattern Warning: on line 1120?

In debug-mode, there are also the following codes on my page:
textpattern/publish.php:1120 trigger_error() textpattern/publish.php:1041 processTags() textpattern/lib/txplib_misc.php:1621 parse() textpattern/publish.php:881 parse_form() textpattern/publish.php:903 doArticle() textpattern/publish.php:560 parseArticles() textpattern/publish.php:1106 article() textpattern/publish.php:1028 processTags() textpattern/publish.php:506 parse() index.php:45 textpattern()

When there is no chance to customize the code, must I decide, if I want to use the newest textpattern or the “old” theme?

Thanks for your help!

Offline

#6 2009-11-15 14:26:27

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: problem with the form "comments_display"

Hervardur wrote:

Have you got an idea, in which way I can change the code here

If you have TXP >= 4.0.7 you can drop glx_if_comments_count and replace it by

<txp:if_comments>
	<txp:variable name="c_count" value='<txp:comments_count />' />
	<txp:if_variable name="c_count" value="0">
		<!-- If the glx tag has content in the "else" part put it here -->
	<txp:else />
		<!-- Put the "if true" part of the glx tag here -->
	</txp:if_variable>
</txp:if_comments>

In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#7 2009-11-16 13:48:40

Hervardur
New Member
Registered: 2009-11-13
Posts: 6

Re: problem with the form "comments_display"

Danke, hat einwandfrei funktioniert!

Last edited by Hervardur (2009-11-16 14:10:21)

Offline

Board footer

Powered by FluxBB