MyBB Community Forums

Full Version: Read more on portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I have a question.
I want to add Read More option to all posts on Portal so that it reduces the page length that gets increased because of long posts, can anyone tell me how it can be done ?
You're going to need a plugin I suspect. I would look into using the MySQL SUBSTRING_INDEX operator on the post content eg. SUBSTRING_INDEX(post_description, ' ', 20) if you want the first 20 words.
(2015-12-01, 05:53 PM)Ben C Wrote: [ -> ]See: http://community.mybb.com/mods.php?action=view&pid=373

Nice !
(2015-12-01, 05:53 PM)Ben Wrote: [ -> ]See: http://community.mybb.com/mods.php?action=view&pid=373

Unfortunately, this plugin is not working on MyBB 1.8.22 | php 7.2

Is there an alternative to this plugin?
^ if you are getting some error then post it so that someone can check ..

see other available plugins for your requirement :
* Portal Announcement Cutoff
* Portal News Preview
(2020-02-18, 04:26 AM)EHRA Wrote: [ -> ]
(2015-12-01, 05:53 PM)Ben Wrote: [ -> ]See: http://community.mybb.com/mods.php?action=view&pid=373

Unfortunately, this plugin is not working on MyBB 1.8.22 | php 7.2

Is there an alternative to this plugin?

I'll fix it asap .... Looks like the well known MySQL rows issue. Wink
(2020-02-18, 05:11 AM).m. Wrote: [ -> ]Portal News Preview

Thank you very much for your help, the Portal News Preview plugin works very well on MyBB 1.8.22 and met my goal. Wink

(2020-02-18, 08:09 AM)SvePu Wrote: [ -> ]I'll fix it asap .... Looks like the well known MySQL rows issue. Wink

Thank you for your attention. I don't get any error messages with your plugin. It just doesn't work, I believe you need to update the jscripts to make your plugin compatible with MyBB 1.8.22
(2020-02-20, 12:47 PM)EHRA Wrote: [ -> ]
(2020-02-18, 08:09 AM)SvePu Wrote: [ -> ]I'll fix it asap .... Looks like the well known MySQL rows issue. Wink

Thank you for your attention. I don't get any error messages with your plugin. It just doesn't work, I believe you need to update the jscripts to make your plugin compatible with MyBB 1.8.22

you're welcome!

I fixed the installation issue on PHP 7.2 >> but you're right - the plugin doesn't work correctly anymore. The used "readmore.js" script need an major update to get it working again.

I'll mark the plugin as "outdated" until "readmore.js" script autor hasn't fixed the JS issues.