Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Portal Announcement Cutoff
#1
[Image: preview_23276_1418654903_034ff081a4014c7...ae5c5e.png]


Portal Announcements are great but they show all the post content; if you want to trim down the size of the portal announcements then this plugin will set a limit on the number of characters shown in an announcement. The plugin adds an ellipse at the end of the shown text and a read more link.

Features
  • The announcement cuts off at a full word, not half way through
  • The read more link is stylable as a button or as a link after the ellipses
  • If the announcement is shorter than the limit then no read more link is displayed.

Known Issues
  • The plugin will display malformed BB code if the end tag is outside the range of the cut off.

Where to find the settings?

The settings are incorporated into the portal settings in the Portal settings in your ACP.
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#2
Personally I do preffer a custom [!--more--] MyCode instead because of the issue you mention. Just saying. Keep going!
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#3
Yup, yours is very smart; its a good solution. I made this ready for my upgrade to 1.8 (its just an update of the original) Smile
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#4
Following
Reply
#5
I have always wanted a plugin like this. Since there wasn't any so I disabled Portal page. BTW Is there any more mycode my Omar G. said ?
Reply
#6
(2014-12-15, 11:52 AM)Omar G. Wrote: Personally I do preffer a custom [!--more--] MyCode instead because of the issue you mention. Just saying. Keep going!

Hello Omar, excuse me but could you help us with the link to this mycode custom?
I found this: http://community.mybb.com/thread-99918.html
But the user was banned and the info was gone Sad
Reply
#7
It is not a standalone plugin, it is something I coded within my OUGC Show In Portal plugin. You can find it around here in the plugin development section.
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#8
Clicking read more opens link in a new window. Is there anyway to keep it in the same window?
Reply
#9
It is supposed to open it in a new window. Its a link to the thread.

If you want a panel that slides down showing all content then that is a different thing. Rakes actually did make a simple css/js code for it, but its not a plugin - more of a tip or trick. I will try and find it.

HERE : http://jsfiddle.net/su496zc9/
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#10
Is there a fix for the issue of the closing BBCode outside of the character limit?
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)