Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
mark007 Posted January 17, 2017 Posted January 17, 2017 Hi, I would like to insert notes für guests in each first post of a topic after a specific number of characters. For example after 255 characters of the post. It would be great if somebody could help with the code, that I have to put in postContainer template (?) to realize that. Many thanks in advance! Mark
opentype Posted January 17, 2017 Posted January 17, 2017 The posts are now full HTML. You can’t just cut it off after a certain amount of characters. That could break the page terribly. You can hide entire posts though, like this plugin does nicely:
mark007 Posted January 17, 2017 Author Posted January 17, 2017 18 minutes ago, opentype said: The posts are now full HTML. You can’t just cut it off after a certain amount of characters. That could break the page terribly. Thanks for your answer. So no way ... ? Hide entire posts is no option for me, just a note after a few lines.
opentype Posted January 17, 2017 Posted January 17, 2017 You can hide lines with CSS, if that helps you. The IPS 4 framework offers that. <div data-ipstruncate data-ipstruncate-type="remove" data-ipstruncate-size="2 lines"> This post gets cut off if it gets longer than 2 lines </div>
Nathan Explosion Posted January 17, 2017 Posted January 17, 2017 8 minutes ago, mark007 said: Thanks for your answer. So no way ... ? Hide entire posts is no option for me, just a note after a few lines. I'll have a think about adding this to the above plugin.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.