Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:computers:dokuwiki_tweaks [02/02/26 18:19 GMT] – 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 120: | Line 178: | ||
| </ | </ | ||
| + | ==== Symbol Chooser font size ==== | ||
| + | |||
| + | The drop-down picker for choosing a symbol to insert in the text being edited is very small in Monobook as standard. | ||
| + | |||
| + | It's controlled by the '' | ||
| + | |||
| + | It's adjusted thus (to 1.2em) and some extra margin added around the symbols: | ||
| + | |||
| + | button.pickerbutton { | ||
| + | padding: 0px; | ||
| + | margin: 2px 2px 2px 2px; | ||
| + | border: 0; | ||
| + | background-color: | ||
| + | font-size: 1.2em; | ||
| + | cursor: pointer; | ||
| + | } | ||
| + | |||
| + | |||
| + | Put this in '' | ||
| + | |||
| + | |||
| ==== Mobile Scaling ==== | ==== Mobile Scaling ==== | ||
| Line 204: | Line 283: | ||
| } | } | ||
| + | button.pickerbutton { | ||
| + | padding: 0px; | ||
| + | margin: 2px 2px 2px 2px; | ||
| + | border: 0; | ||
| + | background-color: | ||
| + | font-size: 1.2em; | ||
| + | cursor: pointer; | ||
| + | } | ||
| .pBody { | .pBody { | ||
| font-size: 1.1em; | font-size: 1.1em; | ||
| Line 340: | Line 427: | ||
| </ | </ | ||
| + | |||
| + | ===== jpg upload error - XML ===== | ||
| + | |||
| + | Media manage red warnings when uploading jpg image files | ||
| + | |||
| + | <note warning> | ||
| + | Error: Call to undefined function xml_parser_create() | ||
| + | </ | ||
| + | |||
| + | New VPS was missing the '' | ||
| + | |||
| + | sudo apt install php-xml | ||
| + | sudo service apache2 restart | ||
| + | | ||
| + | |||
| + | [[https:// | ||
| ===== Acronyms & Abbreviations ===== | ===== Acronyms & Abbreviations ===== | ||
| Line 723: | Line 826: | ||
| Page Updated: ~~LASTMOD~~ | Page Updated: ~~LASTMOD~~ | ||
| + | |||
| + | |||
| {{tag> | {{tag> | ||