Package Tracking (via UPS, FedEx, and DHL)
The following serialized filter turns UPS, FedEx, and DHL tracking numbers into links to the respective websites for package tracking
Flexifilter, as of 1.1, provides for importing and exporting. When exporting a flexifilter, you can choose either a PHP version for use in modules, or serialized data for manual imports. To manually import flexifilters, such as those provided below, go to Administer -> Site Building -> Flexifilters, and click 'Import a flexifilter'. To use an export in your module, manually import the export as shown previously, and then export them in PHP format (or you can build them from scratch). Then see the Flexifilter API handbook page.
Please contribute your own flexifilters! If you have documentation status, please edit this page and add them in the format provided. If you don't have documentation status, create a book page with this node as the parent, and someone with documentation status will move them here for you.
The Mediawiki format is a widely used format that is based on the Mediawiki software. It comes pre-installed with Flexifilter, however it is a good example of a flexifilter, and what Flexifilter's exports look like.
Flexifilter Cite is a sample module, serving as an example of how modules can utilize Flexifilter to distribute a filter. It allows for citations of other nodes to be added as components in flexifilters.
Sometimes it's difficult to teach users how to use HTML, and instead, you can teach them a format like this: [link|title]. This export provides the flexifilter for this format.
Please note that the previous link is not importing correctly in flexifilter-6.x-1.2. Please import this instead:
a:9:{s:5:"label";s:15:"Link Formatting";s:11:"description";s:47:"You may format links in the format [link|title]";s:2:"id";s:1:"2";s:7:"enabled";b:1;s:8:"advanced";b:0;s:5:"delta";s:1:"0";s:5:"cache";s:1:"1";s:10:"components";a:3:{i:0;a:3:{s:5:"class";s:22:"flexifilter_chunk_grab";s:8:"settings";a:7:{s:6:"starts";s:1:"[";s:4:"ends";s:1:"]";s:11:"pass_limits";i:0;s:14:"case_sensitive";i:0;s:12:"include_rest";i:1;s:4:"step";s:7:"process";s:10:"components";a:3:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_prepend";s:8:"settings";a:2:{s:4:"text";s:9:"<a href="";s:4:"step";s:7:"process";}s:2:"id";s:2:"32";}i:1;a:3:{s:5:"class";s:24:"flexifilter_text_replace";s:8:"settings";a:3:{s:4:"find";s:1:"|";s:7:"replace";s:2:"">";s:4:"step";s:7:"process";}s:2:"id";s:2:"33";}i:2;a:3:{s:5:"class";s:23:"flexifilter_text_append";s:8:"settings";a:2:{s:4:"text";s:4:"</a>";s:4:"step";s:7:"process";}s:2:"id";s:2:"34";}}}s:2:"id";s:2:"31";}s:7:"id_next";i:35;s:9:"id_prefix";s:22:"flexifilter_component_";}s:3:"fid";s:3:"new";}
When text is really long and unwieldy, you need a back to top link. Because Flexifilter has if statements, and text appending, we can create such a filter with Flexifilter. See this tutorial and this export.
If you have a community that allows anyone to post to the front page, you may consider using a swear filter. Here is the export for a starting point- you can add your own swears, using the example (not a real swear!) to guide your filter.
The following serialized filter turns UPS, FedEx, and DHL tracking numbers into links to the respective websites for package tracking