![]() |
|
PmWiki »
Gemini Tips
A collection of tips for administratorsSetting different defaults for colours, fonts, layout etcIn skin.php (near the top) change the keyword in SDV($DefaultColor,'keyword'); etc. Each option is held in an option list like $PageColorList as a pair of values: the first is the keyword, which is used to set the option, for instance in links on pages, the second is the css filename, which gets loaded when the option is selected. You can also set a new default color or font scheme in config.php by setting $DefaultColor = 'keyword'; or $DefaultFont = 'keyword'; Switching off all style changing optionsIn skin.php change Switching off selected style changing optionsThis can be done by commenting out selected blocks of cookie setting routines in stylechange.php (enclose with /* ... */ ), while leaving the ones needed enabled. Another way would be in skin.php to place comment #-symbols in front of all array items of the $Page...List arrays which are not required. Restricting style optionsIn skin.php place #-comment symbols at the beginning of each option in the $Page..List option array which should be disallowed. Leave only the options uncommented which are allowed. Adding more colour (or font) optionsBest is to save a colour (font) css file under a new name, add a line to the $PageColorList ($PageFontList) array, like Setting different default colour schemes for different groupsThis makes most sense if the colour changing option is disabled. See above the first two entries for this. If it is not disabled users will see the colours they have choosen last (unless they have not yet choosen a different colour scheme).
<?php if (!defined('PmWiki')) exit();
$DefaultColor = 'red-gold';
?>
Likewise defaults for other style options like fonts and layout can be set in config.php or group.php files. Using (:theme ...:) markup to display colour and font schemesA custom markup Showing a RightBar page on all pages as defaultIn skin.php change Removing or relocating the sidebar searchboxIn skin.php changing One problem with using the # adds 'enabled' conditional markup:
$Conditions['enabled'] = "(boolean)\$GLOBALS[\$condparm]";
Then in the SideBar use this: skin.php contains the code which defines the variable $smallsearchbox, but only if the default searchbox is disabled as stated at the beginning. Adding switches to the sidebar to toggle scrolling and fixed mode (FixFlow only)Add the 'enabled' conditional markup to config.php as given in the last paragraph. (:if enabled scrollswitch:)
[-Menu: [[{*$Name}?menu=scroll|scroll]] [[{*$Name}?menu=fixed|fixed]]-]
(:if:)
The variable $scrollswitch is set to 1 in skin.php. The conditional markup will only show the switch links within the `Fixflow skin. Adding a 'Close RightBar' button to the RightBarredbt.gif is a small red close button included in the skin's image folder. Upload it to some image directory on the site and add on the RightBar at the top: This will place thew image into the right top corner and RightBar as link and title to the left. Removing the group name from the titlebarChanging Adding a logo and/or site titleA logo can be added either by setting Creating page titles with non-standard (fancy) fontsThe normal page titles can be replaced with images of non-standard (fancy) fonts, by creating a page
with the string "-TitleBar" added to the name of the page, like "MyPage-TitleBar". Put the image as
attachment on this page, without any lines before or after (for instance: |
| Page last modified on September 02, 2005, at 03:06 AM - Powered by PmWiki |