Page 1 of 2

How do I set the guestbook to only registered user posts?

Posted: 23 May 2011, 13:41
by danifagan
Cant seem to find this option anywhere, please advise. Many thanks :x

Re: How do I set the guestbook to only registered user posts

Posted: 23 May 2011, 16:31
by Jan
Hi, just set it in parameters:
https://www.phoca.cz/documents/3-phoca-g ... -menu-item

Registered Users Only Only registered users can post a message (other visitors will not see the Phoca Guestbook form)

Re: How do I set the guestbook to only registered user posts

Posted: 24 May 2011, 19:03
by klabog
I'm a little confused. It seems that there are some things which not are totally adapted to Joomla 1.6.
Comparing your linked parameter settings page I don't find in my menu settings the mentioned Parameters - Component.
There are only the following entries:
Required Settings
Basic Options
Link Type Options
Page Display Options
Metadata Options
Module Assignment for this Menu Item

I have changed the language to German and settings of the menu item to registered. In the Guestbook I have set registered too, no language settings there (why?), no parameters to set.
In Component - Options no language settings (why?)
Now I have some strange behaviours:
When I enter the page as guest there is no guest book in the menu - that's right. When I login no guest book too. Sometimes, when I refresh the page it comes up, sometimes not. I set cache (menu) off - (why is there no setting for cache in the component?) but no change.
But when it comes up and I logout it does not disappear in the menu. It still stays there. When I click the menu item the site crashes with this error:
Fehler: Umleitungsfehler.
Die aufgerufene Website leitet die Anfrage so um, dass sie nie beendet werden kann.
Dieses Problem kann manchmal auftreten, wenn Cookies deaktiviert oder abgelehnt werden.
(something like an error by a circular redirection which makes it impossible to finish the request)

I'm not sure if this last behaviour is a score problem or of the component. I hope you can help me to solve this.
When I got it work you will get the German and Spanish language files.

Regards, Klaus

Re: How do I set the guestbook to only registered user posts

Posted: 26 May 2011, 23:49
by Jan
Hi,
I'm a little confused. It seems that there are some things which not are totally adapted to Joomla 1.6.
Comparing your linked parameter settings page I don't find in my menu settings the mentioned Parameters - Component.
this should be a question on Joomla! core developers, I by myself miss the parameters component in menu link too, but all this is managed by Joomla! not Phoca :-(
I have changed the language to German and settings of the menu item to registered. In the Guestbook I have set registered too, no language settings there (why?), no parameters to set.
In Component - Options no language settings (why?)
Sorry, I don't understand, you can set language of the guestbook in edit of the guestbook.
something like an error by a circular redirection which makes it impossible to finish the request
Hmm, really no idea what can be wrong there, tested it and get no such problem :idea:
When I enter the page as guest there is no guest book in the menu - that's right. When I login no guest book too. Sometimes, when I refresh the page it comes up, sometimes not. I set cache (menu) off - (why is there no setting for cache in the component?) but no change.
I think this should be the question on Joomla! :-( :-(

Phoca Guestbook is still in RC version, so I will do some more tests and will add new parameter (to disable cache)


Jan

Re: How do I set the guestbook to only registered user posts

Posted: 30 May 2011, 13:47
by klabog
Sorry for the late answer, but I was not aware of your post - seems I didn't mark the notify box.
this should be a question on Joomla! core developers, I by myself miss the parameters component in menu link too, but all this is managed by Joomla! not Phoca
No, that's what I wrote, a deficient adaptation to Joomla 1.6. I think its not a good way to have a component which works on 1.5 and 1.6. There are so many differences in the way 1.6. works. The minimum should be a new documentation.
At the other hand there is the new multi-language capacity introduced in 1.6. I'm still not very fit to handle this perfect but got my site to work in three languages and learned that you have to public every module in every language, same as categories. Not really sure how this works with your component. Would have to test this. My problem with circular redirection could be related to this. Perhaps you should do some tests with your component in a multi-language environment?

Will be back when I have tested some more things - specially the problem of access in menu when it shouldn't be given. This one seems to be really a core problem, because I have the same result with another component.

Regards, Klaus

[edit]Removed my remark about ACL - Sorry 1.6 is new for me too[/edit]

Re: How do I set the guestbook to only registered user posts

Posted: 30 May 2011, 22:04
by klabog
Now I have tested a little more and I definitively get no output when I create a Guest-Book.
That's what I have:

Code: Select all

PHP erstellt für 	Linux v220110486105286.yourvserver.net 2.6.36.4-vs2.3.0.36.39-netcup #1 SMP Wed Mar 9 07:18:38 UTC 2011 x86_64
Datenbankversion 	5.1.41-3ubuntu12.10
Datenbankzeichensatz 	utf8_general_ci
PHP-Version 	5.3.2-1ubuntu4.9
Webserver 	Apache/2.2.14 (Ubuntu)
PHP-Interface für den Webserver 	apache2handler
Joomla!-Version 	Joomla! 1.6.3 Stable [ Onward ] 18-Apr-2011 23:00 GMT
Browserkennung 	Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 

Code: Select all

Languages de, en, es
Phoca Guestbook Version 2.0.0 RC2
created Guestbook: 1 - Language: de - Access Level: Registered
created Main-Menu entry for created Guestbook - Language: de - Access Level: Registered
created a test user with level: Registered
When I login with this user I should see the Guestbook but I don't.
I'm wondering where I can define the template position where Guestbook should be displayed?

Any hint?

Regards, Klaus

Re: How do I set the guestbook to only registered user posts

Posted: 30 May 2011, 23:53
by klabog
After some new tests I have discovered what is the reason of the strange behaviour:
Its the cache!
I noticed that Guestbook entry was displayed after cache time has passed.
When I disabled cache (for the whole system because Guestbook does not have this option) the problem disappeared and by the way I solved the problem having still the menu entry for Guestbook after logout the registered user.
I'm not sure if this is only a core problem because Guestbook should not display at any time when it is set to registered users only and the user logged out. Guestbook should delete his cache on logout of the user - sorry if this is a stupid idea, but I'm no programmer!

Regards, Klaus

Re: How do I set the guestbook to only registered user posts

Posted: 01 Jun 2011, 11:06
by Jan
Hi, I will add new parameter to Phoca Guestbook - to not use cache - the problem of 1.6 is, it is still changing and not all features are finished.

Phoca Guestbook includes the new language feature.

Regarding documentation:
https://www.phoca.cz/phoca-needs-your-help/

Jan

Re: How do I set the guestbook to only registered user posts

Posted: 01 Jun 2011, 12:09
by klabog
Yes, it works in multi-language environment. I set up three languages. With cache disabled I have no problems.
By the way. May I propose a feature? You should create a module which displays all entries from all languages in one configurable position. At the moment there are all languages isolated. Or you could make your component configurable that all languages save in one database. Then you have different language files but in all languages the whole output.
I will translate to Spanish and German - take this as donation and give me access to your module (last entries)

Regards, Klaus

Re: How do I set the guestbook to only registered user posts

Posted: 01 Jun 2011, 12:20
by Jan
Ok, thank you for the ideas and the translations.

Jan