====== Talk:Projects:Monobook for DokuWiki ====== //I answer all questions on this page, but I occasionally delete older questions as they become irrelevant.// //**Old revisions** are still available, so if you've asked a question and it's not here, look there.// Please spell "DokuWiki" correctly when referencing it. \\ \\ ===== Sites using this template ===== //Link your site here if you wish// * [[http://www.bitbashed.com|BitBashed Electronic Projects]] * [[http://javawiki.sowas.com|German Wiki about Java]] * [[http://www.compagniadelgiardinaggio.it/wiki/|GiardiWiki]] - an italian wiki about gardening. * The Intranet of [[http://www.fieberitz.de/|www.fieberitz.de]] * [[http://live.naplesplus.us/|live.naplesplus.us - Collier County Community Wiki Server]] * [[http://www.wikisquare.com/|WikiSquare]] - Wiki about Square Enix (fr) * [[http://animal-crossing.patrickkempf.de/|Animal Crossing Wiki]] * [[http://www.it.iitb.ac.in/~priyesh/wiki/doku.php|Extending Asterisk]] * [[http://www.flyspray.org/ | Flyspray: The Bug Killer!]] * [[http://www.v-learn.org/dokuwiki | V-Learn.org]] * [[http://iguane39.free.fr/mediawiki/index.php?title=MediawikiSurFree|Mediawiki Configuration for GoogleAnalytics (fr)]] * [[http://degcn.org|竞速游戏专家小组 DrivinggameExpertGroup]] * [[http://www.slackware.com/~alien/ | Eric Hameleers Slackware Wiki]] * [[http://wiki.va-ngo.org|Vietnamese American NGO Network wiki]] * [[http://wiki.pacificlinks.org|Pacific Links Foundation wiki]] * [[http://www.drumsoloartist.com/wiki/doku.php|Drum Wiki]] - modified version of the MonoBook Skin * [[http://www.fica.org/|FICA (Fellowship of Indonesian Christians in America)]] * [[http://www.cs.sunysb.edu/~tuncay/|Tuncay Tekle's wiki]] * [[http://etherboot.org/wiki/soc/|Etherboot's Summer of Code wiki]] * [[http://www.farallon.dk/dokuwiki/doku.php|Farallon.dk's wiki]] * [[http://www.hitel.com/|Hitachi Telecom]] uses it for an internal site * [[http://www.cad-design.com|CAD Design Software]] uses it internally * [[http://www.computersupportcenter.net|Computer Support Knowledge Base]] Thank you for your mod * [[http://competi.hu/ | Competi - modified version of MonoBook (Hungarian)]] * [[http://www.bug.lt|BSD users group of Lithuania]] * [[http://liama.ia.ac.cn|LIAMA sino-french research lab in Beijing]] * [[http://www.blevwal.net/dokuwiki|blevwal.net Wiki]] * [[http://immortal-guild.net/wiki|Immortal Guild Wiki]] * [[http://gika.s206.xrea.com/|技術の部屋]] * [[http://dsmg600.info/|DSM-G600 Wiki]] Thanks!!! * [[http://travel.pelopor.nl| Travel Pelopor]] A little wiki for travel tips, things to do and food! * [[http://apps.tpot.tk/|Oceansoft Library]] (Japanese resources are here) * [[http://wiki.dns323.info/|DNS-323 Wiki]] Thanks!!! * [[http://vwcaddy-wiki.de/|VW Caddy Wiki]] * [[http://tsi300.info/|TS-I300 Wiki]] Thanks!!! * [[http://www.kabissa.org/wiki/ttgo/start|Kabissa - Time To Get Online Internet Training manual for African civil society organizations]] Many thanks for this terrific template! * [[http://locks.stewardclan.net/dokuwiki/doku.php|Locksdownunder - Australian Locksmith Site]] * [[http://agbu.une.edu.au/~kmeyer/dokuwiki|The Wicked WOMBAT Wiki]] * [[http://wiki.terrorchid.org|Terrestrial Orchid Wiki]] * [[http://kde-sk.skosi.org|KDE Slovak translation team]] (sk) * [[http://www.benedikt.kroll.de.gg]] * [[http://www.rookstat.com/rookwiki|Rookgaard Wiki]] Simply the best template! Thanks!! * [[http://ticopedia.costa-rica.eu|Ticopedia.de]] a german wiki for Costa Rica * [[http://wikisquare.com|WikiSquare]] Wiki for Square-Enix ! * [[http://www.ntalk.de/Nettalkdoku/doku.php|Dokumentation]] for the freeware-program Nettalk ([[http://en.ntalk.de|en]]/[[http://www.ntalk.de|de]]) * [[http://sicness.si.ohost.de/wiki|FC-Wiki]] a german wiki about 1. FC Köln * [[http://wiki.phoenixschule.de/|Phönix-Wiki]] a german Wiki about consciousness and excellence * [[http://www.electronica2000.org|WikiTronica2000]] * [[http://www.shannon-erne.de|Shannon Erne Info]] Deutsche Wiki über die irischen Bootsreviere Shannon, Shannon-Erne-Waterway und Erne * [[http://www.delequilibrium.890m.com|ArquivoWiki]] a Wiki for Coordenação de Arquivo/Min. da Saúde/Brasil. * [[http://www.familienaufstellungs-lexikon.org | German wiki about family constellations and psychology]] ===== Local Language Support ===== If you wish to support a language, please do the following: - **Create** the language file based on **en** file in the lang folder. (And optionally a lang.css if you need special style support.) - **Send an email** to [[tjgrant@tatewake.com|Terence]] (with the file, and please tell me the two-character code, "en", "de", etc.) - **Last**, add an entry below so we'll all know which languages still are needed; thanks! :-) After I get your email, I'll add the language to the next release, and link it below so those who need it before the next release can get it. * Current languages supported, author: * en - Etienne Gauthier * fr - Etienne Gauthier * de - Dirk Blasius, Volker Leonhardt * nl - [[alien@slackware.com|Eric Hameleers]] * lt - [[eg@zemaitija.net|Edmondas Girkantas]] * sv - Johan Linnér * hu - [[petiati@apu.hu | Attila Péter]] * pl - Marcin Hugo Kosiniski * it - Emiliano Volta * zh-cn - [[danny@pie.com.tw|郭長祐]] * zh-tw - [[danny@pie.com.tw|郭長祐]] ===== FAQ ===== These are the top questions that always seem to come up; I guarantee you that they're not caused by the template. ==== Wiki Editing tools menu has disappeared? ==== Your problems can be explained and fixed [[http://wiki.splitbrain.org/wiki:faq:toolbar|here]]. The template didn't cause this. ==== Navigation doesn't show up ==== Reread [[:projects:monobook_for_dokuwiki#install_and_configure|the installation instructions]]. >I had this problem because I had not installed the displaywikipage plugin. After installing it the trouble disappeared. It is not documented, is it? It is documented, follow the link above. --- //[[tjgrant@tatewake.com|Terence J. Grant]] 07/19/2007 23:04// ==== I have a Navigation permissions issue ==== This has to do with the [[:projects:display wiki page for dokuwiki]] plugin, so ask it on that discussion page. ==== I'm having trouble with ACL ==== This has nothing to do with the template, so don't ask it here. Ask any question you want about ACL [[http://wiki.splitbrain.org/wiki:acl|here]], [[http://wiki.splitbrain.org/wiki:discussion:acl|here]], [[http://wiki.splitbrain.org/wiki:discussion:acl2|here]], and [[http://wiki.splitbrain.org/wiki:mailinglist|the mailing list]]. If you paste in ACL to this discussion, it will get deleted. > Yes, but here is an ACL problem pertaining to the monobook install instructions. The instructions emphasize to include the colon before the template pages (e.g., :wiki:navigation) which is fine as long as your entire (*) namespace is readable by ALL (which mine isn't, so the navigation and other :wiki portions do not show up for those not logged in). A solution is to change the configuration to NOT include the root colon (e.g., wiki:navigation) and grant read access to ALL for the wiki namespace. Here's a couple of things to consider. - Not using the prefix ":" means that for any page, your navigation will look for "current_namespace:wiki:navigation" (which is a different page in different namespaces.) If you don't use anything beyond the root namespace, you're fine; but most people don't use DokuWiki this way. - Some ACL routines were (and might still be) broken in DokuWiki. Essentially this meant (or might still mean) that: - if you have your root namespace not readable by all, - and you set the page permissions for ":wiki:navigation" to be readable by all, - then regardless of this, ":wiki:navigation" will still inherit the permissions of the root namespace regardless. I've reported this bug [[:wiki:talk:projects:display_wiki_page_for_dokuwiki#acl_issues|here]], [[http://bugs.splitbrain.org/index.php?do=details&task_id=1084&pagenum=2|and here]]. As you can see from both links, they're not able to reproduce the bugs (but they're comparing this to the "current dev version" rather than the "stable" versions everyone else uses.) This means either one of two things: - This may mean the bug was fixed in one of the stable versions released in the last few months. * If so, try upgrading if you haven't already. - This may mean the bug isn't fixed, for some reason the problem is not understood by DW team. * If so, please continue the discussion [[http://www.freelists.org/archives/dokuwiki/02-2007/msg00134.html|here]], [[http://bugs.splitbrain.org/index.php?do=details&task_id=1084&pagenum=2|and here]]. And again, I'll state, if this problem still exists, it isn't a problem with monobook, it's a bug in DokuWiki's ACL. ACL problems have absolutely **nothing** to do with this project-- if it's a problem with ACL here, it's a problem with ACL everywhere-- and there's truly absolutely nothing I can do from here to fix them. --- //[[tjgrant@tatewake.com|Terence J. Grant]] 08/02/2007 03:02// > for anyone who does want a quick solution, and not to read links here and there about who is responsible for some bug: in inc/auth.php at line 341 (in function auth_aclcheck($id,$user,$groups)) just make sure $id does NOT begin with a ":". e.g. like this: ''if (substr($id, 0, 1) == ":") $id = substr($id, 1);'' have fun --- // [[alec.a@gmx.net|Alec Alanis]] 02/03/2008 22:54// ==== I installed the template and now... ==== * My plugins don't work! * My ACL broke! * Pages say they're locked! * Other non look and feel issue! If it's not related to look and feel, the template didn't do it. It's not even **remotely** possible. ==== How do I add a PDF Export link? ==== * How do I export PDFs from these pages? My suggestion is to use a PDF print driver, like one you might find in [[http://adobe.com|Adobe Acrobat]] (commercial version). Personally I use [[http://pdf995.com|PDF995's PDF printer]], and it's great. Otherwise, there are **many** [[http://wiki.splitbrain.org/wiki:plugins|plugins]] that attempt to solve this problem. I don't use them. * Ok, now how do I add a link to export as PDF? If you use a PDF print driver, just click "Printable Version" and you're set-- just print. Otherwise, it's up to how the PDF plugin you're using does it; editing the toolbox is covered on [[:projects:monobook for dokuwiki]] project page, so I'll refer you to that. ==== What is "create this page" and "[edit]" everywhere? ==== That's part of the [[:projects:display wiki page for dokuwiki]] plugin. It's required for **navigation**, **site notice**, and **copyright.** * I don't want it! Just uninstall the plugin then! * I can't set permissions for... See [[#I'm having trouble with ACL]]. ===== General Discussion ===== //Ask any other questions below.// ==== Table of content showing up in Navigation frame...? ==== Hi, I recently upgraded to the latest dokuwiki (2008-05-05) and sometimes when I open a page, the table of content of that page appears at the top in the navigation frame, as well as at the standard location. Simply reloading the page solves the issue and gives me a normal navigation frame. Any thought how this can be caused...? The former dokuwiki engine did not show this problem, so it must be related to that, I guess, but I cannot disentangle where dokuwiki stops and monobook starts... I have a picture showing the effect but I can't upload it. Cheers, Arno Schoenmakers (schoenmakers 'at' astron 'dot' nl). >Hi it is me again -- Len from PatentBlurb.com. I am having the same problem as Arno. > >When using Firefox, the table of contents form the main page shows up in the navigation window. If I refresh the page, the ToC goes away and the page correctly renders. I have deleted the DokuWiki cache pages in the data directory and this is not caused by browser cache. > >When using Internet Explorer, I get a different problem -- the background of my logo isn't transparent like it used to be. > >I posted screenshots of the issue [[http://www.patentblurb.com/doku.php/playgroundtest2|here]]. > >-- Len May 31, 2008 ====Formatting error? ==== >Hi. I noted a minor formatting error that seems to only appear in Firefox browsers. I reported the bug to splitbrain, but then realized maybe it is a monobook issue more than a Dokuwiki issue. The bug report is [[http://bugs.splitbrain.org/index.php?do=details&task_id=1211 | here]]. I'll repeat what I wrote for convenice sake: > >"This is a rendering error that appears to be limited to Firefox. Opera and IE seem to render correctly. The problem is that a long unordered list beginning across from an "expanded" table of contents will not wrap around the table of contents." See my sample page here: http://www.patentblurb.com/doku.php/playgroundtest > >(By the way -- love the template, good works and tons of thanks!) --Len Hi Len, I see what you're talking about, though truthfully I don't know how to fix this. I'd say it's definitely a CSS related issue though. Do you get this same behavior with the "default" template, by the way? My guess would be, any fix for this will happen in doku.css in the monobook distribution. Look for "toc", as all style matters related to the dokuwiki table of contents uses this. --- //[[tjgrant@tatewake.com|Terence J. Grant]] 08/02/2007 06:55// ==== Search Toggle Linked to Sitenotice ==== >Perhaps this has already been fixed, but in the version I have (quite recent) the search box toggle option is actually set to toggle with the sitenotice toggle. In main.php, line 125 down: > %%** tag. --- //[[tjgrant@tatewake.com|Terence J. Grant]] 08/06/2007 08:51// ==== Problem with searchGoButton ==== Using the current versions of Dokuwiki and Monobook, I have a Problem with the "searchGoButton": If I search for a term, it shows a mouseover-effect with Firefox and shows nothing with IE -- clicking this button produces a failure in IE (maybe a javascript-failure?) and nothing happens if I click the searchGoButton in Firefox. As I can see this butten works at tatewake.com. Any ideas? --- //Wolfgang - 2007/09/06// ==== How to add an another box under "navigation" and "toolbox"? ==== --- //Boro - 2008/01/21// ===== User Contributions ===== //Post your patches and code contributions here if you wish.// ==== "In other languages" ==== This file has been included with the main monobook download for some time, but I'm dropping it and will just link it here since it has remained unfinished. Also, I spent a lot of time getting the names of the languages right and did not want to delete the file. So here it is as a prototype for someone else to possibly finish: * {{:wiki:talk:projects:other.zip|In other languages 08-19-2006}} It does **not** work as a simple drop in, you will have to figure it out on your own. Also if you do use it, it will make your wiki much slower(which is why it was never enabled in any release.) I believe there is a better (and different way) to do "in other languages" support; this method isn't very good though. --- //[[tjgrant@tatewake.com|Terence J. Grant]] 08/19/2006 17:53// ==== Logbook ==== I needed a logbook in my wiki (namespace :logbook) but I don't have the time to create a new subpage with the current date from my logbook-namespace every day (e.g. :logbook:2006-11-13 for 11/13/2006). This code for "pref.php" adds a link in the navigation toolbar which leads to the logbook page of the current day in the logbook-namespace: $monobook['navigation']['log']['wiki'] = ":logbook:".date("Y-m-d"); $monobook['navigation']['log']['text'] = "LogMe"; At the moment, the code seems to work fine, leading to an link to logbook:2006-11-13 in the navigation bar. Since the links will become orphaned the next day, I've included the [[http://wiki.splitbrain.org/plugin:orphanswanted|orphanswanted-plugin]] with the following code on the logbook-page itself: ~~ORPHANSWANTED:orphans!ALL_MY_NAMESPACES_EXCEPT_LOGBOOK~~ which reminds me which dates I've got to link there once I've got a few minutes time. ==== Navigation for each namespace ==== >We're using one wiki for all our people, and they have access to the namespaces they need for their work. So they wished to get some different navigation bars for each namespace (because allmost nobody has access to everything right now). > >So I got some inspiration by the comment above and checked the sidebar template by Christopher Smith and implemented his recursive sidebar function to display_wiki. > >For testing, add the changed code.php in your plugins/displaywikipage folder and edit line 261 in context.php of mediawiki template to >if (function_exists('dwp_display_wiki_page')) dwp_display_wiki_page($action['wiki_page'], true); >See [[wiki:talk:projects:display_wiki_page_for_dokuwiki]] > >** ATTENTION - THIS IS AT LEAST JUST A BETA STAGE ** >--- //Martin Schleyer 11/29/2006 13:22// I'll look into this when I get some time, thanks. --- //[[tjgrant@tatewake.com|Terence J. Grant]] 12/04/2006 00:21// ==== Different navigation for each user/group ==== **This is my very simple solution** I'm adding following code to the begining of /lib/tpl/monobook/main.php: (after @include(dirname(__FILE__).'/context.php'); on the line 7) if ($INFO['client']=="username"){ //or for group info: $INFO['userinfo']['grps'] $conf['tpl']['monobook']['mb_navigation_location'] = 'namespace:page'; //for ex.: 'wiki:navigation' } --- //[[osuhel@inmail.sk|Fero Gajdosik]] 12/02/2007// ==== If logo-image is not wanted... ==== and its usual position is to be used for navigation links (adaptation of css), I believe that this small change to main.php is appropriate (search for p-logo, to find the position of this code in main.php): Borut, 2007-03-22 ====To move the user and user talk pages out of the wiki namespace...==== I didn't want the wiki namespace on my wiki (though I know this will probably have some disastrous consequences in the future.. ;-) ) To do this, I opened ~lib/tpl/monobook/context.php and search for wiki:user - and remove "wiki:" from each instance. If you do this, be very careful to maintain the syntax - e.g. in some places it's :wiki:user and you need to change that to :user. Please let me know if I missed something! [[http://www.saidia.org|tobias 2007-03-27]] ==== Footnotes not visible due to css settings ==== I think this problem only occured in the new version of the monobook template (05.23.2007). In the main.css the #content has a z-index:2, whereas the div.insitu.footnotes in doku.css don`t have any z-index, so the footnotes are rendered behind the content, and thus invisible. This behavior can for example be seen here: [[http://tatewake.com/wiki/wiki:syntax#footnotes|footnotes]] Setting the z-index of div.insitu.footnotes in doku.css to 3 should take care of this problem and display the footnotes properly. Christian //06-01-2007// ==== Recent changes in toolbox ==== Just add the code below to context.php to get the link back. /* Default Toolbox Portlet */ $monobook['defaulttoolbox']['recentchanges']['href'] = DOKU_BASE."doku.php?do=recent"; $monobook['defaulttoolbox']['recentchanges']['text'] = "Recent Changes"; $monobook['defaulttoolbox']['recentchanges']['rel'] = "nofollow"; On another note I am still wondering why there is wiki:toolbox namespace setting if its not used. $conf['mb_toolbox_location'] = ":wiki:toolbox"; //Scott Grayban 2007-06-20// ==== HTTPS, IE "unsecure items" & CSS bullet images ==== When upgrading to DokuWiki 2007-06-26b with monobook 2007-07-20, I noticed IE (ver 7) began complaining about "This page contains both secure and nonsecure items". Apparently, an image in the template was being referenced as "http" whereas my site only allows "https". I finally tracked this down to the Monobook.css file (lib/tpl/monobook/wikipedia/en/Monobook.css) which pulls image files from a public site for display. IMO, this should be fixed in a later Monobook update as this is less efficient than delivering the files from your own server and a potential security risk. My temp solution is as follows: * Download the files in question * Store them in lib/tpl/Monobook/common/images * Then modify the Monobook.css file as follows .portlet li { /* The following image causes IE to produce nonsecure popup warning when using https:// list-style-image: url("http://upload.wikimedia.org/wikipedia/en/1/18/Monobook-bullet.png"); */ list-style-image: url("../../common/images/Monobook-bullet.png"); } li.FA { /* The following image causes IE to produce nonsecure popup warning when using https:// list-style-image: url("http://upload.wikimedia.org/wikipedia/en/d/d4/Monobook-bullet-star.png"); */ list-style-image: url("../../common/images/Monobook-bullet-star.png"); } This gets rid of the IE complaints (not an issue under FireFox 1.5 at least). //Bobby Metz 07/25/2007// ==== Heading Indention like in Default Template ==== I just wondered how to get the same heading-indention (and the "contents" inside a heading) like it is done in the default [[doku>wiki:dokuwiki|DokuWiki]] template. After some investigating of both the themes using [[http://www.getfirefox.com|Mozilla FireFox]] & [[http://www.getfirebug.com|FireBug]] I found out that the default [[doku>wiki:dokuwiki|DokuWiki]] template has some extended CSS-styles to get the indention. Here are some of my findings: * To get the headings indention change the following code in ../lib/tpl/monobook/monobook/main.css from: h1, h2, h3, h4, h5, h6 { color: black; background: none; font-weight: normal; margin: 0; padding-top: .5em; padding-bottom: .17em; border-bottom: 1px solid #aaa; } h1 { font-size: 188%; } h2 { font-size: 150%; } h3, h4, h5, h6 { border-bottom: none; font-weight: bold; } h3 { font-size: 132%; } h4 { font-size: 116%; } h5 { font-size: 100%; } h6 { font-size: 80%; } to h1, h2, h3, h4, h5, h6 { color: black; background: none; font-weight: normal; margin: 0; padding-top: .5em; padding-bottom: .17em; border-bottom: 1px solid #aaa; } h1 { font-size: 188%; } h2 { font-size: 150%; margin-left: 20px; } h3, h4, h5, h6 { border-bottom: none; font-weight: bold; } h3 { font-size: 132%; margin-left: 40px; } h4 { font-size: 116%; margin-left: 60px; } h5 { font-size: 100%; margin-left: 80px; } h6 { font-size: 80%; } \\ * To get the contents "inside" the headings indented add the following code in ../lib/tpl/monobook/monobook/main.css (behind the section modified in the last item): /* indent different sections */ div.dokuwiki div.level1 {margin-left: 3px;} div.dokuwiki div.level2 {margin-left: 23px;} div.dokuwiki div.level3 {margin-left: 43px;} div.dokuwiki div.level4 {margin-left: 63px;} div.dokuwiki div.level5 {margin-left: 83px;} I also noticed that the Monobook CSS-styles are kind of expecting support for H6-headings although [[doku>wiki:dokuwiki|DokuWiki]] //only// supports H1-H5. So the H6-support can be dropped imho. Maybe it's an idea to create a configurable option for the Monobook-template which enables/disables this //hack//. This way no hacks are needed although users can use the "heading-indention"... \\ \\ //[[http://www.the-evil.pointclark.net|Mischa The Evil]], 10-08-2007// ==== Link Fix ==== Use better wl() and ml() to create the links, to support the [userewrite] option. Example: wl($ID, array('rev'=>$_REQUEST['rev'], 'mbdo'=>'cite'])) Spamers are searching sites for spamable content, "doku.php" shows such a spamable environment. So its better to hide "doku.php" completely. ==== Admin menu item for manager group members ==== DokuWiki let some people in //manager group// (see ''$conf['manager']'' ) have access to //admin// menu for some restricted actions. It would be nice for them to have as the superuser a 'Admin' menu item in the personnal-bar. Just a little change is needed in ''context.php'' Change 200: if ($INFO['perm'] == AUTH_ADMIN) 201: { 202: $monobook['personal']['admin']['href']=DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=admin"; by 200: if ($INFO['ismanager']) 201: { 202: $monobook['personal']['admin']['href']=DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=admin"; --- //[[marcdexet@gmail.com|Marc DeXeT]] 2007/08/23 23:08// ==== Special-Page Look-and-Feel-Modifications ==== I have done some changes in **/lib/tpl/monobook/context.php** to have more "specialpages" and to have them displayed in a Mediawiki-Style: To have more specialpages I added after **%%if (beginsWith($ID, "wiki:"))%%** if (beginsWith($ID, "Hilfe:")) /**** my Help-Files - may be "help" for others ****/ { $pagetype = "special"; /* Special page */ } if (beginsWith($ID, "Spezialseiten:")) /**** my Special pages ****/ { $pagetype = "special"; /* Special page */ } and after **%%if ($ACT == "search")%%** else if ($ACT == "index") { $pagetype = "special"; /* Special page */ } and finally after **%%if ($_REQUEST['mbdo'] == 'cite')%%** else if ($_REQUEST['do'] == 'recent') { $pagetype = "special"; /* Special page */ } else if ($_REQUEST['do'] == 'backlink') { $pagetype = "special"; /* Special page */ } \\ I didn't want **discussion**, **old revisions** and **edit/show pagesource** to be visible for "ALL" in specialpages - so I modified the code to make it visible to admin only. I modified the part after **%%else if ($pagetype == "special")%%**: /************** code not changed *********************/ else if ($pagetype == "special") { $monobook['nsclass'] = 'mediawiki ns-1 ltr'; /* Special page */ $monobook['content_actions']['nstab-main']['class'] = "selected"; if ($ACT != "search") { $monobook['content_actions']['nstab-main']['href'] = DOKU_BASE.DOKU_SCRIPT."?id=".$ID; } else { $monobook['content_actions']['nstab-main']['href'] = "#"; } $monobook['content_actions']['nstab-main']['text'] = $lang['monobook_specialpage']; $monobook['content_actions']['nstab-main']['accesskey'] = 'v'; /*************************************************/ /************ now the changed code ***************/ /************** only visible to admin *********************/ if($conf['useacl']) { if ($_SERVER['REMOTE_USER']) { if ($INFO['perm'] == AUTH_ADMIN) { /* Now the edit button... ************ I don't need it for "ALL" on Special page */ if ($ACT == "edit") $monobook['content_actions']['edit']['class'] = "selected"; $monobook['content_actions']['edit']['href'] = DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=edit&rev=".$_REQUEST['rev']; $monobook['content_actions']['edit']['accesskey']='e'; if($INFO['writable']) { if($INFO['exists']) { $monobook['content_actions']['edit']['text'] = $lang['btn_edit']; $monobook['content_actions']['edit']['accesskey']='e'; } else { $monobook['content_actions']['edit']['text'] = $lang['btn_create']; $monobook['content_actions']['edit']['accesskey']='e'; } } else { $monobook['content_actions']['edit']['text'] = $lang['btn_source']; $monobook['content_actions']['edit']['accesskey']='e'; } /************** even Revisions visible only to admin on Special page *********************/ if ($ACT == "revisions") $monobook['content_actions']['history']['class'] = "selected"; $monobook['content_actions']['history']['href'] = DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=revisions"; $monobook['content_actions']['history']['text'] = $lang['btn_revs']; $monobook['content_actions']['history']['accesskey'] = 'o'; } } } } /************** Revisions visible for "ALL" on normal page (article) *********************/ if ($pagetype == "article") { if ($ACT == "revisions") $monobook['content_actions']['history']['class'] = "selected"; $monobook['content_actions']['history']['href'] = DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=revisions"; $monobook['content_actions']['history']['text'] = $lang['btn_revs']; $monobook['content_actions']['history']['accesskey'] = 'o'; } /************** subscription on changes only on normal page (article) *********************/ if ($pagetype == "article") { if($conf['useacl']) { if ($_SERVER['REMOTE_USER']) { if ($conf['subscribers']) { if (!$INFO['subscribed']) { $monobook['content_actions']['watch']['href'] = DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=subscribe"; //Etienne //$monobook['content_actions']['watch']['text'] = "Watch"; $monobook['content_actions']['watch']['text'] = $lang['btn_subscribe']; } else { $monobook['content_actions']['watch']['href'] = DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=unsubscribe"; //Etienne //$monobook['content_actions']['watch']['text'] = "Unwatch"; $monobook['content_actions']['watch']['text'] = $lang['btn_unsubscribe']; } } } } } /************** end of changes *********************/ /* Determine what will be listed on personal tools */ I did it with try and error - so this code may not be optimal (but it works - compare for example [[http://www.heine-wiki.de/doku.php?do=recent|Recent Changes on Heine-Wiki]] and [[http://tatewake.com/wiki/wiki:navigation|"Navigation" from this page]] as "special pages") --- //Wolfgang - 2007/09/14// ==== Link Fix ==== Use better wl() and ml() to create the links, to support the [userewrite] option. Example: wl($ID, array('rev'=>$_REQUEST['rev'], 'mbdo'=>'cite'])) Spamers are searching sites for spamable content, "doku.php" shows such a spamable environment. So its better to hide "doku.php" completely. 'edit', 'rev'=>$_REQUEST['rev'])); //DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=edit&rev=".$_REQUEST['rev']; $monobook['content_actions']['edit']['accesskey']='e'; if($INFO['writable']) { if($INFO['draft']) { $monobook['content_actions']['edit']['href'] = wl($ID, array('do'=>'draft', 'rev'=>$_REQUEST['rev'])); //DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=draft&rev=".$_REQUEST['rev']; $monobook['content_actions']['edit']['text'] = $lang['btn_draft']; } else { if($INFO['exists']) { $monobook['content_actions']['edit']['text'] = $lang['btn_edit']; } else { $monobook['content_actions']['edit']['text'] = $lang['btn_create']; } } } else { $monobook['content_actions']['edit']['text'] = $lang['btn_source']; $monobook['content_actions']['edit']['accesskey']='e'; } } else if ($pagetype == "special") { $monobook['nsclass'] = 'mediawiki ns-1 ltr'; /* Special page */ $monobook['content_actions']['nstab-main']['class'] = "selected"; if ($ACT != "search") { $monobook['content_actions']['nstab-main']['href'] = wl($ID); //DOKU_BASE.DOKU_SCRIPT."?id=".$ID; } else { $monobook['content_actions']['nstab-main']['href'] = "#"; } $monobook['content_actions']['nstab-main']['text'] = $lang['monobook_specialpage']; $monobook['content_actions']['nstab-main']['accesskey'] = 'v'; /* Now the edit button... */ if ($ACT == "edit") $monobook['content_actions']['edit']['class'] = "selected"; $monobook['content_actions']['edit']['href'] = wl($ID, array('do'=>'edit', 'rev'=>$_REQUEST['rev'])); //DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=edit&rev=".$_REQUEST['rev']; $monobook['content_actions']['edit']['accesskey']='e'; if($INFO['writable']) { if($INFO['exists']) { $monobook['content_actions']['edit']['text'] = $lang['btn_edit']; $monobook['content_actions']['edit']['accesskey']='e'; } else { $monobook['content_actions']['edit']['text'] = $lang['btn_create']; $monobook['content_actions']['edit']['accesskey']='e'; } } else { $monobook['content_actions']['edit']['text'] = $lang['btn_source']; $monobook['content_actions']['edit']['accesskey']='e'; } } if ($ACT == "revisions") $monobook['content_actions']['history']['class'] = "selected"; $monobook['content_actions']['history']['href'] = wl($ID, array('do'=>'revisions')); //DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=revisions"; $monobook['content_actions']['history']['text'] = $lang['btn_revs']; $monobook['content_actions']['history']['accesskey'] = 'o'; if($conf['useacl']) { if ($_SERVER['REMOTE_USER']) { if ($conf['subscribers']) { if (!$INFO['subscribed']) { $monobook['content_actions']['watch']['href'] = wl($ID, array('do'=>'subscribe')); //DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=subscribe"; //Etienne //$monobook['content_actions']['watch']['text'] = "Watch"; $monobook['content_actions']['watch']['text'] = $lang['btn_subscribe']; } else { $monobook['content_actions']['watch']['href'] = wl($ID, array('do'=>'unsubscribe')); //DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=unsubscribe"; //Etienne //$monobook['content_actions']['watch']['text'] = "Unwatch"; $monobook['content_actions']['watch']['text'] = $lang['btn_unsubscribe']; } } } } /* Determine what will be listed on personal tools */ if($conf['useacl']) { if ($_SERVER['REMOTE_USER']) { $monobook['personal']['userpage']['wiki'] = ":wiki:user:".$_SERVER['REMOTE_USER']; $monobook['personal']['userpage']['text'] = $_SERVER['REMOTE_USER']; if ($INFO['perm'] == AUTH_ADMIN) { $monobook['personal']['admin']['href'] = wl($ID, array('do'=>'admin')); //DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=admin"; //Etienne //$monobook['personal']['admin']['text'] = "Admin"; $monobook['personal']['admin']['text'] = $lang['btn_admin']; } if (tpl_getConf('mb_use_discussion')) { //Etienne : My Talk, not found in the lang.php files. $monobook['personal']['mytalk']['wiki'] = $monobook['discussion-location'].":wiki:user:".$_SERVER['REMOTE_USER']; $monobook['personal']['mytalk']['text'] = $lang['monobook_mytalk']; } $monobook['personal']['preferences']['href'] = wl($ID, array('do'=>'profile')); //DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=profile"; //Etienne //$monobook['personal']['preferences']['text'] = "My preferences"; $monobook['personal']['preferences']['text'] = $lang['btn_profile']; $monobook['personal']['logout']['href'] = wl($ID, array('do'=>'logout')); //DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=logout"; //Etienne //$monobook['personal']['logout']['text'] = "Log out"; $monobook['personal']['logout']['text'] = $lang['btn_logout']; } else { $monobook['personal']['login']['href'] = wl($ID, array('do'=>'login')); //DOKU_BASE.DOKU_SCRIPT."?id=".$ID."&do=login"; //Etienne : text is slightly different from the monobook original one. //$monobook['personal']['login']['text'] = "Sign in / create account"; $monobook['personal']['login']['text'] = $lang['btn_login']; } } /* Portlet writing function by Terence J. Grant tjgrant [at] tatewake [dot] com 07/28/2006 - This function needs cleaning up... */ function writeMBPortlet($arr, $name, $subname, $prefix, $istabs = "") { if ($arr) #write it only if we even have a section for this { echo '
'; echo '
'.$subname.'
'; if (!$istabs) echo '
'; $ULFlag = 1; foreach($arr as $key => $action) { #TJG 07/28/2006 Initial rel nofollow support $rel = ""; if ($action['rel']) { $rel = ' rel="nofollow"'; } //Etienne (start) if ($action['wiki_page']) #display a wiki page { if ($ULFlag == 0) { echo ' ' . "\n"; $ULFlag = 1; } if (function_exists('dwp_display_wiki_page')) dwp_display_wiki_page($action['wiki_page']); } else //Etienne (end) { if ($ULFlag == 1) { echo '
    ' . "\n"; $ULFlag = 0; } echo '
  • '; if($action['wiki']) #a wiki link { if ($action['text']) { tpl_pagelink($action['wiki'], $action['text']); } else { tpl_pagelink($action['wiki']); } } else if ($action['href']) #uses a href { if ($action['accesskey']) { echo ''; } else { echo ''; } echo $action['text']; echo ''; }//Etienne (start) else if ($action['externurl']) #uses an external URL { echo '' . $action['text'] . ''; } else if ($action['html']) #directly copy the given html { echo $action['html']; } //Etienne (end) else #no link { echo "".$action['text'].''; } echo '
  • '."\n"; } } if ($ULFlag == 0) { echo '
