Support

  1. bec00l
  2. Support
  3. Friday, July 11 2014, 09:28 AM
Hello!

I have a trouble with view of textaera fields i use without editor.

In this fields i have a text like:
Text line 1
Text line 2
Text line 3
Text line 4

but in profile view page it looks like:
Text line 1 Text line 2 Text line 3 Text line 4

how can I see it on profile view page like
Text line 1
Text line 2
Text line 3
Text line 4

Thanks
Attachments (3)
bec00l Accepted Answer
sorry my english, in topic title I mean "Need convert Newline to br tag in textarea without editor"
  1. more than a month ago
  2. Support
  3. # 1
admin Accepted Answer
Admin
Hi,
You can use this CSS statement for text container:
white-space: pre;

in profile the container is
<dd class="alias_of_fieldValue">text</dd>

so put in your CSS file this
.alias_of_fieldValue{white-space: pre}


Another problem, pre attribute is pre-formatted text, but the generated HTML have some New line and Tabs before and after value. So replace the file /components/com_jsn/view/profile/tmpl/default_fields.php with attached file.

In next version we will replace this file. ;)
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 2
bec00l Accepted Answer
Thanks a lot!

Now it looks fine.
But I have another problem with this:

if text contains "," symbol, all text after this symbol has been cutted (see screenshots).
I try it in English and in Russian, same same.
Text shows only above first ","symbol.
All text below "," is cutted
  1. more than a month ago
  2. Support
  3. # 3
admin Accepted Answer
Admin
strange, I have tested and work for me. Can you post me your site details? you can use the for below the reply in "Site Details" tab
  1. more than a month ago
  2. Support
  3. # 4
bec00l Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 5
bec00l Accepted Answer
if I change in default_fields.php
echo JHtml::_('jsn.'.$field->type, $field);

to
echo $field->value;


value of this field fully shows, not cutted
  1. more than a month ago
  2. Support
  3. # 6
admin Accepted Answer
Admin
Hi Mark,
sorry for late reply, it's a weekend for us and our office is closed.

This is not a good solution see this example:

For a link field
$field->value is:
http://testsite.com

JHtml::_('jsn.'.$field->type, $field) is:
<a href="http://testsite.com">http://testsite.com<;/a>
  1. more than a month ago
  2. Support
  3. # 7
bec00l Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 8
admin Accepted Answer
Admin
Hi Mark,
if work with your solution you can import your 5000 users (the DB data is not cutted). so when the site is online you may send your site details and we will fix this problem.
  1. more than a month ago
  2. Support
  3. # 9
admin Accepted Answer
Admin
Hi Mark, we have made many test and we have found the problem of textarea,

please comment or delete the line 98 from administrator/components/com_jsn/helpers/fields/textarea.php
if(JText::_(strip_tags($value)) != strip_tags($value)) $value=JText::_(strip_tags($value));


we will fix in next release.

Thanks for report it ;)
  1. more than a month ago
  2. Support
  3. # 10
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.