We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Modify output hook?

Development and Programming

boswebdev's avatar
boswebdev
52 posts
16 years ago
boswebdev's avatar boswebdev

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?

       
silenz's avatar
silenz
1,648 posts
16 years ago
silenz's avatar silenz

Where do the email addresses come from? Weblog or comment fields? Or some other source that outputs to a template?

Actually this sounds more like a job for a plugin rather than an extension.

       
boswebdev's avatar
boswebdev
52 posts
16 years ago
boswebdev's avatar boswebdev

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.