' . "\n"; $ULFlag = 1; } if (!$istabs) echo '
'; echo '
'; } } /* Change Edit to [Edit] */ $lang['btn_secedit'] = '['.$lang['btn_secedit'].']'; /* Default Toolbox Portlet */ $monobook['defaulttoolbox']['whatlinkshere']['href'] = wl($ID, array('do'=>'backlink')); //DOKU_BASE."doku.php?id=".$ID."&do=backlink"; $monobook['defaulttoolbox']['whatlinkshere']['text'] = $lang['monobook_whatlinkshere']; $monobook['defaulttoolbox']['whatlinkshere']['rel'] = "nofollow"; $monobook['defaulttoolbox']['upload']['href'] = DOKU_BASE."lib/exe/mediamanager.php?ns=".getNS($ID); $monobook['defaulttoolbox']['upload']['text'] = $lang['monobook_upload']; $monobook['defaulttoolbox']['upload']['rel'] = "nofollow"; $monobook['defaulttoolbox']['special']['href'] = wl($ID, array('idx'=>'wiki')); //DOKU_BASE."doku.php?idx=wiki"; $monobook['defaulttoolbox']['special']['text'] = $lang['monobook_specialpage']; $monobook['defaulttoolbox']['special']['rel'] = "nofollow"; if (isset($_REQUEST['rev'])) $monobook['defaulttoolbox']['print']['href'] = wl($ID, array('rev'=>$_REQUEST['rev'], 'mbdo'=>'print')); //DOKU_BASE."doku.php?id=".$ID."&rev=".$_REQUEST['rev']."&mbdo=print"; else $monobook['defaulttoolbox']['print']['href'] = wl($ID, array('rev'=>$INFO['lastmod'], 'mbdo'=>'print')); //DOKU_BASE."doku.php?id=".$ID."&rev=".$INFO['lastmod']."&mbdo=print"; $monobook['defaulttoolbox']['print']['text'] = $lang['monobook_print']; $monobook['defaulttoolbox']['print']['rel'] = "nofollow"; if (isset($_REQUEST['rev'])) $monobook['defaulttoolbox']['permanent']['href'] = wl($ID, array('rev'=>$_REQUEST['rev'])); //DOKU_BASE."doku.php?id=".$ID."&rev=".$_REQUEST['rev']; else $monobook['defaulttoolbox']['permanent']['href'] = wl($ID, array('rev'=>$INFO['lastmod'])); //DOKU_BASE."doku.php?id=".$ID."&rev=".$INFO['lastmod']; $monobook['defaulttoolbox']['permanent']['text'] = $lang['monobook_permanent'] ; //"Permanent Link"; $monobook['defaulttoolbox']['permanent']['rel'] = "nofollow"; if (isset($_REQUEST['rev'])) $monobook['defaulttoolbox']['cite']['href'] = wl($ID, array('rev'=>$_REQUEST['rev'], 'mbdo'=>'cite')); //DOKU_BASE."doku.php?id=".$ID."&rev=".$_REQUEST['rev']."&mbdo=cite"; else $monobook['defaulttoolbox']['cite']['href'] = wl($ID, array('rev'=>$INFO['lastmod'], 'mbdo'=>'cite')); //DOKU_BASE."doku.php?id=".$ID."&rev=".$INFO['lastmod']."&mbdo=cite"; $monobook['defaulttoolbox']['cite']['text'] = $lang['monobook_cite']; $monobook['defaulttoolbox']['cite']['rel'] = "nofollow"; ?>
==== Trouble with print.css ==== I'm in my 6th day of messing around with DokuWiki (dokuwiki-2007-06-26b.tgz), so color-me-noob. Under your Monobook template (03 Oct 2007) I am observing odd results in common/print.css. You don't supply a common/print.css but one is getting added to the page headers. The request fails here with 404 (and sorry I don't have a live link to the desktop web server yet). On your wiki I get your wiki's "This topic does not exist yet" page -- which strikes me as a security issue of sorts. While this seems simple enough, I have not been able to run this one to ground, yet. The best I have been able to do is drop a blank file in for common/print.css to plug the whole. --charlesg, Saturday, February 9, 2008 4:19:47 PM > The problem appears to be that print.css comes with Monobook in the dokuwiki/ directory, not the common/ directory where the page is looking for it. Another problem this causes is that the darn TOC and [edit] buttons appear on the print preview, so it is not actually a clean printed copy. The dokuwiki/print.css has all of the correct fixes for this (hiding the TOC and [edit] links), so the solution is simple: copy dokuwiki/print.css to the common/ directory! FIXME Is this a bug that could be fixed in a subsequent version? -- drSampson, June 2, 2008 ==== Page-action bar in Firefox, requiring full name to register, and Search page CSS ==== - Where can I find CSS declarations for the Search page, specifically background and text colors? - Is there any way to remove the registration requirement for a new user to provide their full name? Can the registration page be modified in any way? - When I hover over the page-action bar in Firefox, it isn't clickable unless I approach it from underneath. I have changed the top margins for both the page-action bar and main content area, so perhaps that is related. Any help would be much appreciated! --Trivix, Mar 18, 2008 ==== Some problems with special characters (acute accent) in Spanish ==== Hello, I'm just trying to make my own wiki page here: http://web.usal.es/~r/wikilab And I have some problems with monobook template with Spanish special characters as "á, é, í, ó, ú" and "¿"; it does always appears as � or (Ex: "page" is "página" and appears as "p�gina"); in every page and also in the monobook template parameters. But the rest of the text not depending on monobook template is right. The languaje package is right (/es/lang.php) as far as I know (my PHP and programming knowledge is quite small). How could I solve? Thanks. natrix (natrixm at hotm....com), Jun 4, 2008 Actualization: If I select a different character encoding in my web browser, such as occidental (ISO-8859-1), then I can see properly the text belonging to monobook, but the rest of the DokuWiki gets wrong. So I suppose the problem is in the character encoding format anywhere; but I don't know how to check nor to solve it. - natrix (natrixm at hotm....com), Jun 4, 2008 **SOLUCIÓN:** Yo he tenido el mismo problema varias veces que he instalado un sitio con dokuwiki y por fin he solucionado el problema. En los ficheros que tienen los códigos correspondientes a las traducciones (setings.php y lang.php) situadas en: "/dokuwiki/lib/tpl/monopbook/lang/es" he cambiado los textos poniéndoles el código á para la á, é para la é, etc y me funciona. No se si esta solución es muy ortodoxa pero me sirve. NO FUNCIONA - Doesn't work for me. Escribo en inglés por si algún otro puede ayudarme, muchas gracias, pero ya he probado eso y no me funciona. I have tryed what you said of changing á by á but it didn't worked for me. If I use the code Artículo apears Art�culo in the webpage and Art�culo in the source code; if I use the code Artáculo apears Artáculo in the webpage and Artáculo in the source code of the webpage. I'm getting crazy. I don't understand and my knowlegde is not enought to solve it by myself. And what more puzzle to me is that in fr (french) is right, but not in es (spanish)... Thanks you. **SOLUTION:** I found the solution thank to the above help, just changing in the files he said the chracteres in that way: á á é é í í (cannot write here the correct code for í. Check it (copy&paste) in the source code. It is that way: í- but is not this hyphen or dash character, is a different one; I don't know how to show it here. You can copy that í for í but you will see í-) ó ó ú ú ¿ ¿ ñ ñ So the spanish languaje should be changed to something like that: lang.php: and settings.php (in the original raiz is raíz): */ $lang['mb_use_discussion'] = "¿Utilizar las pestañas de discusión?"; $lang['mb_discussion_location'] = "Si es que sí, espacio de nombres raíz para discusiones:"; $lang['mb_use_sitenotice'] = "¿Utilizar notas del sitio?"; $lang['mb_sitenotice_location'] = "Si es que sí, localización de las notas del sitio:"; $lang['mb_use_navigation'] = "¿Utilizar navegación?"; $lang['mb_navigation_location'] = "Si es que sí, localización de la navegación:"; $lang['mb_use_copyright'] = "¿Utilizar copyright?"; $lang['mb_copyright_location'] = "Si es que sí, localización del copyright:"; $lang['mb_use_search'] = "¿Utilizar búsqueda?"; $lang['mb_use_toolbox'] = "¿Utilizar barra de herramientas?"; $lang['mb_use_defaulttoolbox'] = "Si es que sí, ¿utilizar barra de herramientas?"; $lang['mb_toolbox_location'] = "Si es que no, localización de la barra de herramientas:"; $lang['mb_bc_loc'] = "Localización de las migas de pan (si está activado):"; $lang['mb_hbc_loc'] = "Localización de 'Usted está aquí' (si está activado):"; $lang['mb_author'] = "Nombre del autor en \"Citar este Artículo\":"; ==== Problems with footer and IE6 ==== i`m using this fabulous template for my wiki http://www.familienaufstellungs-lexikon.org and i`ve customized it a little for my work. now i have a problem with the footer. when i use FF it`s all okay, but when i look at the side with IE6, i don?t get the footer placed at the end of the side, including the two ad-sections. could you give me a hint? kindly regards, volker ==== Idea for IEfixes ==== Try this : (IExxFixes.css) .portlet ul,input.searchButton { font-size:90.25%; } myst6re, [[http://www.wikisquare.com]]