archive-in.com » IN » O » OLYMPE.IN

Total: 343

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • DellardOS Wiki | PmWiki / LocalCustomizations
    config php file to enable them Some of the scripts are automatically enabled for you via the scripts stdconfig php script unless you disable it by setting EnableStdConfig 0 in local config php Order of the commands in config php link The following order is recommended define ScriptUrl and PubDirUrl if needed define any custom PageStore class like SQLite CompressedPageStore or PerGroupSubDirectories next include once scripts xlpage utf 8 php next call XLPage which needs the definitive rw WikiDir already set in order to find the wiki page containing the translations next include authuser php if needed because PmWiki caches some group and page authorization levels when a page is accessed next include any other scripts and recipes any direct function call in config php like ResolvePageName CondAuth PageTextVar PageVar RetrieveAuthPage or others if possible should be done near the end of config php Note each part is not required but if your wiki needs it this is the recommended order in config php Character encoding of config php The encoding used when you save config php has an effect Your text editor should allow you to save config php in the encoding of your wiki The default encoding of PmWiki is ISO 8859 1 for new wikis it is recommended to enable UTF 8 Newer operating systems like GNU Linux FreeBSD and Apple generally default to saving text files in Unicode UTF 8 in Windows the default encoding is ANSI Windows 1252 which is almost the same as PmWiki s ISO 8859 1 The following free libre software text editors can edit and save a file in different encodings Cross platform Kate for KDE Geany Arachnophilia SciTE Bluefish vim and others Windows Notepad ConTEXT Notepad 2 OS X Aquamacs Note that if you use the UTF 8 encoding you should save your files without Byte Order Mask BOM Over time PmWiki will be updated to default to Unicode UTF 8 encoding which allows all possible alphabets and languages See UTF 8 for more information pub css local css You can create this file and set there some custom CSS styles which will override any styles set by skins For example h1 h2 h3 h4 h5 color 880000 dark red titles a text decoration none don t underline links Don t modify pmwiki php or other core files You should strongly resist the temptation to directly modify the pmwiki php script or the files in the scripts subdirectory Any modifications you make to these files will probably be overwritten whenever you upgrade Instead look at some of the sample scripts for examples of customizations that can be performed from config php You can even create your own script to do a customization and use include once to include it from config php If you do make your own customization script you can safely put it in the cookbook subdirectory it won t get overwritten by an upgrade there You might also want to submit your customization to the pmwiki users

    Original URL path: https://gameblabla.olympe.in/w/pmwiki.php?n=PmWiki.LocalCustomizations (2016-04-30)
    Open archived version from archive

  • DellardOS Wiki | PmWiki / GroupCustomizations
    customizations for Chess HomePage Almost any customization that would be placed in config php can be used as a per group or per page customization An important exception to this is setting per group or per page customizations for recipe scripts included in config php Most recipe scripts would need any customization variables defined before the script is included Instead of using a per group or per page customization php file use a per group or per page conditional statement in config php before including the recipe script Example page PageVar pagename FullName group PageVar pagename Group per group customizations if group GroupName RecipeVariable valueA etc per page customizations if page GroupName PageName RecipeVariable valueB etc include recipe after variables are set include once cookbook recipescript php Note that this method cannot be used to set DefaultPasswords you should use Group or Page attributes See Passwords and PasswordsAdmin for more information Processing order For all local customizations PmWiki first processes the local config php file and then looks for a per page customization file in the local subdirectory to process followed by any per group customization file If no per page or per group customizations are loaded then PmWiki loads local default php If a per page customization wants to have the per group customizations loaded first it can do so directly by using PHP s include once function For more information see wiki cascades Custom CSS styles per group or per page To apply CSS styles to pages of a specific group named Group Name create a file named GroupName css in the pub css directory and add the CSS style rules there To apply styles to a specific page create a file GroupName PageName css in this directory with your style rules Any CSS rules to be applied for all wiki pages can be put into pub css local css pub css GroupName css body background F4C4B4 Preventing group Level configurations Any customization file can set EnablePGCust 0 to prevent later page group default customizations from being automatically loaded If a per page customization needs to have the per group customizations loaded first it can do so directly by using PHP s include once function Authentication Any passwords required for a group should be set in the group s Group Attributes page see Passwords Administration and not in a group customization file Consider Wiki Farms Wiki Groups are an easy way to host multiple sites in a single PmWiki installation by giving each site its own group Another approach is to use Wiki Farms which allows each site to have its own set of Wiki Group and local customization files Read about If you are looking for nested group levels you may want to consider Pm s design considerations on hierarchical groups How can I apply CSS styles to a particular group or page Simply create a pub css Group css or pub css Group Page css file containing the custom CSS styles for that group or page

    Original URL path: https://gameblabla.olympe.in/w/pmwiki.php?n=PmWiki.GroupCustomizations (2016-04-30)
    Open archived version from archive

  • DellardOS Wiki | PmWiki / Skins
    recipe That s what we used for the demo above How can I modify an existing skin There are a number of ways to further customize the appearance of a skin including adding statements to local config php that are compatible with your chosen skin adding css files to pub css such as local css for your entire wiki and MyGroup css for MyGroup and directly editing the skin s files If the skin is updated regularly you probably will want to avoid editing the files in the skin s folder Check the skin s page in the Cookbook for specific suggestions If you want to modify the default pmwiki or print skins included with the PmWiki distribution you should copy the pub skins pmwiki and pub skins print directories to another name and then use those skins instead of the default ones While the name of the skin tmpl and skin css files don t usually matter the optional skin php file MUST match the name of the skin How can I make a skin The best way to make your first skin is to modify a copy of PmWiki s default skin Make a copy of the folder pub skins pmwiki and name it whatever your new skin should be named In your local config php file set Skin to be the name of your new skin Modify the template and CSS files to suit you Test your new skin Repeat steps 3 and 4 until you re happy with the results The reason we recommend starting with the default PmWiki skin is that it s quite a simple skin much more so than many of the skins you ll find in Skins The starting point is the template tmpl file which provides the overall layout of the page Inside of the template file are a number of special substitutions and directives that provide places for PmWiki to insert the data relevant to the current page being displayed Skin Templates describes the format and directives in more detail There are also skin guidelines available on pmwiki org It s beyond the scope of this page to explain how to write HTML hypertext markup language XHTML extensible HTML which is a bit newer or CSS cascading style sheets but there are many good tutorials on the web for all three of them One caution if you run into an HTML tutorial that explains about how to use font or blink tags or spacer gifs it s at least five years out of date so skip it and find another one You should test your skin on a variety of browsers ideally as many as you can on as many different platforms as you can but at minimum you should be testing on Internet Explorer 8 Firefox 3 and Chrome since those are the most common and have different bugs it is also useful to test on Opera and Safari Don t forget to do things like resize windows and

    Original URL path: https://gameblabla.olympe.in/w/pmwiki.php?n=PmWiki.Skins (2016-04-30)
    Open archived version from archive

  • DellardOS Wiki | PmWiki / SkinTemplates
    is print if GLOBALS action print LoadPageTemplate pagename SkinDir print tmpl When the action is something else PmWiki will fall back to loading the default tmpl file instead If no appropriate php file is found or if that file doesn t load a template then PmWiki falls back to looking for a template with the same name as the skin or failing that any tmpl file at all so long as its the only one in the directory If it finds one it will load and process it If not it will issue an error Template file format A template file is basically an HTML file that also contains variable substitutions indicated by and special directives embedded in HTML comments The following special directives are required in the template file The directive PageText belongs to the body section of the HTML document and tells PmWiki where the main content of each wiki page should be placed The directive HTMLHeader which goes somewhere in the head section of the HTML document The directive HTMLFooter directive which typically goes before the final body tag and is used by some recipes to insert things at the end of the HTML document Prior to PmWiki 2 2 0 the HTMLFooter directive was optional When PmWiki displays a page it replaces the directives and variable substitutions with the values appropriate to the current page For example the PageText directive is replaced with the page s contents while any instances of PageUrl are replaced with the url address of the current page Note your skin template shouldn t have a meta tag specifying the charset encoding as PmWiki adds this tag when needed There is a long list of variables available for substitution in pages some of the most useful include PageUrl the url of the current page ScriptUrl the base url to the pmwiki php script Title the page s title e g SkinTemplates Titlespaced the page s title with spaces e g Skin Templates Group the name of the current group e g PmWiki FullName the page s full name e g PmWiki SkinTemplates LastModified the page s last modification time PageLogoUrl the url of a site logo WikiTitle the site s title SkinDirUrl the url of the skin s folder This last variable SkinDirUrl is particularly useful in templates as it allows the skin designer to refer to other files such as images or style sheets in the skin folder without having to know the exact url The template is not limited to using the variables listed here nearly any PHP global variable that begins with a capital letter can be used in a skin template Page variables can also be used in templates Skin directives Besides the required PageText and HTMLHeader directives PmWiki provides other built in directives for generating page output It s not necessary to use any of these directives but they can often add capabilities to a skin wiki Main SomePage page Main SomePage The wiki Main SomePage directive

    Original URL path: https://gameblabla.olympe.in/w/pmwiki.php?n=PmWiki.SkinTemplates (2016-04-30)
    Open archived version from archive

  • DellardOS Wiki | PmWiki / SitePreferences
    as well as the name of the edit form in use A different page than Site Preferences can be chosen by making a copy of that page under a new name customising it and setting a cookie which will point to this page for the browser being used through setprefs SomeGroup CustomPreferences SomeGroup CustomPreferences being the name of the new customised preference page Notes and Comments Note that in order

    Original URL path: https://gameblabla.olympe.in/w/pmwiki.php?n=PmWiki.SitePreferences (2016-04-30)
    Open archived version from archive

  • DellardOS Wiki | PmWiki / WebFeeds
    feeds via the FeedFmt array Elements in FeedFmt look like FeedFmt atom feed rights All Rights Reserved where the first index corresponds to the action action atom the second index indicates a per feed or per item element and the third index is the name of the element being generated The above setting would therefore generate a rights All Rights Reserved rights in the feed for action atom If the value of an entry begins with a then feeds php doesn t automatically add the tag around it Elements can also be callable functions which are called to generate the appropriate output See RSS specification or other feed specifications for what feed content you can use You can also change an existing element rather than add a new one You can use the following lines to ensure that changes made to the wiki will be picked up by some RSS readers that wouldn t otherwise notice a page has been changed Change the link URL when an item is edited FeedFmt rss item link PageUrl when ItemISOTime FeedFmt atom item link link rel alternate href PageUrl when ItemISOTime n See Also Cookbook FeedLinks Add HTML head links for auto discovery of your feeds WikiTrails Wikipedia Web feed Wikipedia Web syndication Wikipedia RSS 28file format 29 Wikipedia Atom 28standard 29 How do I include text from the page whole page or first X characters in the feed body note markup NOT digested function MarkupExcerpt pagename page RetrieveAuthPage pagename read false return substr page text 0 200 FmtPV MarkupExcerpt MarkupExcerpt pn FeedFmt rss item description MarkupExcerpt Q Does this mean if I want to include the time in the rss title and summary to rss body I call FeedFmt twice like so FeedFmt rss item description LastSummary FeedFmt rss item title Group Title ItemISOTime From mailing list Feb 13 2007 a response by Pm Yes How can I use the RSS enclosure tag for podcasting For podcasting of mp3 files simply attach an mp3 file to the page with the same name as the page i e for a page named Podcast Episode4 one would attach to that page a file named Episode4 mp3 The file is automatically picked up by action rss and used as an enclosure The set of potential enclosures is given by the RSSEnclosureFmt array thus RSSEnclosureFmt array Name mp3 Name wma Name ogg allows podcasting in mp3 wma and ogg formats How to add summary to the title in a rss feed ie with action rss Add this line in you local config php FeedFmt rss item title Group Title LastModifiedSummary How to add description to the title in an rss feed and summary to the body Add these lines to your local config php FeedFmt rss item title Group Title Description FeedFmt rss item description LastModifiedSummary NOTES you need to replicate these lines for each type atom rdf dc of feed you provide the RSS description tag is not equivalent to the pmWiki Description variable despite

    Original URL path: https://gameblabla.olympe.in/w/pmwiki.php?n=PmWiki.WebFeeds (2016-04-30)
    Open archived version from archive

  • DellardOS Wiki | PmWiki / WikiFarms
    good for testing new versions no matter how badly you mess up one installation it doesn t affect the other Why to use a WikiFarm you can upgrade all wikis in your farm by simply upgrading your home wiki recipes can be shared across all wikis portions of your configuration can be shared across wikis most code is stored in one location and shared by all wikis in the farm I still can t decide if I need a farm The good news is that you don t have to decide in advance In fact the recommended procedure is to first do a normal or single installation of PmWiki Use it for a while Create pages and edit them Get to know how to add recipes Be sure to try out WikiGroups they may be all you need If you choose to create a wiki farm then read on Creating Configuring a WikiFarm Prerequisites Before you create a farm make sure that you have a working installation of PmWiki ready to become the home wiki for your farm all of the wikis in your farm will be on the same web server each wiki will have a unique URL such as http www example com wiki1 http www example com wiki2 http another example com wiki1 and so on Creating the home wiki You do have a working installation of PmWiki at this point don t you That s good because your existing wiki is about to become the home wiki of your farm In the directory that contains your existing wiki create the file local farmconfig php This file is used to hold any local customizations that apply across the whole farm For example you could assign an admin password in farmconfig php that will be used by all of the wikis in your farm If the URL used to access your existing wiki is http www example com pmwiki then a minimal farmconfig php file would look like this php if defined PmWiki exit FarmPubDirUrl http www example com pmwiki pub This loads the variable FarmPubDirUrl with the URL location of your home wiki s pub directory All of the wikis in your farm share this pub directory The pub directory holds skin definitions and GUI edit buttons to be shared by all the wikis in the farm Amazing as it may sound this completes all of the changes you need to make in order to turn your existing wiki into the home wiki of your farm Creating an additional wiki in your farm 1 Create a directory to hold the new wiki This directory must be web accessible just like the directory that holds your home wiki 2 Create a file called index php in the directory with the following contents php include once path to pmwiki php This allows your new wiki to share the PmWiki code stored in your home wiki The path to pmwiki php is the file path to pmwiki php in your

    Original URL path: https://gameblabla.olympe.in/w/pmwiki.php?n=PmWiki.WikiFarms (2016-04-30)
    Open archived version from archive

  • DellardOS Wiki | PmWiki / Troubleshooting
    of the wiki d directory in FileZilla open source FTP app by right clicking on the file File attributes My links in the sidebar seem to be pointing to non existent pages even though I know I created the pages Where are the pages Links in the sidebar normally need to be qualified by a WikiGroup in order to work properly use Group Page instead of Page Also Make sure you type Side B ar with a capital B Why am I seeing Warning Cannot modify header information headers already sent messages at the top of my page If this is the first or only error message you re seeing it s usually an indication that there are blank lines or spaces before the php or after the in a local customization file Double check the file and make sure there aren t any blank lines or spaces before the initial php It s often easiest and safest to eliminate any closing altogether On Windows it may be necessary to use a hex editor to convert LFCR line endings to LF line endings in the local config php file If the warning is appearing after some other warning or error message then resolve the other error and this warning may go away How do I make a PHP Warning about function session write close go away If you are seeing an error similar to this Warning session write close function session write close open some filesystem path to a directory sess failed No such file or directory 2 in your filesystem path to pmwiki php on line NNN PmWiki sometimes does session tracking using PHP s session handling functions For session tracking to work some information needs to be written in a directory on the server That directory needs to exist and be writable by the webserver software For this example the webserver software is configured to write sessions in this directory some filesystem path to a directory but the directory doesn t exist The solution is to do at least one of these Create the directory and make sure it s writable by the webserver software Provide a session save path value that points to a directory that is writable by the server e g in config php session save path home someuser tmp sessions unix type OS session save path C server tmp sessions Windows Why is PmWiki prompting me multiple times for a password I ve already entered This could happen like out of nowhere if your hosting provider upgrades to PHP version 5 3 and you run an older PmWiki release Recent PmWiki releases fix this problem Alternatively this may be an indication that the browser isn t accepting cookies or that PHP s session handling functions on the server aren t properly configured If the browser is accepting cookies then try setting EnableDiag 1 in local config php run PmWiki using action phpinfo and verify that sessions are enabled and that the session save path

    Original URL path: https://gameblabla.olympe.in/w/pmwiki.php?n=PmWiki.Troubleshooting (2016-04-30)
    Open archived version from archive