Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
Disable smileys
Avatar
Floomb #1
Member since Oct 2013 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Disable smileys
Could we please either get the option to disable all smileys in the settings, or could the default smileys be moved into a user file, and the interface (esp. the page editor) adjusted accordingly when there are none? I am hacking into the code to rip the monstrosities out and I really don't want to be doing that, as it will presumably break as soon as I update.
Avatar
Floomb #2
Member since Oct 2013 · 2 posts
Group memberships: Members
Show profile · Link to this post
This is my current minimal-touch work-around for future searchers:

To hide the smileys from the editor (using the dokuwiki style), place this line in 'conf/userstyle.css' (or create the file if it's not already there):
button[title="Smileys"] { display: none; }

To stop conversion of text to smileys, blank 'conf/smileys.conf'.

Upgrading may break one or both of the above. If text begins converting to smileys again, just re-blank the smileys.conf file. If the smileys selector comes back, a more tricky workaround is required.

I would still like a nice option for this. Why are smileys part of the core distribution, anyway? They should be spun out into a plugin.
Avatar
turnermm (Moderator) #3
Member since Oct 2009 · 4733 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post #1
Removing toolbar items is a topic that came up just recently.  If you can do some programming yourself, you can adapt the following to an action plugin:

https://forum.dokuwiki.org/post/40579


Otherwise, if you can wait, since this seems to be something that is needed, I will turn that code into a plugin that gives admins a choice of removing toolbar items.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4733 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I have a decent working version of the plugin I wrote about above. You can install it using the Plugin Manager:

https://github.com/turnermm/toolbuttondel/archive/master.zip

After it is installed, go to the Configuration Settings, scroll down to Toolbuttondel Plugin Settings and check off smileys.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
coldscientist #5
Member for 2 weeks · 2 posts
Group memberships: Members
Show profile · Link to this post
If you don't want to disable Smiley functionality, you can use <nowiki>=)</nowiki> tag or %%=)%%
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-12-06, 08:46:02 (UTC +01:00)