Signature vs Post Render

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
Kison
Registered User
Posts: 16
Joined: Wed Jun 02, 2004 8:45 am

Signature vs Post Render

Post by Kison » Sun Mar 18, 2018 4:49 am

Hey everyone,

I'm trying to write a few extensions to modify the behavior of signatures without modifying posts, forum descriptions, etc. I'd like the modify their behavior in the following ways:

1) If a signature is over X lines, hide it behind a "Show" button.
2) Do not render certain BBCodes.

I know I could accomplish #2 by blocking at submission time, but this would require retroactively fixing signatures with the disallowed tags. I can't think of any way to accomplish #1 without modifying rendering or using JavaScript.

The problem I'm running into is that I cannot see any way to determine the source of the content in either the core.text_formatter_s9e_render_before or core.text_formatter_s9e_render_after events.

Is this the correct approach? Is what I am trying to do possible without modifying the core codebase?

Thanks in advance! :)

Post Reply

Return to “Extension Writers Discussion”

Who is online

Users browsing this forum: caiocald and 8 guests