Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Something wrong with displaying recaptcha and adding new language

12 years 1 month ago
  • robay's Avatar
    Topic Author
  • robay
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 5
Licenses:
JomSocial Expired

Hi,
I turned on reCaptcha system on JomSocial and I see something is wrong with displaying them (screenshot).

Attachment JSreCaptcha.jpg not found



And small question... How can I add other language in selection list (file, line etc.)?

Regards,
Robay

Attachments:
12 years 1 month ago
Licenses:

Hi, Robay.

This is caused by your template: prntscr.com/4iln51
Line height for td is declared as: line-height: 20px; and this cause Captcha box to brake layout.

How can I add other language in selection list (file, line etc.)?

I'm not sure what is your request here. Could you elaborate?
What selection list?


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
12 years 1 month ago
  • robay's Avatar
    Topic Author
  • robay
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 5
Licenses:
JomSocial Expired

Hi, Michal,

I fixed my css and now everything is fine... Thanks.

I mean list of choice captcha language on backend.
I want to add Polish language, because I have now recaptcha in two languages ​​- standard Joomla recaptcha in Polish and JomSocial recaptcha in English.

Attachment langcaptcha.jpg not found



Regards,
Robay

Attachments:
12 years 1 month ago
Licenses:

Hi, Robay.

I think it could by done only via customizing this file:

ROOT/components/com_community/helpers/recaptcha.php line 155.
Try to change this: ' . $lang . ' to pl so this line looks like this: lang: "pl".

(WARNING! Core file hack! Please, make safe copy of edited file. It means also that this file will be overwritten during upgrade, so please make a safe copy of customized file as well. Some core hacks could not working with future JomSocial releases and/or cause issues that will be not supported).

If you think that more languages should be added, post a feature request here:

uservoice.jomsocial.com/forums/101561-feature-request
www.jomsocial.com/community/groups/viewg...stions-for-the-staff


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: robay
12 years 1 month ago
  • robay's Avatar
    Topic Author
  • robay
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 5
Licenses:
JomSocial Expired

Hi Michal,

Thanks for your quick reply.
After your answer I found other, more elegant solution.

I will show that solution, maybe can be useful to someone.

1. Edit file from patch administrator/components/com_community/views/configuration/tmpl/registrations.php
2. Line 229 (for JS v3.2.1.3) make new line by copying existing <option>...</option> tag.
3. Change language variables in accordance with the expected language like on screenshot - example with polish language.

Attachment captchapl.jpg not found



4. For complete solution you can add a language phrase in file administrator/language/your_lang/your_lang.com_community.ini (for example with polish: administrator/language/pl-PL/pl-PL.com_community.ini added on the end of file phrase COM_COMMUNITY_POLISH="Polski") or if you do not need a multilingual backend, instead of writing language phrase, type the name of your language, then edit lang file will be unnecessary.

Regards,
Robay

Attachments:
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW