====Banner Generator==== The following action can be used generate colored banners on wiki pages by using GD (required on the server) and fonts provided by the administrator. (TTF fonts must me placed in a directory "fonts" in a directory called ##scripts## in the wikka root). On my server with 6 installed fonts it provides the following output..... http://gmbtst.msvu.ca/wikitest/bannermaker.jpg Place this code in the ##actions## directory as ##banner.php## %%(php) GetConfigValue("base_url"); // Below line might need to be modified to whatever is appropriate for your installation .... 'wikka.php?wakka=' if ( substr_count($site_base, 'wakka.php?wakka=') > 0 ) $site_base = substr($site_base,0,-16); $generator = $site_base."actions/bannergenerator.php?"; $buttoncolor = $bgcolor; // Set below fonts to those present in fonts directory (which the admin makes in the actions directory) // Set the first font to that which you wish to be your default if a font isn't specified // The administrator can add as many different fonts as they wish if(!$font) {$font = "1";} if ($font == "1"){$font = "verdana.ttf";} if ($font == "2"){$font = "toby.ttf";} if ($font == "3"){$font = "times.ttf";} if ($font == "4"){$font = "vera.ttf";} if ($font == "5"){$font = "oldeng.ttf";} if ($font == "6"){$font = "courierbld.ttf";} // create img tag echo ''.$text.''; ?> %% This file is REQUIRED in a directory called ##scripts## in the wikka root as ##bannergenerator.php## %%(php) %% ---- CategoryUserContributions