Инструменты пользователя

Инструменты сайта


wiki:myedit

Правка моей конфигурации Dokuwiki

Панель инструментов

dokuwiki/inc/toolbar.php
Пример правки панели инструментов

«См.подробности правки»
toolbar.php
<?php
 
/**
 * Editing toolbar functions
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     Andreas Gohr <andi@splitbrain.org>
 */
 
use dokuwiki\Extension\Event;
 
/**
 * Prepares and prints an JavaScript array with all toolbar buttons
 *
 * @emits  TOOLBAR_DEFINE
 * @param  string $varname Name of the JS variable to fill
 * @author Andreas Gohr <andi@splitbrain.org>
 */
function toolbar_JSdefines($varname)
{
    global $lang;
 
    $menu = [];
 
    $evt = new Event('TOOLBAR_DEFINE', $menu);
    if ($evt->advise_before()) {
        // build button array
        $menu = array_merge($menu, [
            [
                'type'   => 'format',
                'title'  => $lang['qb_bold'],
                'icon'   => 'bold.png',
                'key'    => 'b',
                'open'   => '**',
                'close'  => '**',
                'block'  => false
            ],
            [
                'type'   => 'format',
                'title'  => $lang['qb_italic'],
                'icon'   => 'italic.png',
                'key'    => 'i',
                'open'   => '//',
                'close'  => '//',
                'block'  => false
            ],
            [
                'type'   => 'format',
                'title'  => $lang['qb_underl'],
                'icon'   => 'underline.png',
                'key'    => 'u',
                'open'   => '__',
                'close'  => '__',
                'block'  => false
            ],
            [
                'type'   => 'format',
                'title'  => $lang['qb_code'],
                'icon'   => 'mono.png',
                'key'    => 'm',
                'open'   => "''",
                'close'  => "''",
                'block'  => false
            ],
            [
                'type'   => 'format',
                'title'  => $lang['qb_strike'],
                'icon'   => 'strike.png',
                'key'    => 'd',
                'open'  => '<del>',
                'close'   => '</del>',
                'block'  => false
            ],
			/*Редактируем малоиспользуемый пункт меню "Выбор заголовка"*/
            [
                'type'   => 'picker',
                'title'  => $lang['qb_hs'],
                'icon'   => 'h.png',
                'class'  => 'pk_hl',
                'list'   => [
				    /*Убираем во вложеные кнопку "Подставить подпись"*/
                    [
                        'type'   => 'signature',
                        'title'  => $lang['qb_sig'],
                        'icon'   => 'sig.png',
                        'key'    => 'y',
                    ],
                    /*Убираем во вложеные кнопку "Заголовок текущего уровня [8]"*/
                    [
                        'type'   => 'autohead',
                        'title'  => $lang['qb_hequal'],
                        'icon'   => 'hequal.png',
                        'key'    => '8',
                        'text'   => $lang['qb_h'],
                        'mod'    => 0,
                    ],
					/*Убираем во вложеные кнопку "Заголовок меньшего уровня (подзаголовок)[9]"*/
                    [
                        'type'   => 'autohead',
                        'title'  => $lang['qb_hminus'],
                        'icon'   => 'hminus.png',
                        'key'    => '9',
                        'text'   => $lang['qb_h'],
                        'mod'    => 1,
                    ],
                    /*Убираем во вложеные кнопку "Заголовок большего уровня [0]"*/
                    [
                        'type'   => 'autohead',
                        'title'  => $lang['qb_hplus'],
                        'icon'   => 'hplus.png',
                        'key'    => '0',
                        'text'   => $lang['qb_h'],
                        'mod'    => -1,
                    ],
                    [
                        'type'   => 'format',
                        'title'  => $lang['qb_h1'],
                        'icon'   => 'h1.png',
                        'key'    => '1',
                        'open'   => '===== ',
                        'close'  => ' =====\n'
                    ],
                    [
                        'type'   => 'format',
                        'title'  => $lang['qb_h2'],
                        'icon'   => 'h2.png',
                        'key'    => '2',
                        'open'   => '===== ',
                        'close'  => ' =====\n'
                    ],
                    [
                        'type'   => 'format',
                        'title'  => $lang['qb_h3'],
                        'icon'   => 'h3.png',
                        'key'    => '3',
                        'open'   => '==== ',
                        'close'  => ' ====\n'
                    ],
                    [
                        'type'   => 'format',
                        'title'  => $lang['qb_h4'],
                        'icon'   => 'h4.png',
                        'key'    => '4',
                        'open'   => '=== ',
                        'close'  => ' ===\n'
                    ],
                    [
                        'type'   => 'format',
                        'title'  => $lang['qb_h5'],
                        'icon'   => 'h5.png',
                        'key'    => '5',
                        'open'   => '== ',
                        'close'  => ' ==\n'
                    ]
                ],
                'block'  => true
            ],
            [
                'type'   => 'linkwiz',
                'title'  => $lang['qb_link'],
                'icon'   => 'link.png',
                'key'    => 'l',
                'open'   => '[[',
                'close'  => ']]',
                'block'  => false
            ],
            [
                'type'   => 'format',
                'title'  => $lang['qb_extlink'],
                'icon'   => 'linkextern.png',
                'open'   => '[[',
                'close'  => ']]',
                'sample' => 'http://example.com|' . $lang['qb_extlink'],
                'block'  => false
            ],
            [
                'type'   => 'formatln',
                'title'  => $lang['qb_ol'],
                'icon'   => 'ol.png',
                'open'   => '  - ',
                'close'  => '',
                'key'    => '-',
                'block'  => true
            ],
            [
                'type'   => 'formatln',
                'title'  => $lang['qb_ul'],
                'icon'   => 'ul.png',
                'open'   => '  * ',
                'close'  => '',
                'key'    => '.',
                'block'  => true
            ],
            [
                'type'   => 'insert',
                'title'  => $lang['qb_hr'],
                'icon'   => 'hr.png',
                'insert' => '\n----\n',
                'block'  => true
            ],
            [
                'type'   => 'mediapopup',
                'title'  => $lang['qb_media'],
                'icon'   => 'image.png',
                'url'    => 'lib/exe/mediamanager.php?ns=',
                'name'   => 'mediaselect',
                'options' => 'width=750,height=500,left=20,top=20,scrollbars=yes,resizable=yes',
                'block'  => false
            ],
            [
                'type'   => 'picker',
                'title'  => $lang['qb_smileys'],
                'icon'   => 'smiley.png',
                'list'   => getSmileys(),
                'icobase' => 'smileys',
                'block'  => false
            ],
            [
                'type'   => 'picker',
                'title'  => $lang['qb_chars'],
                'icon'   => 'chars.png',
                'list' => [
                    'À', 'à', 'Á', 'á', 'Â', 'â', 'Ã', 'ã', 'Ä', 'ä', 'Ǎ', 'ǎ', 'Ă', 'ă', 'Å', 'å',
                    'Ā', 'ā', 'Ą', 'ą', 'Æ', 'æ', 'Ć', 'ć', 'Ç', 'ç', 'Č', 'č', 'Ĉ', 'ĉ', 'Ċ', 'ċ',
                    'Ð', 'đ', 'ð', 'Ď', 'ď', 'È', 'è', 'É', 'é', 'Ê', 'ê', 'Ë', 'ë', 'Ě', 'ě', 'Ē',
                    'ē', 'Ė', 'ė', 'Ę', 'ę', 'Ģ', 'ģ', 'Ĝ', 'ĝ', 'Ğ', 'ğ', 'Ġ', 'ġ', 'Ĥ', 'ĥ', 'Ì',
                    'ì', 'Í', 'í', 'Î', 'î', 'Ï', 'ï', 'Ǐ', 'ǐ', 'Ī', 'ī', 'İ', 'ı', 'Į', 'į', 'Ĵ',
                    'ĵ', 'Ķ', 'ķ', 'Ĺ', 'ĺ', 'Ļ', 'ļ', 'Ľ', 'ľ', 'Ł', 'ł', 'Ŀ', 'ŀ', 'Ń', 'ń', 'Ñ',
                    'ñ', 'Ņ', 'ņ', 'Ň', 'ň', 'Ò', 'ò', 'Ó', 'ó', 'Ô', 'ô', 'Õ', 'õ', 'Ö', 'ö', 'Ǒ',
                    'ǒ', 'Ō', 'ō', 'Ő', 'ő', 'Œ', 'œ', 'Ø', 'ø', 'Ŕ', 'ŕ', 'Ŗ', 'ŗ', 'Ř', 'ř', 'Ś',
                    'ś', 'Ş', 'ş', 'Š', 'š', 'Ŝ', 'ŝ', 'Ţ', 'ţ', 'Ť', 'ť', 'Ù', 'ù', 'Ú', 'ú', 'Û',
                    'û', 'Ü', 'ü', 'Ǔ', 'ǔ', 'Ŭ', 'ŭ', 'Ū', 'ū', 'Ů', 'ů', 'ǖ', 'ǘ', 'ǚ', 'ǜ', 'Ų',
                    'ų', 'Ű', 'ű', 'Ŵ', 'ŵ', 'Ý', 'ý', 'Ÿ', 'ÿ', 'Ŷ', 'ŷ', 'Ź', 'ź', 'Ž', 'ž', 'Ż',
                    'ż', 'Þ', 'þ', 'ß', 'Ħ', 'ħ', '¿', '¡', '¢', '£', '¤', '¥', '€', '¦', '§', 'ª',
                    '¬', '¯', '°', '±', '÷', '‰', '¼', '½', '¾', '¹', '²', '³', 'µ', '¶', '†', '‡',
                    '·', '•', 'º', '∀', '∂', '∃', 'Ə', 'ə', '∅', '∇', '∈', '∉', '∋', '∏', '∑', '‾',
                    '−', '∗', '×', '⁄', '√', '∝', '∞', '∠', '∧', '∨', '∩', '∪', '∫', '∴', '∼', '≅',
                    '≈', '≠', '≡', '≤', '≥', '⊂', '⊃', '⊄', '⊆', '⊇', '⊕', '⊗', '⊥', '⋅', '◊', '℘',
                    'ℑ', 'ℜ', 'ℵ', '♠', '♣', '♥', '♦', 'α', 'β', 'Γ', 'γ', 'Δ', 'δ', 'ε', 'ζ', 'η',
                    'Θ', 'θ', 'ι', 'κ', 'Λ', 'λ', 'μ', 'Ξ', 'ξ', 'Π', 'π', 'ρ', 'Σ', 'σ', 'Τ', 'τ',
                    'υ', 'Φ', 'φ', 'χ', 'Ψ', 'ψ', 'Ω', 'ω', '★', '☆', '☎', '☚', '☛', '☜', '☝', '☞',
                    '☟', '☹', '☺', '✔', '✘', '„', '“', '”', '‚', '‘', '’', '«', '»', '‹', '›', '—',
                    '–', '…', '←', '↑', '→', '↓', '↔', '⇐', '⇑', '⇒', '⇓', '⇔', '©', '™', '®', '′',
                    '″', '[', ']', '{', '}', '~', '(', ')', '%', '§', '$', '#', '|', '@'
                ],
                'block'  => false
            ]
 
        ]);
    } // end event TOOLBAR_DEFINE default action
    $evt->advise_after();
    unset($evt);
 
    // use JSON to build the JavaScript array
    echo "var $varname = " . json_encode($menu, JSON_THROW_ON_ERROR) . ";\n";
}
 
