MyBB Community Forums
Portal Truncate - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Portal Truncate (/thread-151809.html)



Portal Truncate - MyBB Monster - 2014-03-10

Hey guys,

I am wanting to truncate my portal announcements. If you don't know what truncate is here is an example, currently my announcements show as: http://speedcap.net/sharing/files/96/47/96473d519413e5ee6184858ed6674227.png
However, when you truncate the announcement it should show like this: http://speedcap.net/sharing/files/90/21/902104745baeb98c7713c59a0d082353.png

I have tried several methods, php truncate(I'm bad at php so I didn't get far with this) and also jQuery/JavaScript. I got one working, but it only affected the first announcement. Then once I set it to show only one announcement is didn't work.

Can anyone tell me how I would get this to work?

Thanks,
- Harry.



Edit: I managed to achieve this with CSS, I will post a tutorial soon.


RE: Portal Truncate - cfootball1 - 2014-03-11

There's also a plugin for this.

http://mods.mybb.com/view/portal-announcement-cut-off