| Hot on the heels of jHide I have finished and am ready to release “The Replacer” beta. The replacer is a made up of a component and a mambot/plugin. Via the administrator you enter in regular expressions and code for a function to run on the matches. This component is a DEVELOPERS TOOL, not for the faint hearted. You need to have a good understanding of regular expressions and php if you wish to enter your own. Otherwise you can break your site with dodgy regular expressions and non-functioning code.   The component comes with two regular expression already entered… ones for hiding anythin inside the {reg}{/reg} and {noreg}{/noreg} to emulate the jHide mambot functionality. I will add others to the install as I come up with them. Installation instructionsDownload the component here
 Download the mambot here
 Install both the mambot and component
 Publish the mambot
 Navigate to components->replacer and publish the regular expressions you want to work.
 Creating your own replacer regexNavigate to components->replacer
 Click New
 Enter a name and a description for your entry
 Enter the regular expression
 Enter the code for the dynamic php function to be called and run on any matches.
 NOTE: I would recommend any new regular expression be developed on a test server before you publish them on a live environment. Because you are entering php code that will be run in the event of a match you run the risk of a php error. |