/**
 * prepares the signature string as configured in the config
 *
 * @author Andreas Gohr <andi@splitbrain.org>
 */
function toolbar_signature()
{
    global $conf;
    global $INFO;
    /** @var Input $INPUT */
    global $INPUT;
 
    $sig = $conf['signature'];
    $sig = dformat(null, $sig);
    $sig = str_replace('@USER@', $INPUT->server->str('REMOTE_USER'), $sig);
    if (is_null($INFO)) {
        $sig = str_replace(['@NAME@', '@MAIL@'], '', $sig);
    } else {
        $sig = str_replace('@NAME@', $INFO['userinfo']['name'] ?? "", $sig);
        $sig = str_replace('@MAIL@', $INFO['userinfo']['mail'] ?? "", $sig);
    }
    $sig = str_replace('@DATE@', dformat(), $sig);
    $sig = str_replace('\\\\n', '\\n', $sig);
    return json_encode($sig, JSON_THROW_ON_ERROR);
}
 
//Setup VIM: ex: et ts=4 :

Скачать файл toolbar.php с правками

Шаблон dokuwiki

tpl_footer.php

2023-04-04 «Jack Jackrum»

lib/tpl/dokuwiki/tpl_footer.php
Счетчик посещений сайта Dokuwiki с регистрацией IP - адреса в .txt файле

