Filters for Outputfilter-Dashboard

These are examples Plugin-Filters for Outputfilter-Dashboard.


manipulate HTML

Cache Control

Prevent Browsers from delivering outdated CSS- or JS-files by adding the last-changed-date to all <link rel=“stylesheet” …> and <script type=“text/javascript” …> lines in the page's <head>-section.

That is

<head>
...
<link href="http://localhost/wb/modules/anynews/frontend.css" rel="stylesheet" type="text/css" media="screen" />
<script src="http://localhost/wb/modules/droplets/js/mdcr.js" type="text/javascript"></script>
</head>

becomes

<head>
...
<link href="http://localhost/wbtest/modules/anynews/frontend.css?1240023920" rel="stylesheet" type="text/css" media="screen" />
<script src="http://localhost/wbtest/modules/droplets/js/mdcr.js?1267911844" type="text/javascript"></script>
</head>

Author: thorn, Last changed: 17 Jan, 2010

opf_cachecontrol_1.0.0.zip (3.9 KiB, 1y ago)



Display

Correct Date Format

Dates in e.g. the News-Module will always be in English (1st January, 2008), even if the language is set to e.g. German. This filter will correct those dates on-the-fly to display the correct format (1. Januar 2008).

Author: thorn, Last changed: 28 Dec, 2009

opf_correctdateformat_1.2.0.zip (4.96 KiB, 1y ago)


PC-DTR

PHP + CSS Dynamic Text Replacement, a filter to dynamically replace text by images.

A standard CSS file is used to control which text to replace, the font to use, font color, background color, font size and more. Just copy a .ttf-font to the module's pcdtr directory to use it.

Author: thorn, Last changed: 27 Jul, 2010 This filter uses P+C DTR from http://www.joaomak.net/util/dtr/, changed by thorn to be utf-8 aware.
Requirements: MultiByte-Functions enabled (mb_strtoupper(), mb_strtolower)

Version 1.1.4 (07 Aug 2010):
finaly fixed (hopefully) all UTF-8/HTML-Entities problems
opf_pcdtr_1.1.4.zip (407.37 KiB, 1y ago)


Searchengine Highlighter

A Filter to highlight the search terms a user has used to find your site (by e.g. Google).

Author: thorn, Last changed: 01 Dec, 2008, Uses Search Term Highlighter from Dave Lemen

opf_searchenginehighlighter_1.0.0.zip (11.27 KiB, 1y ago)



Content

Quick Glossary

A quick and dirty Text-Replacement Filter. Can be used to just replace text, to add HTML (e.g. <abbr>, <acronym>), to replace text by images, and more.

A text-file is used to configure this filter:

example configuration

ASAP <acronym title="as soon as possible">###</acronym>
wikipedia <a href="http://www.wikipedia.de" title="Wiki" target="_blank">###</a>
dog <img src="[WB_URL]/media/dog.png" title="###" alt="###">
:-) <img src="[WB_URL]/media/smiley.png" title="###" alt="###">

This example will replace all appearances of ASAP by an <acronym>-Element, “wikipedia” by a link, and all “dog” and ”:-)” will be replaced by images.

Author: thorn, Last changed: 03 Oct, 2009

opf_quickglossary_1.1.0.zip (4.54 KiB, 1y ago)


 
projects/outputfilter_dashboard/filters.txt · Last modified: 2010-08-07 16:16 by Thomas "thorn" Hornik
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki