Skip to Content Skip to Menu

[cb_value] in language.php makes </p>

  • sekelfek
  • sekelfek
  • OFFLINE
  • Posts: 46
  • Thanks: 2
  • Karma: 0
8 years 3 months ago - 8 years 3 months ago #282151 by sekelfek
Hello,
when i write a self made field [cb_value] in the language.php file, then write the system the value in the email so:
Code:
<p>value</p>

Example:
[cb_value] = test
Email text:
Code:
<p>test</p>
Last edit: 8 years 3 months ago by sekelfek.

Please Log in or Create an account to join the conversation.

  • villy
  • villy
  • OFFLINE
  • Posts: 35
  • Thanks: 7
  • Karma: 1
8 years 3 months ago #282181 by villy

when i write a self made field [cb_value] in the language.php file, then write the system the "[" and "]" in the email so:


You should not edit the language.php file Please read instructions here

If you edit your file using WordPad or something like that, be sure you save it as Unicode and not as Text

An example of a translation: 'UPLOAD_ERROR' => 'Upload Error',
be aware that if you forget quotation marks or comma at the end, it will not work.

Please Log in or Create an account to join the conversation.

  • sekelfek
  • sekelfek
  • OFFLINE
  • Posts: 46
  • Thanks: 2
  • Karma: 0
8 years 3 months ago - 8 years 3 months ago #282185 by sekelfek
Replied by sekelfek on topic [cb_value] in language.php makes </p>
There is not the problem.
There is a problem with the coding.

I use WinSCP for SFTP and the internal WinSCP editor.
The editor is set to UTF-8. (not ANSI)

This
Code:
<p>test</p>
means
<p>test</p>

There is a problem with the coding in CB. (and a little bit in this forum).
So CB writes the <p></p> HTML tag. I did not write it. In addition, CB then has a problem with the encoding of this HTML code.

These CB system email has:
Content-Type: text/plain; charset=UTF-8

Another [values] haven't problem. Only selfmade fields with [cb_values].
And this in the same email.
Last edit: 8 years 3 months ago by sekelfek.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum