##################################################################### # EDIT THE EXPORT LINE BELOW TO FIT YOUR NEEDS, BUT DO NOT UNCOMMENT! # Export = articles ##################################################################### # Plugin Name = kill_info # Author = Marko Kleen # Copyright = GPL -> see http://www.8t88.de/ # Purpose = Discard info sections, e.g. in static articles ##################################################################### # Plugin types are specified in the EXPORT line above. # global: Your plugin is applied on all output # articles: Your plugin is applied on all articles' output # responses: Your plugin is applied on guestbook entries and comments # override: Your plugin overrides one of 8t88's existing subroutines # macro: Your plugin adds a new macro with new functionality ##################################################################### my $res = $_[2]; if ($res =~ //i) { $res =~ s'.*?''gi; } else { undef($res); } return ($res); ##################################################################### # USAGE: # # To use this plugin simply drop it into your "8t88's CMS v2" plugins # directory. Then insert the HTML comment into those # articles where you don't want to see the CMS' info output, # # That's all, enjoy! ##################################################################### # EOF