Try to learn something about everything, and everything about somethingThomas Huxley “Darwin's bulldog” (1824-1895)

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:computers:dokuwiki_tweaks [19/04/26 15:52 BST] – [Hide Revisions and Page Source for not-logged in Users] johnpublic:computers:dokuwiki_tweaks [19/04/26 16:02 BST] (current) – [Hide Revisions and Page Source for not-logged in Users] john
Line 3: Line 3:
 ====== DokuWiki Tweaks ====== ====== DokuWiki Tweaks ======
  
-===== Hide Revisions and Page Source for not-logged in Users =====+===== Hide Revisions and Page Source for not-ADMIN in Users =====
  
 Edit ''../lib/tpl/monobook/conf/tabs.php'' to add the check of ''AUTH_ADMIN'' for the tabs for Page Source and Revisions Edit ''../lib/tpl/monobook/conf/tabs.php'' to add the check of ''AUTH_ADMIN'' for the tabs for Page Source and Revisions
  
 <code php> <code php>
- //edit/create/show source tab + 
-    //ATTENTION: "ca-edit" is used as css id selector! +
-    $_monobook_tabs["ca-edit"]["href"     = wl(cleanID(getId()), array("do" => "edit", "rev" => (int)$rev), false, "&"); +
-    $_monobook_tabs["ca-edit"]["accesskey"] = "E"; +
-    if ($ACT === "edit"){ //$ACT comes from DokuWiki core +
-        $_monobook_tabs["ca-edit"]["class"] = "selected"; +
-    }        +
-    if (!empty($INFO["writable"])){ //$INFO comes from DokuWiki core +
-        if (!empty($INFO["draft"])){ +
-            $_monobook_tabs["ca-edit"]["href"] = wl(cleanID(getId()), array("do" => "draft", "rev" => (int)$rev), false, "&"); +
-            $_monobook_tabs["ca-edit"]["text"] = $lang["btn_draft"]; //language comes from DokuWiki core +
-        }else{+
             if(!empty($INFO["exists"])){             if(!empty($INFO["exists"])){
                 $_monobook_tabs["ca-edit"]["text"] = $lang["btn_edit"]; //language comes from DokuWiki core                 $_monobook_tabs["ca-edit"]["text"] = $lang["btn_edit"]; //language comes from DokuWiki core

Navigation