Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-26 09:32:55

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

if_comments troubles (I'm new, sorry...) :(

I am having troubles with if_comments not working properly. Here’s my code:

<code><txp:if_comments>
<a href=”<txp:permlink />#komentari” title=“Čitaj komentare”>0<txp:comments_count /></a>
<txp:if_comments></code>

and it doesn’t work. It won’t spit out “ema komentara” if there are no comments. I am using it in the default article form.

I have downloaded my copy of TXP yesterday, so I guess it should be up to date, right? I was reading on these forums about some patches for this, but the patch appears to be gone (utterplush.com I believe the adress was – Marry is the user who made the plugin).

OK boys and girls, thanx in advance for all your help. :)

EDIT:

Whoops, bbcode’s code doesn’t seem to be working.

Last edited by Dragan (2005-10-26 09:40:39)

Offline

#2 2005-10-26 09:36:21

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

Re: if_comments troubles (I'm new, sorry...) :(

Oh my god, something’s wrong … :(

Offline

#3 2005-10-26 15:43:27

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: if_comments troubles (I'm new, sorry...) :(

Where are you using this and what do you want to happen?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2005-10-26 16:03:35

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

Re: if_comments troubles (I'm new, sorry...) :(

i am trying to do a comment_count if there are comments and display a sentence “Nema komentara” if there aren’t any comments.

my site is down untill nov. 1st for the css reboot

Offline

#5 2005-10-26 16:16:32

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: if_comments troubles (I'm new, sorry...) :(

Fine but where are you using the above code – in your article form template? Try something like:-

<code><txp:if_comments>
<txp:comments_count />
<txp:else />
<p>ema komentara</p>
</txp:if_comments></code>
<br />

There are some extra attributes for the “comment_invite” tag which will arrive in 4.0.2 which will work alongside this methinks.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2005-10-26 16:24:37

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

Re: if_comments troubles (I'm new, sorry...) :(

if_comments is kind of broken in 4.0 and 4.0.1. The behaviour will change (= be corrected) when 4.0.2 is released.

Offline

#7 2005-10-26 16:45:21

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

Re: if_comments troubles (I'm new, sorry...) :(

is it known when it will be relesed?

@ thebombsite: as i said in my first post, i am using it in the default article form, on the default and the archives pages. :)

Offline

#8 2005-10-26 17:07:07

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

Re: if_comments troubles (I'm new, sorry...) :(

Unless something comes up, it will probably be available in about a week.

Offline

#9 2005-10-26 20:11:15

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: if_comments troubles (I'm new, sorry...) :(

Oh shoot me Sencer! I forgot that was a fix. Damn. Dragan, you have 3 choices – wait for 4.0.2 – learn to use SVN very quickly – grab a later revision.

Last edited by thebombsite (2005-10-26 20:42:07)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#10 2005-10-26 21:53:21

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

Re: if_comments troubles (I'm new, sorry...) :(

i’m sorry … svn?

can you give me some links to look deeper into it?
thanx for everything people.

Offline

#11 2005-10-26 23:14:57

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

Re: if_comments troubles (I'm new, sorry...) :(

just to saz big ups to bombsite and this upgraded version, it fixed the problems. :) i have just copied over the old files, it works cool. can you tell me which files and/or folders are important to copy from your version, since i didn;t go over all of them?

Offline

#12 2005-10-28 01:01:43

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: if_comments troubles (I'm new, sorry...) :(

Sorry Dragan. I don’t have a list of changed files since 4.0.1 You can go through the timeline and see all the changes made though it’s a bit long-winded. There are instructions for using SVN in TextBook. It’s a method of updating your TXP files to the latest revision by only downloading files that have changed. I should remind you that this puts you on the bleeding edge and whilst there may be new facilities to try out and old bugs squished, the new code can introduce new bugs so beware.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB