DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:codebutton2

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
plugin:codebutton2 [2013-12-10 17:16] – [Download and Installation] bushrootplugin:codebutton2 [2023-05-04 20:39] (current) – screenshots Aleksandr
Line 1: Line 1:
-====== codebutton2 plugin ======+====== CodeButton2 Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: A plugin for adding custom code buttons into the toolbar with configuration, mix of codebutton_ext and custombuttons plugins. See screenshots below +description: A plugin for adding custom code buttons into the toolbar with configuration 
-author     : Reshetnikov Anton+author     : Anton Reshetnikov
 email      : resheto@gmail.com  email      : resheto@gmail.com 
 type       : action type       : action
-lastupdate : 2010-12-11 +lastupdate : 2013-12-10 
-compatible : +compatible : Binky, Weatherwax, Adora Belle, Angua
 depends    :  depends    : 
 conflicts  conflicts 
 similar    : codebutton_ext, custombuttons similar    : codebutton_ext, custombuttons
-tags       : toolbar, button, code+tags       : toolbar, button, code, deprecated
  
-downloadurl: http://dokuwiki-plugin-codebutton2.googlecode.com/files/dokuwiki-plugin-codebutton2.zip +downloadurl: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/dokuwiki-plugin-codebutton2/codebutton2.zip 
-bugtracker : http://code.google.com/p/dokuwiki-plugin-codebutton2/issues/list +bugtracker : https://code.google.com/archive/p/dokuwiki-plugin-codebutton2/issues 
-sourcerepo : http://code.google.com/p/dokuwiki-plugin-codebutton2/source/browse/#svn/trunk/codebutton2+sourcerepo : https://code.google.com/archive/p/dokuwiki-plugin-codebutton2/source/default/source
 donationurl:  donationurl: 
 +
 +screenshot_img: https://trello.com/1/cards/6453fa03df0d872ccd6de169/attachments/6453fb1f18dca9c1a3663507/download/dokuwiki-plugin-codebutton2_result.png
 ---- ----
  
-:!: need [[#disable_resizing_icons_in_some_dokuwiki_releases|small javascript  hacking]]  in DokuWiki version 2012-10-13 "Adora Belle"+:!: Need [[#disable_resizing_icons_in_some_dokuwiki_releases|small javascript  hacking]] in DokuWiki version since 2012-10-13 "Adora Belle".
  
  
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the URL given above. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
  
-===== Prerequirements and configuration =====+===== Prerequirements =====
  
-php gd must be enabled+PHP GD must be enabled
 + 
 +In debian-based system install with 
  
-in debian-based system install with  
 <code bash> <code bash>
 sudo apt-get install php5-gd sudo apt-get install php5-gd
Line 39: Line 42:
 ===== Syntax and Usage ===== ===== Syntax and Usage =====
  
-  - Go to Admin Panel>CodeButton2 +  - Go to Admin Panel -> CodeButton2 
-  - Add buttons in a [[wp>INI_file|ini file format]] following this syntax:<code><button_name> = "<code_name>"</code> +  - Add buttons in a [[wp>INI_file|INI file format]] following this syntax:<code><button_name> = "<code_name>"</code> 
-  - Click save +  - Click "Save" button 
-  - Now you will be able to see the code block and buttons at your toolbar.+  - Now you will be able to see the code block and buttons at your toolbar
  
  
 ====== ScreenShots ======= ====== ScreenShots =======
  
-===== Configuration=====+===== Configuration =====
  
-{{http://img404.imageshack.us/img404/1291/201012112220511.png}}+{{https://trello.com/1/cards/6453fa03df0d872ccd6de169/attachments/6453fb1e6128033bdf78d5a4/download/dokuwiki-plugin-codebutton2_configuration.png?recache|Configuration}}
  
-===== Result: new buttons in toolbar ===== 
  
-{{http://img84.imageshack.us/img84/8717/201012112222291.png}}+===== Result: new buttons in the toolbar ===== 
 + 
 +{{https://trello.com/1/cards/6453fa03df0d872ccd6de169/attachments/6453fb1f18dca9c1a3663507/download/dokuwiki-plugin-codebutton2_result.png?recache|Result}}
  
  
Line 60: Line 64:
 ==== Configuration in genpng.php  ==== ==== Configuration in genpng.php  ====
  
-configure path to font you want to use in variable  $font in file genpng.php+On some installation relative path don't work. Configure absolute path to font you want to use in variable  ''$font'' in file ''genpng.php''.
  
-<code php> $font = '/var/www/html/wiki/lib/plugins/codebutton2/DejaVuSans.ttf'; //path to font you want to use </code>+<code php> 
 +$font = '/var/www/html/wiki/lib/plugins/codebutton2/DejaVuSans.ttf'; //path to font you want to use 
 +</code>
  
  
-==== Disable resizing icons in some dokuwiki releases   ====+==== Disable resizing icons in some DokuWiki releases ==== 
 + 
 +Some DokuWiki releases resize icons to 16x16 size. Just comment this resizing in ''/lib/scripts/edit.js'' (about line 40)
  
-Some dokuwiki releases resize icons to 16x16 size. Just comment this resizing in /lib/scripts/edit.js (about line 40) 
 <code javascript> <code javascript>
     // create the icon and add it to the button     // create the icon and add it to the button
Line 78: Line 85:
 </code> </code>
  
-==== Configuration of php  ==== +==== Configuration of PHP ==== 
-enable gd in php+ 
 +Enable GD in PHP.
plugin/codebutton2.1386692187.txt.gz · Last modified: by bushroot

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki