By bridgette Patrov on Wednesday, 21 September 2016
Posted in General
Likes 0
Views 422
Votes 0
Good morning,

I have been trying to figure out how to fix the formatting in the stream.

Easyblog items are displayed with no formatting. (truncation on or off, doesn't matter)
Video descriptions are being displayed as a solid block of text. (html stripped also)

Obviously, this makes it quite hard to read the stream and a mess.

I think I have looked at everything I can to fix it. Truncation, changes to default editor, went back to protostar template etc.

Ideas welcome.

We do not give access to the backend, so please let us know what you would do, and we will do that.

Thank you and have a nice day,

Bridgette

as usual, screenshots are attached to show what we are trying to fix - thank you.
Hi bridgette Patrov,

Can you download the attached file and replace it to the respective folder:
JOOMLA_FOLDER\media\com_easysocial\apps\user\blog\blog.php
JOOMLA_FOLDER\media\com_easysocial\apps\user\blog\themes\default\streams\user\create.content.php
JOOMLA_FOLDER\media\com_easysocial\apps\user\blog\themes\default\streams\update.content.php

and see how it goes?
In order to make the text html format not getting stripped you need to disable the truncation:
1. EasySocial>Application>Blog(user) http://screencast.com/t/r1MedUulkv
2. Set the Content lengths to display in stream to '0' http://screencast.com/t/8zuhFHyl

p/s: you're suggested to backup file that you want to edit beforehand just for precaution
·
Wednesday, 21 September 2016 14:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

We had the blog app settings set to 0 (no truncation) The files I added seem to fix the blog stream issue but this means our stream has huge blog posts in it. Not really how we want it. Will adding (read more) tags help?

This did nothing to fix the same issue we see with videos in the stream. The descriptions have no formatting,

thank you,

Bridgette
·
Wednesday, 21 September 2016 17:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Tested this and adding 'read more' does a nice job of truncating the content in the stream.

So - just need to be able to see formatted text in the video descriptions.

Thanks,

Bridgette
·
Wednesday, 21 September 2016 17:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi bridgette Patrov,

I am really sorry but unfortunately we cannot accommodate your request as it is quite difficult to achieve and it is beyond our support scope's policy as outlined in http://stackideas.com/support where we do not support for customization.

Having said that, if you require us to perform the customization for you, you can always request for a quote from us at https://crm.stackideas.com and select "Customizations" . Our sales person would be glad to send you a quote for the customizations that you have requested.

Thanks for understanding
·
Wednesday, 21 September 2016 18:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hmm. The text is supposed to display in the stream without any formatting? That is normal for videos?

thanks,

Bridgette
·
Wednesday, 21 September 2016 18:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Bridgette,

For the video description where you've embedd (for example youtube video) the description from the youtube will be automatically truncated where we need to stripped the html in description http://screencast.com/t/QtSc0ev9L
·
Wednesday, 21 September 2016 20:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Why do you need to strip the html? Even the <p> and <br>? The ends of sentences run into each other. Not even a space.

I am guessing this was your way of saying "Yes, this is how we want it to work"? I was really asking if this is the expected behavior or not.

thank you,

Bridgette
·
Wednesday, 21 September 2016 23:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi bridgette Patrov,

Regarding your inquiry, for the embedding video from story the description (for example embedd the video from Youtube) is not under our control , what Easysocial crawler do is just get the <og:description> tag from what YouTube provided because YouTube already stripped it
However for adding video from video page http://screencast.com/t/OpeJdXtFylOe http://screencast.com/t/8Eo73l7E is possible to make the description html not stripped http://screencast.com/t/PfdiAopelT
Can you download the attached file and replace it in the folder:
JOOMLA_FOLDER\components\com_easysocial\controllers\videos.php

You're suggested to backup the file that you want to replace beforehand for precaution

Thanks for understanding.
·
Thursday, 22 September 2016 13:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Replaced the file with yours. Cleared all cache. Linked a video from youtube and checked the stream -- no difference at all.

Attached image to show. This description has line breaks and spaces. It all runs together in the activity stream.

Thanks,

Bridgette
·
Friday, 23 September 2016 17:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Bridgette,

May I know do you include <br> tag in order to make a new line text?
·
Friday, 23 September 2016 17:58
·
0 Likes
·
0 Votes
·
0 Comments
·
No.

I copy text from youtube and paste it into the description box.

For text I write myself, I hit return to get a line break. (normal procedure)

Bridgette
·
Friday, 23 September 2016 18:07
·
0 Likes
·
0 Votes
·
0 Comments
·
For the video description currently we're using text area instead of editor form.That is the reason why you need manually type the <br> tag if you want to create a new line text where the text area did not render any (for example if you hit return), it will not generate <p></p> tag for you.
Can you try this hack rather it is working perfectly for you or not?
Replace the attached file in the folder:
JOOMLA_FOLDER\components\com_easysocial\themes\wireframe\videos\form.php

You're suggested to backup the file that you want to replace beforehand for precaution
·
Friday, 23 September 2016 19:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you!

That did add the editor and the proper spacing and line breaks.

However, we had a fix in that same file for removing locations from videos. (our users dislike location features) That fix was removed by this fix. Oops.

location fix:

http://stackideas.com/forums/video-location-option

Any way I can combine the two? I'll go see if I can do a file compare and combine them.

thank you again for your help. I really appreciate it and the stream looks great again.

I'm so relieved. You guys really are amazing.

Bridgette
·
Friday, 23 September 2016 21:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Try this and see how it goes.
·
Saturday, 24 September 2016 08:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi - that is perfect! Thank you very much.

I planned to do a file compare and fix it this morning but woke up to this and it fixes both the location and the parsing.

Great way to start my day!

Bridgette
·
Saturday, 24 September 2016 14:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating, glad that your issues are resolved now
·
Saturday, 24 September 2016 17:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post