By Paul Murray on Wednesday, 29 July 2015
Posted in Technical Issues
Likes 0
Views 0.9K
Votes 0
Hi Support

Text is formatted (justified/this is what I want) on individual posts.

eg:

http://finalbug.net/blog/entry/407-going-mustang-without-a-data-wrangler

but not on the blog list. See the same post.

http://www.finalbug.net/blog

I have the feeling that a couple of minor formatting issues came up after my EB5 upgrade and this is one of them. I can not find anything in the layout section of EB5. Please advise what am I missing.

thanks

Paul
Hi Paul,

I am sorry as I believe this truncation and strip_tag is already in EasyBlog3. I don't think this is a odd process in which it will remove uneccessary html tags to avoid unclosed html tags when you're truncating it. Otherwise, the html tags will be hanging and breaks your site.

I am sorry as I believe we haven't planned to implement this however, I will forward this request to to our developers so that we can have a better fix for this issue in the future.

Have a nice day.
·
Wednesday, 29 July 2015 18:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Paul,

If you have enabled truncation for your frontpage listing, easyblog will automatically strip out any html tag inside the blog post, hence the text is not justified on your frontpage listing. Currently it is not possible to disable html tag strip for frontpage listing however you can go to your /administrator/components/com_easyblog/includes/truncater/truncater.php and comment out the following at line 273:
$post->text = strip_tags($post->text);


Do note that this customization might caused your frontpage to break if there are any unclosed html tags so use it at your own risk.
·
Wednesday, 29 July 2015 18:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Erzul

Do you know if this is going to be implemented in the future.
It just seems a little odd that the truncation strips out formatting!
Was it like this in EB 3.x.
I do not think so?

thanks

Paul
·
Wednesday, 29 July 2015 18:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohad

OK. In all fairness I probably do not understand this properly.
I used to author DVDs and once stripped out basic functionality with a view to preventing things break.
I got into trouble for this.

But maybe DVDs and web site design are different

thanks all the same

Paul
·
Wednesday, 29 July 2015 18:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohad

Just wondering...
Is it possible that I had something in my custom.css file that used to do this?
Would it be possible to get this to work this way?

best

Paul

/**
* Here, you can define your own custom.css file.
* This file will never be deleted.
*/

div#fd.eb .eb-entry-related > div {
width: 33% !important;
}

#eblog-wrapper {
text-align: justify;
}

#eblog-wrapper .blog-text p {
-ms-word-break: keep-all;
word-break: keep-all;
-webkit-hyphens: none;
-moz-hyphens: none;
hyphens: none;
}

#ezblog-body .blog-text img, #ezblog-body .blog-content img {
max-width: 100%;
width: 800px;
height: auto;
}


#eblog-wrapper .social-button-small.linkedin-share {width: 105px;}

.bm-bann p {
text-align: center;
margin-top: 23px;
padding-bottom: 10px;
}

#bruce-bottom {
z-index: 6;
width: 500px;
height: 25px;
position: fixed;
bottom: 0;
left: 0;
}



#bm-bann {
z-index: 12;
width: 650px ;
margin: 0 auto ;
}


#bm-outer {
z-index: 12;
width: 650px ;
text-align: center;
}

#bm-inner {
display: inline-block;
}

@media (max-width: 768px) {
.customtop_banner_responsive img {
width: 75% !important;
height: 10% !important;
}

.custom_logo_responsive img {
width: 15% !important;
height: 10% !important;
margin-top: -92px;
margin-left: 45px;
}

.bm-bann {
margin-left: 72px;
margin-top: -114px;
}


}

.navbar-main li {
margin-bottom: 10px !important;
}

body div#fd.es .register-wrap {
width: auto;
}

body div#fd .btn-sm {
white-space: pre-line;
}

#section-kmt .kmt-control-user {
position: relative;
}

/* adjust the blog image from the user profile blog filter page */
body div#fd .teaser-image img {
width: 100% !important;
}
·
Wednesday, 29 July 2015 18:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Paul,

Thanks for the idea. Yes it is actually possible to alter this behavior via css hack. Try the following css code and see how it goes.
div#fd.eb .eb-post-side+.eb-post-content {
text-align: justify;
}
·
Wednesday, 29 July 2015 19:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Erzul

That did the trick

Thanks

Paul
·
Wednesday, 29 July 2015 21:09
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Paul, glad that your issues are resolved now.
·
Thursday, 30 July 2015 00:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post