Page 1 of 1

How i can block messages by the principle of language

Posted: 14 May 2014, 10:08
by ilunga
I used Phoca Guestbook on russian site only. Language of the user is limited by site contents.

Did I can insert the filter code which will block any message without Cyrillic letters?
Into what file of a component it is necessary to insert a code?
Did you can help me to make this code?

Thanks.

Re: How i can block messages by the principle of language

Posted: 18 May 2014, 23:09
by Jan
Hi, sorry, I don't understand what you exactly mean?

Jan

Re: How i can block messages by the principle of language

Posted: 21 May 2014, 11:44
by ilunga
I use your guestbook on the Russian site. And I want to forbid the publication of messages that don`t contain any of the Cyrillic characters. I'm ready to use the iQuery.Validate plugin, but I don`t understand - in which file do I need to insert it?

Besides, in your form code is missing the tag LABEL FOR, which complicates the use of the plugin. Suggest some solution, please.

Re: How i can block messages by the principle of language

Posted: 23 May 2014, 00:23
by Jan
Hi, I don't know the jquery plugin, so cannot give any clue advice, no idea if the test is done in frontend - when user writes the message (javascript?) or in backend - in server? So for this some plugin documentation should be followed :idea:

What do you mean exactly with form code and missing Label for? In which file?

Jan

Re: How i can block messages by the principle of language

Posted: 13 Jun 2014, 11:00
by ilunga
Hi.

I want to insert a filter on message contents using php-function strpbrk ($pgbcontent , $char_list).
Tell me, please, in what file and how do I need to write it down?

Re: How i can block messages by the principle of language

Posted: 13 Jun 2014, 12:45
by Jan
Hi, just see the standard view or controller/model:

components/com_phocaguestbook/views/guestbook ...
or
components/com_phocaguestbook/controllers/phocaguestbook.php
components/com_phocaguestbook/models/guestbook.php

Jan