Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-27 16:05:46

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,299
GitHub

Comment invite code not working

Hi. Long time listener, first time caller.

I’m running 4.0.2 here: <a href=“http://pr.ag.ma/”>http://pr.ag.ma/</a>

It’s a fresh install and I’ve managed to get most things working how I want them. I’m having a spot of bother with the comment invite code: it’s not appearing inline with the posts. I can create comments successfully when linking directly to the article, the comment is saved and I am alerted correctly, it’s just the invite bit that’s not working, specifically if there are zero comments. I have seen a couple of posts here relating to the same issue and I’ve tried modifying the form code to what was suggested, but it’s not working.

If this is something covered in a previous post, then I would greatly appreciate a link to it, or a pointer in the right direction if it’s something new. I have read the FAQ (including <a href=“http://textpattern.com/faq/95/comment-display-confusion”>this</a>) but couldn’t find anything to resolve this specific issue, or am I missing something obvious?

Thank you in advance for your help.

Cheers.
Pete

Here’s the comments_display form as it stands:<a href=“http://pr.ag.ma/file_download/29” title=“comments_display.txt”>comments_display.txt</a>

Here’s the site diagnostics:

Textpattern version: 4.0.2 (r1076)
last_update: 2005-11-13 14:15:37/2005-11-13 14:14:31
Document root: /web/sites/www.pr.ag.ma/doc
$path_to_site: /web/sites/www.pr.ag.ma/doc
Textpattern path: /web/sites/www.pr.ag.ma/doc/textpattern
Permanent link mode: section_title
Temp folder: /var/tmp
Site URL: pr.ag.ma
PHP version: 4.2.2
server_time: 2005-11-27 15:50:25
MySQL: 3.23.43-log
Locale: C
Server: Apache

.htaccess file contents:
————————————
#Options +FollowSymLinks

#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c>

RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L] RewriteRule ^(.*) index.php

</IfModule>

php_value register_globals off

————————————

Offline

#2 2005-11-27 21:49:27

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

Re: Comment invite code not working

Looks like you have if_comments wrapped around your invite, which will only be true if the number of comments is greater than 0. Remove said conditional. You can use the wraptag-attribute on comments_invite to add some formatting. Or else you can use if_comments_allowed.

Offline

#3 2005-11-27 22:44:50

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,299
GitHub

Re: Comment invite code not working

Hi Sencer.
Thanks for your advice: I’ve already tried removing the conditional around the invite and it still wouldn’t work. I tried it again just to make sure and it’s still no good.

I’ve tried removing the glx_if_comments_count tag from both sides of the invite, plus changed the value to -1 to see if that would fool it into action. Unfortunately not.

I’ve also tried replacing the conditional with if_comments_allowed tag with no success. I’ll keep fiddling around to see what works.

Thanks again =)

Offline

#4 2005-11-28 11:37:25

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

Re: Comment invite code not working

I am talking about the article-form. I have the impression that you are talking about the comments-forum.

Offline

#5 2005-11-28 12:19:54

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,299
GitHub

Re: Comment invite code not working

penny drops

Ah yes! Now it makes perfect sense.

Thanks, Sencer :)

Offline

Board footer

Powered by FluxBB