«См.подробности правки»
tpl_footer.php
<?php
/**
 * Template footer, included in the main and detail files
 */
 
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
?>
 
<!-- ********** FOOTER ********** -->
<footer id="dokuwiki__footer"><div class="pad">
    <div class="license">Если не указано иное, содержимое этой вики предоставляется на&nbsp;условиях следующей лицензии: <bdi><a href="doku.php?id=public_domain_mark" rel="license" class="urlextern">Public Domain</a></bdi></div>
 
    <div class="buttons">
        <a href="https://php.net" title="Powered by PHP" <?php echo $target?>><img
            src="<?php echo tpl_basedir(); ?>images/button-php.gif" width="80" height="15" alt="Powered by PHP" /></a>
        <a href="//validator.w3.org/check/referer" title="Valid HTML5" <?php echo $target?>><img
            src="<?php echo tpl_basedir(); ?>images/button-html5.png" width="80" height="15" alt="Valid HTML5" /></a>
        <a href="//jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS" <?php echo $target?>><img
            src="<?php echo tpl_basedir(); ?>images/button-css.png" width="80" height="15" alt="Valid CSS" /></a>
        <a href="https://dokuwiki.org/" title="Driven by DokuWiki" <?php echo $target?>><img
            src="<?php echo tpl_basedir(); ?>images/button-dw.png" width="80" height="15"
            alt="Driven by DokuWiki" /></a>
        <a>
            <?php 
                $file = file("count.txt");
                $count = implode("", $file);
                $count++;
                $myfile = fopen("count.txt","w");
                fputs($myfile,$count);
                fclose($myfile);
				$filename = file("stat.txt");
            ?>
        <style>
            .container {
            position: absolute;
            font-family: Georgia, 'Times New Roman', Times, serif;
            }
            .text-block {
            position: absolute;
            bottom: 0px;
            right: 4px;
            color: black;
            }
        </style>
            <a class="container">
                <span><img src="<?php echo tpl_basedir(); ?>images/button-yandex.png" width="85" height="15" alt="yandex" / >
                    <div class="text-block"><?=$count ?></div>
                </span>
            </a>
        </a>
    </div>
    <?php tpl_includeFile('footer.html'); ?>
	<?php // Счетчик определителя IP посетителя
	    $client  = @$_SERVER['HTTP_CLIENT_IP'];
        $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
        $remote  = @$_SERVER['REMOTE_ADDR']; // Определяем IP посетителя
        $bravo   = @$_SERVER["HTTP_USER_AGENT"];//Определяем браузер
            if(filter_var($client, FILTER_VALIDATE_IP)) $ip_address = $client;
            elseif(filter_var($forward, FILTER_VALIDATE_IP)) $ip_address = $forward;
            else $ip_address = $remote;
        $file2 = $_SERVER['DOCUMENT_ROOT'] . '/lib/tpl/dokuwiki/debug.txt';
        file_put_contents($file2, date("F d  H:i:s."). ('    ') . $ip_address . ('    ') . $bravo .  PHP_EOL, FILE_APPEND | LOCK_EX);
	?>
</div></footer><!-- /footer -->
  1. Скачать файл toolbar.php с правками
  2. Поместить в папку Dokuwiki\lib\tpl\dokuwiki.
  3. Скачать картинку счетчика
  4. Сохранить как button-yandex.png в папке Dokuwiki\lib\tpl\dokuwiki\images.
  5. Скачать файл count.txt
  6. Поместить в корень сайта Dokuwiki
  7. Скачать файл debug.txt
  8. Поместить в папку Dokuwiki\lib\tpl\dokuwiki\.
  1. Скачать архив jack_jackrum.zip с правками для «Jack Jackrum»
  2. Разорхивировать и копировать с заменой файлов в папке dokuwiki

2024-02-06 «Kaos»

lib/tpl/dokuwiki/tpl_footer.php
Счетчик посещений сайта Dokuwiki с регистрацией IP - адреса в .txt файле

«См.подробности правки»
tpl_footer.php
<?php
 
/**
 * Template footer, included in the main and detail files
 */
 
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
?>
 
<!-- ********** FOOTER ********** -->
<footer id="dokuwiki__footer"><div class="pad">
    <?php tpl_license(''); // license text ?>
 
    <div class="buttons">
        <?php
            tpl_license('button', true, false, false); // license button, no wrapper
            $target = ($conf['target']['extern']) ? 'target="' . $conf['target']['extern'] . '"' : '';
        ?>
        <a href="https://php.net" title="Powered by PHP" <?php echo $target?>><img
            src="<?php echo tpl_basedir(); ?>images/button-php.gif" width="80" height="15" alt="Powered by PHP" /></a>
        <a href="//validator.w3.org/check/referer" title="Valid HTML5" <?php echo $target?>><img
            src="<?php echo tpl_basedir(); ?>images/button-html5.png" width="80" height="15" alt="Valid HTML5" /></a>
        <a href="//jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS" <?php echo $target?>><img
            src="<?php echo tpl_basedir(); ?>images/button-css.png" width="80" height="15" alt="Valid CSS" /></a>
        <a href="https://dokuwiki.org/" title="Driven by DokuWiki" <?php echo $target?>><img
            src="<?php echo tpl_basedir(); ?>images/button-dw.png" width="80" height="15"
            alt="Driven by DokuWiki" /></a>
        <a>
            <?php 
                $file = file("count.txt");
                $count = implode("", $file);
                $count++;
                $myfile = fopen("count.txt","w");
                fputs($myfile,$count);
                fclose($myfile);
            ?>
        <style>
            .container {
            position: absolute;
            font-family: Georgia, 'Times New Roman', Times, serif;
            }
            .text-block {
            position: absolute;
            bottom: 0px;
            right: 4px;
            color: black;
            }
        </style>
            <a class="container">
                <span><img src="<?php echo tpl_basedir(); ?>images/button-yandex.png" width="85" height="15" alt="yandex" / >
                    <div class="text-block"><?=$count ?></div>
                </span>
            </a>
        </a>
    </div>
 
    <?php tpl_includeFile('footer.html'); ?>
	<?php
	    $client  = @$_SERVER['HTTP_CLIENT_IP'];
        $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
        $remote  = @$_SERVER['REMOTE_ADDR']; // Определяем IP посетителя
        $bravo   = @$_SERVER["HTTP_USER_AGENT"];//Определяем браузер
            if(filter_var($client, FILTER_VALIDATE_IP)) $ip_address = $client;
            elseif(filter_var($forward, FILTER_VALIDATE_IP)) $ip_address = $forward;
            else $ip_address = $remote;
        $file2 = $_SERVER['DOCUMENT_ROOT'] . '/lib/tpl/dokuwiki/debug.txt';
        file_put_contents($file2, date("F d  H:i:s."). ('    ') . $ip_address . ('    ') . $bravo .  PHP_EOL, FILE_APPEND | LOCK_EX);
	?>
