Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Ability to write comments is not working - please help!
Hi,
I hope someone can help with this one…I’m sure it’s something fairly simple that I’m just overlooking….but all of a sudden, the ability to write comments on my site (www.mattrobin.com) has failed.
For my previous article – I ended-up disabling the comments to prevent readers discovering that the comments weren’t working!
(Embarrassing)…
For the current article – I’ve left comments turned ‘ON’….a reader should then be able to select ‘Read more’ (to read the full extent of the article) and then proceed to fill in a comments form at the end of the article if wanted…but the comments form isn’t there! (Where did it go? It was there before!)
Currently, the only part of the article that seems to invite the reader to make a comment (on the frontpage* – when the article is in it’s reduced length format)…only displays the full article size but no ability to leave a comment.
This thing is driving me nuts! ….I think it’s associated with how something about comments in my articles-type forms…but I’ve looked at everything and come up with no improvements. :(
The frontpage* and the default sections for the site use a page called ‘front’…which is identical to the default page except for this bit: (I’ve removed textpattern/html code brackets to enable the display of information in the examples below)
div class=“divweblog”>
txp:article limit=“1” form=“headline” />
The ‘headline’ form looks like this:
===============================
txp:beginning length=“300” />
div class=“itemdetails”>
txp:permlink>Read more…</txp:permlink
span class=“item1”>txp:if_comments>txp:comments_invite />
/txp:if_comments
/span
/div
hr size=“1” noshade=“noshade” />
============================
The ‘default’ form looks like this:
=============================
div class=“itemdetails”>
span class=“item1”>txp:author link=“y” />
/span>
span class=“item2”>
txp:category1 link=“y” />
/span>
span class=“item3”>
txp:if_comments><txp:comments_invite />
/txp:if_comments></span>
/div>
/div>
============================
In the admin\preferences section:
In Publish\Accept Comments – set to ‘YES’
In Comments\On by default – set to ‘YES’
In Comments\Comments Mode – set to ‘Nopopup’
In Comments\Automatically append comments to articles? – set to ‘YES’
So why isn’t it all working? Hmmmm…… frowning hard
— — — — — — — — —
www.mattrobin.com
Offline
Re: Ability to write comments is not working - please help!
Remove the <code><txp:if_comments></code> tags from around the comment_invite. That tag has changed behaviour so what you are saying now is “if there are comments, show the comments_invite, otherwise, don’t” which puts you in a “chicken and egg” situation such that if there are comments the invite will show but if there aren’t you can’t make any.
If you want to only display the invite if comments are allowed then use the <code><txp:if_comments_allowed></code> tags instead.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Ability to write comments is not working - please help!
Thanks….I tried that – and it didn’t work at all.
I also completely removed the ‘if’ statements and that didn’t help either! So…‘txp:comments_invite /’ just isn’t working…at all….hmmmm continues to frown
This is really, really weird!
Last edited by mattrobin (2006-01-25 07:40:13)
— — — — — — — — —
www.mattrobin.com
Offline
Re: Ability to write comments is not working - please help!
You have allowed comments in your “Preferences”?
You don’t appear to have a comment_invite tag in your default form.
Use < code>< /code> tags (without the spaces) to display code here.
Last edited by thebombsite (2006-01-27 02:09:54)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Ability to write comments is not working - please help!
“You have allowed comments in your “Preferences”?”
Yes…
“You don’t appear to have a comment_invite tag in your default form.”
Sorry – I missed that out in the example posted on this thread…there is a ‘comments_invite’ on the default form itself.
“Use tags (without the spaces) to display code here.”
Not sure what you mean on this one….I’ve tried just using the code – and it doesn’t get displayed.
Anyway…cheers for your ideas…..unfortunately this ‘comments on article’ problems still exists. :(
— — — — — — — — —
www.mattrobin.com
Offline
Re: Ability to write comments is not working - please help!
Sorry, put the spaces in the wrong place. :(
In the meantime I shall keep thinking about your problem. I’m assuming that you have been able to add comments previously?
Last edited by thebombsite (2006-01-27 02:12:31)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Ability to write comments is not working - please help!
Oh…thanks for the tip about the <code></code> tag for comments in the forum! :)
Mmmm, yes, the comments were working fine on my site before…so i must’ve done something that’s caused it to fail.
I look more at it this week (I have been away for the past 4 days…so I couldn’t look at it then).
I’ll keep you updated.
Cheers,
Matt
Last edited by mattrobin (2006-01-30 06:45:50)
— — — — — — — — —
www.mattrobin.com
Offline
Re: Ability to write comments is not working - please help!
This still isn’t working….I’m just going round in circles on this…and yes – it was working before…..hmmm
Maybe I should strip my whole site to pieces and rebuild the whole thing from scratch again eh? (It might be easier!!!)
Has anyone got any ideas on this….please? =(
Last edited by mattrobin (2006-02-01 21:13:18)
— — — — — — — — —
www.mattrobin.com
Offline
Re: Ability to write comments is not working - please help!
You can enable debug mode and look at the tag-trace. It should give you an idea on what is happenin.
This is mentioned in the FAQ at:
http://textpattern.com/faq/165/diagnosing-template-problems
Offline
Re: Ability to write comments is not working - please help!
Cheers Sencer….I’m going to have to go away and test this out.
It sounds promising….(but then again – so has everything else)…
I’ll give an update soon. Really, if I get get this resolved in the next feww hours or so – then I’m going to uninstall the Textpattern database and files…strip it off my site altogether and install Textpattern from scratch!
(It might be easier!)
— — — — — — — — —
www.mattrobin.com
Offline
Re: Ability to write comments is not working - please help!
Update:
I’m trying your suggestion Sencer….but so far – no luck! :(
I’m pretty sure it’s related to the <code><txp:comments_invite /></code> tag – and how it interacts with other forms/pages…because that’s the bit that when selected – fails!
All it does is go to the full-length article page and not the comments form.
The page then has ‘itemdetails’ and ‘Comments Made’ as a heading…and no comments form!!
I’ve also gone through and checked off things along the way….CSS, Plugins, Admin set-up, etc…and no difference!
(I’m now horribly frustrated by this problem!)
The textpattern.com FAQ didn’t expose any mystery that I wasn’t already aware of….(although that site in ‘testing’ mode might come in handy later!)
Last edited by mattrobin (2006-02-04 01:20:14)
— — — — — — — — —
www.mattrobin.com
Offline
Re: Ability to write comments is not working - please help!
With “Auto append” switched on the comments_invite tag calls the comments_display form, which in turn calls the comments form and the comment_form form.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline