I’m trying to make an extension to search for email addresses and encode them a certain way. I cannot for the life of me find a hook for an extension (or module/plugin if need be) to get and modify the final output of a front end page (similar to what show_full_control_panel_end would do for the back end). Can anyone point me in the right direction?
The emails can come from weblogs, comments, even from a modified template. I’ve thought about making a module to control if it is on or off, as we have different areas of the site where we display email address’s a little differently, but this still wouldn’t cover the ‘directly into the template’ part.
I’d be fine with making a plugin if you can give me any advice as to how to fire off the plugin after everything is rendered and then send that back to the output buffer.
As is right now I’ve modified the index.php file (wrapped an ob_start around it) then modified any email addresses found, and it works great. But if down the road the client decides to remove this functionality, I’d like for them to be able to turn something off rather than play with code.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.