</div></footer><!-- /footer -->
  1. Скачать архив kaos.zip с правками для «Kaos»
  2. Разорхивировать и копировать с заменой файлов в папке dokuwiki

_links.css

«Jack Jackrum» и "Kaos"

lib/tpl/dokuwiki/css/_links.css
Убрана (закомментированна) иконка перед ссылками и стиль

_links.css
  1. /*____________ other link types ____________*/
  2.  
  3. /*.dokuwiki a.urlextern,*/
  4. /*.dokuwiki a.windows,*/
  5. /*.dokuwiki a.mail,*/
  6. .dokuwiki a.mediafile,
  7. .dokuwiki a.interwiki {
  8. background-size: 1.2em;
  9. background-repeat: no-repeat;
  10. background-position: 0 center;
  11. padding: 0 0 0 1.4em;
  12. }
  13. /* внешние ссылки */
  14. .dokuwiki a.urlextern {
  15. /* background-image: url(../../images/media_link_displaylnk.png);*/
  16. }
  17. }
«См.подробности правки файла _links.css»
_links.css
  1. /**
  2.  * Этот файл предоставляет стили для всех типов ссылок.
  3.  */
  4.  
  5. /*____________ ссылки на вики-страницы ____________*/
  6.  
  7. /* существующая вики-страница */
  8. .dokuwiki a.wikilink1 {
  9.  
  10. }
  11. /* не существующая вики-страница */
  12. .dokuwiki a.wikilink2 {
  13. text-decoration: none;
  14. }
  15. .dokuwiki a.wikilink2:link,
  16. .dokuwiki a.wikilink2:visited {
  17. border-bottom: 1px dashed;
  18. }
  19. .dokuwiki a.wikilink2:hover,
  20. .dokuwiki a.wikilink2:active,
  21. .dokuwiki a.wikilink2:focus {
  22. border-bottom-width: 0;
  23. }
  24.  
  25. /* любая ссылка на текущую страницу */
  26. .dokuwiki span.curid a {
  27. font-weight: bold;
  28. }
  29.  
  30. /*____________ other link types ____________*/
  31.  
  32. /*.dokuwiki a.urlextern,*/
  33. /*.dokuwiki a.windows,*/
  34. /*.dokuwiki a.mail,*/
  35. .dokuwiki a.mediafile,
  36. .dokuwiki a.interwiki {
  37. background-size: 1.2em;
  38. background-repeat: no-repeat;
  39. background-position: 0 center;
  40. padding: 0 0 0 1.4em;
  41. }
  42. /* внешние ссылки */
  43. .dokuwiki a.urlextern {
  44. /* background-image: url(../../images/media_link_displaylnk.png);*/
  45. }
  46. /* сетевые ресурсы windows */
  47. .dokuwiki a.windows {
  48. /* background-image: url(../../images/unc.svg);*/
  49. }
  50. /* почтовые ссылки */
  51. .dokuwiki a.mail {
  52. /* background-image: url(../../images/email.svg);*/
  53. }
  54.  
  55. /* Следующие значки установлены dokuwiki в lib/exe/css.php */
  56. /* ссылка на некоторые встроенные носители */
  57. .dokuwiki a.mediafile {
  58. }
  59. /* interwiki ссылки */
  60. .dokuwiki a.interwiki {
  61. }
  62.  
  63. /* RTL исправления; если значки ссылок не работают должным образом, удалите следующие строки */
  64. [dir=rtl] .dokuwiki a.urlextern,
  65. [dir=rtl] .dokuwiki a.windows,
  66. [dir=rtl] .dokuwiki a.mail,
  67. [dir=rtl] .dokuwiki a.interwiki,
  68. [dir=rtl] .dokuwiki a.mediafile {
  69. background-position: right center;
  70. padding: 0 18px 0 0;
  71. }

См. также

style.ini

«Jack Jackrum» и "Kaos"

lib/tpl/dokuwiki/style.ini
Изменен цвет для внутренней ссылки с зеленого на синий __existing__ = "#080" и __missing__ = "#d30""

_links.css
  1. ; these are used for wiki links
  2. __existing__ = "#0000cd" ; @ini_existing
  3. __missing__ = "#f30" ; @ini_missing

См. также

mime.conf

«Jack Jackrum» и "Kaos"

conf/mime.conf
Добавлены расширения разрешенных файлов для загрузки в dokuwiki __missing__ = "#d30""

mime.conf
  1. tgz !application/octet-stream
  2. tar application/x-gtar
  3. tar.xz application/tar.xz
  4. gz application/octet-stream
  5. bz2 application/octet-stream
  6. zip application/zip
  7. rar application/rar
  8. 7z application/x-7z-compressed

См. также

smileys.conf

«Jack Jackrum» и "Kaos"

conf/smileys.conf
Убраны неиспользуемые иконки смайликов dokuwiki

smileys.conf
  1. # Smileys configured here will be replaced by the
  2. # configured images in the smiley directory
  3.  
  4. 8-) sm.png
  5. 8-O eek.svg
  6. :-( sm_1.png
  7. :-) sm_2.png
  8. =) sm_3.png
  9. :-/ sm_4.png
  10. :-\ sm_5.png
  11. :-? sm_6.png
  12. :-D sm_7.png
  13. LOL sm_8.png
  14. :?: question.svg
  15. :!: exclaim.svg
  16. {{:icons:16:hourglass-select.png?|Устаревший}} hourglass-select.png
  17. {{:icons:16:flask.png?|Экспериментальный}} flask.png
  18. {{:icons:16:jar.png?|Нестандартный}} jar.png
  19. [[|{{:icons:16:flask.png?|Экспериментальный}}]] flask.png
  20. FIXME fixme.jpg
  21. DELETEME deleteme.jpg

