Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:computers:dokuwiki_tweaks [17/02/26 16:25 GMT] – [Allow any file-type upload] john | public:computers:dokuwiki_tweaks [19/04/26 16:02 BST] (current) – [Hide Revisions and Page Source for not-logged in Users] john | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== 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..." | ||
| + | |||
| + | The default is for a "read more..." | ||
| + | |||
| + | I found the css setting that controls the position of "read more..." | ||
| + | |||
| + | <code css> | ||
| + | div.dokuwiki p.include_readmore { | ||
| + | text-align: right; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | changing it to | ||
| + | |||
| + | <code css> | ||
| + | div.dokuwiki p.include_readmore { | ||
| + | text-align: left; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | solved the problem and "read more..." | ||
| + | |||
| + | To prevent this being overwritten on updates I found it works to put the same stanza in '' | ||
| + | |||
| + | |||
| ===== Vector / Monobook tweaks ===== | ===== Vector / Monobook tweaks ===== | ||
| Line 374: | Line 432: | ||
| Media manage red warnings when uploading jpg image files | Media manage red warnings when uploading jpg image files | ||
| - | < | + | < |
| Error: Call to undefined function xml_parser_create() | Error: Call to undefined function xml_parser_create() | ||
| </ | </ | ||