By Alan Bannister on Saturday, 18 March 2017
Posted in General Issues
Likes 0
Views 512
Votes 0
One of our Bloggers has a long (but interesting) profile listing. At the moment it is always shown in full at the top of his blog page and the actual blog is always below the bottom of the screen. Is there any way in which I can use 'Read more' or some other technique so that the reader has a choice on how much can be displayed?
http://www.emmanuel-ilfracombe.org.uk/index.php/robert-s-ruminations
Hello Alan,

Hm, currently there is no way to truncate this but I guess what you could do is to apply truncation on his biography. Here's what you can try, edit the file /components/com_easyblog/themes/wireframe/authors/item.php and at line 100 locate the codes below,


<div class="eb-authors-bio">
<?php echo $author->getBiography(false, true);?>
</div>


Replace it with,


<div class="eb-authors-bio">
<?php echo $this->html('string.truncater', $author->getBiography(false, true), 350);?>
</div>


This will truncate the biography to a max of 350 characters.
·
Sunday, 19 March 2017 13:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark, sorry not to replied sooner, but have been away doing other stuff.

Now applied the suggested code, but the effect was not what I expected. I got the idea it would truncate the biog down to 350 characters. What actually happens is that it adds a 'More' link to the bottom of the full Bio. Clicking the link does nothing and it appears to link to javascript:void(0);

Page is at: http://www.emmanuel-ilfracombe.org.uk/index.php/robert-s-ruminations

Any idea what might be going wrong?
·
Thursday, 30 March 2017 00:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alan,

Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?

You can add the information needed by edit your first post in the Details section or you can just include your site's access once at http://stackideas.com/dashboard/site rather than needing to keep adding them in your replies
·
Thursday, 30 March 2017 12:04
·
0 Likes
·
0 Votes
·
0 Comments
·
I have added the access information to the dashboard as suggested.Note that I use the .htaccess validation, details are included on the dashboard.
·
Thursday, 30 March 2017 17:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Alan,

I've checked in your site, the reason why it didn't work correctly is because your biography content contain those HTML tag.

The only way can achieve this is strip those HTML tag then it will show correctly for the truncation, but it will lost those spaces you added, you can check my video here : http://take.ms/a7K8p
·
Thursday, 30 March 2017 20:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for spotting the main problem. I have now done a workaround that involves removing the tags from the opening paragraph and reducing the truncation length to 202 characters. That seems to do the trick.as when I click 'More' the rest of the piece shows with the formatted paragraphs.
Now people can see there is a blog without scrolling down!
I will mark this as resolved, so thanks again.
·
Friday, 31 March 2017 00:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Alan, glad that your issues are resolved now.
·
Friday, 31 March 2017 00:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post