smileys.local.conf

«Jack Jackrum» и "Kaos"

conf/smileys.local.conf
Добавлен новый файл smileys.local.conf со своим набором иконок dokuwiki

smileys.conf
  1. :&: address-book-open.png
  2. :&1: book-open.png
  3. :&2: book-open-bookmark.png
  4. :&3: hourglass-select.png
  5. :&4: flask.png
  6. :&5: jar.png
  7. :&6: wand-hat.png
  8. :&7: balloon.png
  9. :&8: exclamation--frame.png
  10. :&9: exclamation-red.png
  11. :&10: information.png
  12. :&11: light-bulb-off.png
  13. :&12: light-bulb.png
  14. :&13: magnifier-left.png
  15. :&14: navigation-000-button-white.png
  16. :&15: pin.png
  17. :&16: tick.png
  18. :&17: tick-red.png
  19. :&18: leaf.png
  20. :&19: leaf-yellow.png
  21. :&20: leaf-red.png
  22. :&21: lightning.png
  23. :&22: box.png
  24. :&esc: esc.png
  25. :&enter: enter.png
  26. :&primenite: primenite.png
  27. :&ctrl+x: ctrl+x.png
  28. :&ctrl+o: ctrl+o.png
  29. :&ok: ok.png
  30. :&sbros: sbros.png
  31. :&dalee: dalee.png
  32. :&nazad: nazad.png
  33. :&gal: gal.png
  34. :&sozdate: sozdate.png
  35. :&otmena: otmena.png
  36. :ctrl_o_enter_ctrl_x.png: ctrl_o_enter_ctrl_x.png

иконки для смайликов

interwiki.conf

«Jack Jackrum» и "Kaos"

conf/interwiki.conf
Убраны (закомментированы) неиспользуемые иконки interwiki dokuwiki

