• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Language code value in input text

Language code value in input text 9 years 8 months ago #32321

I have a problem with mapping JomSocial in RSForm and change the language text in the input value

This is my PHP code:
$user = JFactory::getUser();;
$uid = $user->get('id');
$db = JFactory::getDbo();
$db->setQuery("SELECT `value` FROM `cththemes_community_fields_values` WHERE `user_id`='$uid' AND `field_id`='11' LIMIT 1");
$K = $db->loadResult();
$formLayout = str_replace('{country}', $K ,$formLayout);

I have problem with results in input value in RSForm - value="COM_COMMUNITY_LANG_NAME_POLAND".
How is it converted to: value="Poland" ?

I tried to change but without effect:
//<code>
return JText::_('{country}');
//</code>

Please help me :dry:
The administrator has disabled public write access.

Language code value in input text 9 years 8 months ago #32327

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Try this instead:

$formLayout = str_replace('{country}', JText::_($K) ,$formLayout);
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!