Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:computers:dokuwiki_tweaks [18/04/26 19:28 BST] – [DokuWiki Tweaks] john | public: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-ADMIN in Users ===== | ||
| + | |||
| + | Edit '' | ||
| + | |||
| + | <code php> | ||
| + | |||
| + | if(!empty($INFO[" | ||
| + | $_monobook_tabs[" | ||
| + | }else{ | ||
| + | $_monobook_tabs[" | ||
| + | } | ||
| + | } | ||
| + | }elseif (actionOK(" | ||
| + | $_monobook_tabs[" | ||
| + | $_monobook_tabs[" | ||
| + | } | ||
| + | |||
| + | |||
| + | //old versions/ | ||
| + | if (!empty($INFO[" | ||
| + | actionOK(" | ||
| + | && (auth_quickaclcheck($ID) == AUTH_ADMIN)) // check AUTH_ADMIN is logged in to see old revisions | ||
| + | { //check if action is disabled | ||
| + | // | ||
| + | $_monobook_tabs[" | ||
| + | $_monobook_tabs[" | ||
| + | $_monobook_tabs[" | ||
| + | if ($ACT === " | ||
| + | $_monobook_tabs[" | ||
| + | } | ||
| + | |||
| + | </ | ||
| ===== Include / Blog "Read More..." | ===== Include / Blog "Read More..." | ||