Loading...
 
Skip to main content

Features / Usability


You are viewing a reply to Can I hide wiki-page comments by default?

Re: Can I hide wiki-page comments by default?

Currently using TikiWiki version 1.9.10.1 with default theme.

I'm also experiencing undesirable behavior of the comments section.
By default, based off of my browsing through TikiWiki's comments.php file, TikiWiki hides the comments on a page.

The problem I'm experiencing is when a user clicks on the comments link to show all comments for a page. Once a user does this, it seems that a cookie is created and stores information for the current browser setting on whether to show/hide comments from that point on. If I'm understanding the logic of comments.php correctly, comzone is supposed to be updated every time a user clicks the show/hide link. When I user Firefox to observe the change to comzone, I don't see any.
comzone always has the value of o

To reproduce the issues I've stated, follow the following instructions:
- activate comments for you TikiWiki page, through your admin controls
- Open a new session of your web browser. I'll assume you're using Firefox from now on
- Navigate to one of you wiki pages
- Scroll down to the bottom of your wiki page
~ Notice how the 'Post New Comments' comments section is hidden
- Click the link to add comments and make the 'Post New Comments' visible
- In Firefox, select Tools-> Options. Go to the privacy section and click on Show Cookies. Search for your site or site subdomain (type the first letter of the domain or subdomain to jump to that letter) where your tikiWiki is. Expand the folder and search for comzone. Notice that comzone is set to 'o'. Close out the cookies and option window.
- Browse to another page on your tikiWiki site and scroll down to the bottom of the page
- Notice that the 'Post New Comments' section is still visible
- Click on the add comment link to collapse the comments section.
~ At this point the comzone cookie should have changed.
- Check on the content of comzone and see if it is something other than 'o'. You will find that it doesn't change.
- Delete the comzone cookie and refresh the wikipage and you'll see that comments get hidden.

Anyone know how to fix this?