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.

Bugfix for linebreak issue \n \n causes IE10 to ignore all linebreaks

11 years 7 months ago
  • Randolph's Avatar
    Topic Author
  • Randolph
  • Offline
  • Junior Boarder
  • Posts: 126
  • Thank you received: 13
Licenses:
JomSocial Active Socialize Expired

ISSUE SUMMARY:
In a recent post I reported the following issue.

When entering text in the status box inside of a group, and adding a linebreak, those linebreaks are shown as \n or \n\n
( see here: www.jomsocial.com/forum/groups/25006-lin...postings-show-as-n-n )

A bug fix has been provided. After installing the bugfix, the problem was gone for Firefox, and Chrome. But, the bugfix created new problems in Internet Explorer. After applying the bugfix, linebreaks in IE10 now are ignored at all, causing massive blocks of text without any linebreaks.

Compared with the situation before applying the bugfix, this issue now appears sidewide in all text fields, regardless if group discussions, stream posts etc.


STEPS TO REPLICATE:
1 Adding or editing group discussion, posting in stream, adding comment (seems side-wide)
2
3
4
5
RESULT
unreadable, large blocks of texts, without any linebreaks
EXPECTED RESULT
linebreaks, paragraphs
BROWSER
Internet Explorer 10

The following user(s) said Thank You: Michał
11 years 7 months ago
Licenses:

Hi, Randolph.

Thank you for reporting this.
May I ask for printscreen?


- 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
11 years 7 months ago
  • Randolph's Avatar
    Topic Author
  • Randolph
  • Offline
  • Junior Boarder
  • Posts: 126
  • Thank you received: 13
Licenses:
JomSocial Active Socialize Expired

Of course, here is the screenshots.

As you can see after the bugfix linebreaks work in Firefox, but not in Internet Explorer.

Hope this helps
R.

Attachments:
The following user(s) said Thank You: Michał
11 years 7 months ago
Licenses:

Hi, Randolph.

Please, make safe copy of those files:

ROOT/components/com_community/templates/jomsocial/layouts/events.forms.mobile.php
ROOT/components/com_community/templates/jomsocial/layouts/groups.adddiscussion.php
ROOT/components/com_community/templates/jomsocial/layouts/groups.addnews.php
ROOT/components/com_community/templates/jomsocial/layouts/groups.editdiscussion.php
ROOT/components/com_community/controllers/groups.php

Then replace originals with patched files from package.


- 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

This message has an attachment file.
Please log in or register to see it.

11 years 6 months ago
  • Randolph's Avatar
    Topic Author
  • Randolph
  • Offline
  • Junior Boarder
  • Posts: 126
  • Thank you received: 13
Licenses:
JomSocial Active Socialize Expired

Hi Michal,

thanks for this bugfix.

Replaced files with the new ones. Will test it later today.

There is no file events.forms.mobile.php in folder ../templates/jomsocial/layouts. I only found events.forms.php. So, I simply added the one included in the bug fix package. Hope this is the way it's meant to be.

Best
R.

11 years 6 months ago
  • Randolph's Avatar
    Topic Author
  • Randolph
  • Offline
  • Junior Boarder
  • Posts: 126
  • Thank you received: 13
Licenses:
JomSocial Active Socialize Expired

Line breaks now working in Internet Explorer 10.

Thanks for fixing the bug !

Best
R.

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