interwiki.conf
  1. # Each URL may contain one of these placeholders
  2. # {URL} is replaced by the URL encoded representation of the wikiname
  3. # this is the right thing to do in most cases
  4. # {NAME} this is replaced by the wikiname as given in the document
  5. # only mandatory encoded is done, urlencoding if the link
  6. # is an external URL, or encoding as a wikiname if it is an
  7. # internal link (begins with a colon)
  8. # {SCHEME}
  9. # {HOST}
  10. # {PORT}
  11. # {PATH}
  12. # {QUERY} these placeholders will be replaced with the appropriate part
  13. # of the link when parsed as a URL
  14. # If no placeholder is defined the urlencoded name is appended to the URL
  15.  
  16. # To prevent losing your added InterWiki shortcuts after an upgrade,
  17. # you should add new ones to interwiki.local.conf
  18.  
  19. # world https://
  20. # wp https://en.wikipedia.org/wiki/{NAME}
  21. # wpfr https://fr.wikipedia.org/wiki/{NAME}
  22. # wpde https://de.wikipedia.org/wiki/{NAME}
  23. # wpes https://es.wikipedia.org/wiki/{NAME}
  24. # wppl https://pl.wikipedia.org/wiki/{NAME}
  25. # wpjp https://ja.wikipedia.org/wiki/{NAME}
  26. # wpru https://ru.wikipedia.org/wiki/{NAME}
  27. # wpmeta https://meta.wikipedia.org/wiki/{NAME}
  28. # doku https://www.dokuwiki.org/
  29. # rfc https://tools.ietf.org/html/rfc
  30. # man http://man.cx/
  31. # google https://www.google.com/search?q=
  32. # amazon https://www.amazon.com/dp/{URL}?tag=splitbrain-20
  33. # amazon.de https://www.amazon.de/dp/{URL}?tag=splitbrain-21
  34. # amazon.uk https://www.amazon.co.uk/dp/{URL}
  35. # paypal https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=
  36. # skype skype:{NAME}
  37. # google.de https://www.google.de/search?q=
  38. # go https://www.google.com/search?q={URL}&amp;btnI=lucky
  39. # user :user:{NAME}
  40. # skype skype:{NAME}
  41.  
  42. # To support VoIP/SIP/TEL links
  43. # user :user:{NAME}
  44. # callto callto://{NAME}
  45. # tel tel:{NAME}
  46. # mail mail:{NAME}
  47. # address address:{NAME}

interwiki.local.conf

«Jack Jackrum» и "Kaos"

conf/interwiki.local.conf
Добавлен новый файл interwiki.local.conf со своим набором иконок dokuwiki

smileys.conf
  1. coral http://{HOST}.{PORT}.nyud.net:8090{PATH}?{QUERY}
  2.  
  3. world https://
  4. wp https://en.wikipedia.org/wiki/{NAME}
  5. doku https://www.dokuwiki.org/
  6. google https://www.google.com/search?q=
  7. windows https://support.microsoft.com/ru-ru/
  8. ubuntu https://wiki.ubuntu.com/{NAME}
  9. phpfn https://secure.php.net/{NAME}
  10. xref doku.php?id=wiki:xref:dokuwiki:
  11. # [[this>feed.php]] - Ссылки на URL вашей вики. (находиться в mylink)
  12.  
  13. # To support VoIP/SIP/TEL links
  14. user :user:{NAME}
  15. # callto callto://{NAME}
  16. tel tel:{NAME}
  17. mail mail:{NAME}
  18. address address:{NAME}

иконки для interwiki

Установка новой dokuwiki

  1. Загружаем архив с последней ревизией dokuwiki
  1. Создаем папку с поддерикториями аналогичной структуре папок dokuwiki и в ней разладываем модифицированные файлы и папки с иконками.
  2. Устанавливаем новую dokuwiki и на неё копируем нашу папку с заменой файлов

Обновление модефицированной dokuwiki

  1. Делаем бэкап нашей dokuwiki
  2. Создаем папку с поддерикториями аналогичной структуре папок dokuwiki и в ней разложенны модифицированные файлы и папки с иконками.
  3. Обновляем нашу dokuwiki через менеджер обновлений и на неё копируем нашу папку с заменой файлов

Только авторизованные участники могут оставлять комментарии.
wiki/myedit.txt · Последнее изменение: 2025/01/19 16:05 — vladpolskiy