Recopilation of smileys packs to use in Dokuwiki.
Small PHP script for easyly create your own smileys/tags/labels packs config file conf/smileys.local.conf
with just copy and paste from your own browser.
(http://YourDOKUWIKI.URL/lib/images/smileys/local/index.php)
Create a lib/images/smileys/local/
folder and clone this repo there.
cd ./lib/images/smileys/
mkdir local
cd local
git clone https://github.com/davidjimenez75/dokuwiki-smileys-local/ ./
Copy the smileys.local.conf
to conf/smileys.local.conf
Touch conf/local.php
to refresh the Dokuwiki editor cache.
Just copy the root folder smileys.local.conf
to conf/smileys.local.conf
Don't forget to touch the file conf/local.php
to refresh the Dokuwiki editor cache. ;)
Example with "emojione-smileys" + "dokuwiki-tags-en" icon packs installed.
https://www.dokuwiki.org/smileys
To add your own smileys, and make them upgrade-safe as well, you should follow these instructions instead of mixing them with the default-smileys from Dokuwiki-package:
- Create a new folder called
local
inside the smileys-dirlib/images/smileys/local/
and put the imagefiles into it (make sure the images are readable by the webserver) - Create a custom smiley-config file at
conf/smileys.local.conf
and prefix each image filename withlocal/
An example configuration file could look like this: <code>
# Custom Smileys
# Images are seen relatively from the smiley directory lib/images/smileys/
# TEXT_TO_REPLACE FILENAME_OF_IMAGE
#
:MYFACE: local/i_am_so_pretty.jpg
# or eventually disable a smiley by mentioning the key, without image path.
DELETEME
Smiley pack | Website | Repo | License |
---|---|---|---|
icons8 | https://icons8.com | github | Good-Boy Licence |
openmoji | https://openmoji.org/about/ | github | CC BY-SA 4.0 |
emojione | https://www.joypixels.com/ | github archived - github | Free License |
dokuwiki | Pack created by myself | github | CC BY-SA 4.0 |
github | Pack created by myself | github | CC BY-SA 4.0 |
Editing smileys.local.conf
sometimes doesnt not work due to cache issues, try touch the date of conf/local.php
and reload Dokuwiki (Ctrl + F5)
.
Just create a new folder with your smileys, lauch the config generator in your browser (http://YourDOKUWIKI.URL/lib/images/smileys/local/index.php)
, click on your folder, select content (Ctrl + A)
and copy that inside your conf/smileys.local.conf
All icon packs folders are previewed on load.
There is another smiley with the same text-to-replace.
By default Dokuwiki uses :TAGS:
But you can edit the index.php to generate the conf/smileys.local.conf
with your own symbols.
// CONFIG
$smileStringStart =':'; // prefix for smileys by default is :
$smileStringEnd =':'; // suffix for smileys by default is :
You can also manually edit the conf/smileys.local.conf
first column text-to-replace.
Example of GTD "(TAGS)":
(ACTION) local/dokuwiki/action.gif
(TO-DO) local/dokuwiki/to-do.gif
(NEXT) local/dokuwiki/next.gif
(SOMEDAY) local/dokuwiki/someday.gif
(WAITING) local/dokuwiki/waiting.gif
(FINISHED) local/dokuwiki/finished.gif
With the Dokuwiki search tool is easy to keep track of :TAGS:
I have used this on my own Dokuwiki:
:ACTION: local/dokuwiki/action.gif
:TO-DO: local/dokuwiki/to-do.gif
:NEXT: local/dokuwiki/next.gif
:SOMEDAY: local/dokuwiki/someday.gif
:WAITING: local/dokuwiki/waiting.gif
:FINISHED: local/dokuwiki/finished.gif
Add the text-to-replace to that smileys at the bottom of your conf/smileys.local.conf
# DISABLED
FIXME
DELETEME