Add defined language to field description

15 years 10 months ago #66730 by wrongjon
Hi

I want to define something in the language file and then pull that in to the description of a delimiter field

I tried just adding the ref _UE_NOT_VISIBLE_ON_YOUR_PROFILE but that just outputs

_UE_NOT_VISIBLE_ON_YOUR_PROFILE

rather than the value...

Do I need some PHP here to request this value?

Please Log in to join the conversation.

15 years 10 months ago #66731 by nant
You need to add the string to your language file.
Either the default_language.php or your language.php file.

What language are you trying?

It works ok for me.

Please Log in to join the conversation.

15 years 10 months ago #66734 by wrongjon
Replied by wrongjon on topic Re:Add defined language to field description
Hi

Thanks for the speedy reply.

Yes to that default_language.php I added

DEFINE('_UE_NOT_VISIBLE_ON_YOUR_PROFILE','<span class="cbFieldIcons"><img src="www.netfolio.co.uk/components/com_comprofiler/plugin/templates/default/images/mini-icons/icon-16-profile-no.png" width="16" height="16" alt="These Fields ARE NOT visible on profile" title="These Fields ARE NOT visible on profile" />');

then in the delimiter field description added just

_UE_NOT_VISIBLE_ON_YOUR_PROFILE

No joy?

Please Log in to join the conversation.

15 years 10 months ago #66738 by beat
I just tested and it works.

Just make sure that your JS editor doesn't add a <p> or <div> around it.

It really must match exactly your string.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

15 years 10 months ago #66740 by wrongjon
Replied by wrongjon on topic Re:Add defined language to field description
Hi

Thanks. With that I tried it with just the defined variable name on its own and it works.

It seems that if you add any other text to the description it fails.

Great thanks Ive simply added all the other text to the language file rather than a combination.

Thank you :)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.159 seconds

Facebook Twitter LinkedIn