Description
Kama WP Smiles adds block with smiles to comment form in your theme and to HTML/visual editor in admin panel. All that allows you easily add smiles into comment or post content. The plugin replace original WordPress emoticons by new pretty dinamic one (gif).
With Kama WP Smiles visitors of you blog will have easy instrument to add smiles in comments and you will have opportunity to add smiles while writing posts or answer comments.
On plugin settings page, you can choose which of accessible smiles will appear in the smiles block. And you can tune smiles special code like π which will be replaced on smile image in content. Moreover you can add your own package of any images and use it as smiles.
If you don’t enjoy the plugin, you can just delete it. On uninstall, plugin will clean up after itself.
TODO
ΠΠΎΠ΄Π΄Π΅ΡΠΆΠΊΠ° Quick Chat ΠΈ BbPress
ΠΠ° ΠΌΠΎΠΉ Π²Π·Π³Π»ΡΠ΄ – ΡΡΠΎ:
- ΠΠ½ΠΎΠΏΠΊΠΈ (Π² Π½Π°ΡΡΡΠΎΠΉΠΊΠ°Ρ ) > Π Π°ΡΠΊΡΡΡΠΈΠ΅ ΡΠΏΠΈΡΠΊΠ° ΡΠΌΠ°ΠΉΠ»ΠΎΠ² (Π²ΡΠΏΠ°Π΄Π°ΡΡΠΈΠΉ ΡΠΏΠΈΡΠΎΠΊ) > ΠΏΡΠΈ ΠΏΠΎΠ΄Π²Π΅Π΄Π΅Π½ΠΈΠΈ ΠΊ Π·Π½Π°ΡΠΊΡ ΠΠΠ Π½Π°ΠΆΠ°ΡΠΈΡ Π½Π° Π½Π΅Π³ΠΎ (ΠΈΠ»ΠΈ ΡΠ°ΠΊ ΠΈΠ»ΠΈ ΡΠ°ΠΊ) β (ΠΏΠ΅ΡΠ΅ΠΊΠ»ΡΡΠ°ΡΠ΅Π»Ρ Π² Π½Π°ΡΡΡΠΎΠΉΠΊΠ°Ρ !!!)
β ΠΠΎΠ³Π΄Π° Π½Π°ΠΆΠΈΠΌΠ°Π΅ΡΡ Π½Π° Π·Π½Π°ΡΠΎΠΊ ΡΠΌΠ°ΠΉΠ»Π° > ΡΠ°ΡΠΊΡΡΠ²Π°Π΅ΡΡΡ ΠΌΠ΅Π½Ρ > !!! ΠΠ Π ΠΠΠΠΠΠΠΠΠΠ !!!!
(Π½Π΅ Π²ΡΠ΅Π³Π΄Π° ΡΠ΄ΠΎΠ±Π½ΠΎ ΠΊΠΎΠ³Π΄Π° ΠΏΠΎΠ΄Π²ΠΎΠ΄ΠΈΡΡ ΠΈ ΡΠ°ΡΠΊΡΡΠ²Π°Π΅ΡΡΡ ΡΠΏΠΈΡΠΎΠΊ, ΠΏΠΎΡΠΎΠΉ Π΄Π°ΠΆΠ΅ ΠΌΠ΅ΡΠ°Π΅Ρ)
2.
β ΠΡΠΏΠ°Π΄Π°ΡΡΠΈΠΉ ΡΠΏΠΈΡΠΎΠΊ > Π½Π°Π²Π΅ΡΠ½ΠΎΠ΅ ΡΠΎΠΆΠ΅ ΡΠ°ΠΌΠΎΠ΅ ΡΡΠΎ ΠΏΡΠ½ΠΊΡ 1. ΡΠΎΠ»ΡΠΊΠΎ ΡΠΎ Π·Π½Π°ΡΠΊΠΎΠΌ ΡΡΠ΄ΠΎΠΌ ” ΡΡΡΠ΅Π»ΠΎΡΠΊΠ° Π²Π½ΠΈΠ· ” – (“>” ΡΠΎΠ»ΡΠΊΠΎ ΠΏΠΎΠ²ΡΡΠ½ΡΡΠ°Ρ Π²Π½ΠΈΠ·) β—( ΡΠΏΡΠ°Π²Π° ΠΈΠ»ΠΈ ΡΠ»Π΅Π²Π°, Π»ΡΡΡΠ΅ ΡΠΏΡΠ°Π²Π°)
Π’.Π΅ ΠΡΠΎΠ±ΡΠ°ΠΆΠ°Π΅ΡΡΡ ΡΠΌΠ°ΠΉΠ» ΠΈ ΡΡΠ΄ΠΎΠΌ Ρ Π½ΠΈΠΌ Π·Π½Π°ΡΠΎΠΊ (“>” ΡΠΎΠ»ΡΠΊΠΎ ΠΏΠΎΠ²ΡΡΠ½ΡΡΠ°Ρ Π²Π½ΠΈΠ·) Π² Π²ΠΈΠ΄Π΅ ΠΊΠ½ΠΎΠΏΠΊΠΈ (ΠΠ ΠΠ ΠΠ’ΠΠ§ΠΠ ΠΏΡΠΈ ΠΏΠΎΠ»Π½ΠΎΠΉ ΡΠ΅Π°Π»ΠΈΠ·Π°ΡΠΈΠΈ ΠΏ.1) – ΡΠ°ΠΊΠΎΠΉ ΠΏΠ΅ΡΠ΅ΠΊΠ»ΡΡΠ°ΡΠ΅Π»Ρ Π² Π½Π°ΡΡΡΠΎΠΉΠΊΠ°Ρ ΡΠΎΠΆΠ΅ Π±ΡΠ» Π±Ρ ΠΌΠ½ΠΎΠ³ΠΈΠΌ ΡΠ΄ΠΎΠ±Π΅Π½ ΠΈ ΠΏΠΎΠ»Π΅Π·Π΅Π½ (ΠΈΠ»ΠΈ ΡΠ°ΠΊ ΠΈΠ»ΠΈ ΡΠ°ΠΊ).
4.
β ΠΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ (Π² Π½Π°ΡΡΡΠΎΠΉΠΊΠ°Ρ
ΠΏΠ»Π°Π³ΠΈΠ½Π°) Π Π°ΡΡΠΈΡΡΡΡ ΠΈ ΡΡΠΆΠ°ΡΡ ΡΠ΅ΡΠΊΡ ΡΠΌΠ°ΠΉΠ»ΠΎΠ², ΠΏΡΠΈ ΡΠ°ΡΠΊΡΡΡΠΈΠΈ ΠΌΠ΅Π½Ρ ΡΠΌΠ°ΠΉΠ»ΠΎΠ² = ΠΎΡΠΎΠ±ΡΠ°ΠΆΠ°ΡΡ ΠΊΠΎΠ»ΠΈΡΠ΅ΡΡΠ²ΠΎ ΠΊΠΎΠ»ΠΎΠ½ΠΎΠΊ ΠΈ ΡΡΠΎΠ»Π±ΡΠΎΠ² !!!
Π’.Π΅ – (Π½Π°ΠΆΠΈΠΌΠ°Π΅ΡΡ Π½Π° ΡΠΌΠ°ΠΉΠ» ΠΈΠ»ΠΈ ΠΏΠΎΠ΄Π²ΠΎΠ΄ΠΈΡΡ ΠΌΡΡΡ ΠΊ Π½Π΅ΠΌΡ) = > ΠΎΡΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΠ΅ ΡΠ΅ΡΠΊΠΈ = (8 ΡΡΠΎΠ»Π±ΡΠΎΠ² + 16 ΡΡΡΠΎΠΊ) ΠΈΠ»ΠΈ (16 ΡΡΠΎΠ»Π±ΡΠΎΠ² + 16 ΡΡΡΠΎΠΊ) ….. Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ (1×2-20) (1-20×1) (2×20) (3×4) (4×3) (5×32) (16×20) ΠΈΡΠ΄ ΠΈΡΠΏ! Ρ.Π΅ ΠΏΡΠΎΠΈΠ·Π²ΠΎΠ»ΡΠ½ΡΠ΅ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΡ Π² Π½Π°ΡΡΡΠΎΠΉΠΊΠ°Ρ
ΠΏΠ»Π°Π³ΠΈΠ½Π° (ΠΊΠΎΠ»-Π²ΠΎ ΡΡΠΎΠ»Π±ΡΠΎΠ² = ” X ” ; ΠΊΠΎΠ»-Π²ΠΎ ΡΡΡΠΎΠΊ = ” X “) !!!
8.
– ΠΠ΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΡ:
/wp-content/plugins/kama-wp-smile/smiles/*.gif
ΠΠ°ΠΏΠΊΠΈ:
/wp-content – Π΅ΡΡΡ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ ΡΠΊΡΡΡΡ Ρ
ΠΏΠΎΠΌΠΎΡΡΡ ΡΡΠΎΡΠΎΠ½Π½ΠΈΡ
ΠΏΠ»Π°Π³ΠΈΠ½ΠΎΠ²
/plugins/ – Π΅ΡΡΡ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ ΡΠΊΡΡΡΡ Ρ ΠΏΠΎΠΌΠΎΡΡΡ ΡΡΠΎΡΠΎΠ½Π½ΠΈΡ
ΠΏΠ»Π°Π³ΠΈΠ½ΠΎΠ²
/kama-wp-smile/smiles/*.gif – ΠΠ°Π·Π²Π°Π½ΠΈΠ΅ ΠΏΠ»Π°Π³ΠΈΠ½Π° Π΄Π°ΡΡ ΠΎΠΏΡΠ΅Π΄Π΅Π»ΠΈΡΡ ΠΏΠΎ ΠΊΠΎΠ΄Ρ ΡΡΡΠ°Π½ΠΈΡΡ ΠΈΠ»ΠΈ ΠΎΡΠΊΡΡΡΠΈΡ ΡΠΌΠ°ΠΉΠ»Π° Π² Π½ΠΎΠ²ΠΎΠΌ ΡΡΠΎ ΡΡΡΠ°Π½ΠΎΠ²Π»Π΅Π½ wordpress.
Π Π΅ΠΊΠΎΠΌΠ΅Π½Π΄ΡΡ ΡΠΌΠ΅Π½ΠΈΡΡ Π½Π°Π·Π²Π°Π½ΠΈΠ΅ (Π£Π±ΡΠ°ΡΡ wp ΠΈΠ· ΠΈΠΌΠ΅Π½ΠΈ ΠΏΠ°ΠΏΠΊΠΈ, …. Π½Π΅ ΠΏΠ»Π°Π³ΠΈΠ½Π°!)
– Π‘Π΄Π΅Π»Π°ΡΡ Π²ΠΎΠΎΠ±ΡΠ΅ ΠΏΡΠΎΡΡΠΎ ΠΏΠ°ΠΏΠΊΡ Smile ΠΈΠ»ΠΈ (Kama)
ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ /wp-content/plugins/smile/smiles/.gif – ΡΠ°ΠΊ ΡΠΎΡΠ½ΠΎ ΡΡΠ°Π·Ρ Π½Π΅ ΠΎΠΏΡΠ΅Π΄Π΅Π»ΠΈΡΡ!!!
ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ /wp-content/plugins/kama/smiles/.gif – ΡΠ°ΠΊ ΡΠΎΡΠ½ΠΎ ΡΡΠ°Π·Ρ Π½Π΅ ΠΎΠΏΡΠ΅Π΄Π΅Π»ΠΈΡΡ!!!Ρ
Ρ.Π΅ Π±ΡΠ΄Π΅Ρ Π² ΠΊΠΎΠ΄Π΅ ΠΎΡΠΎΠ±ΡΠ°ΠΆΠ°ΡΡΡΡ /kama/smiles/.gif
Ρ.Π΅ Π±ΡΠ΄Π΅Ρ Π² ΠΊΠΎΠ΄Π΅ ΠΎΡΠΎΠ±ΡΠ°ΠΆΠ°ΡΡΡΡ *****/*****/kama/smiles/.gif
Π‘ΠΏΠ°ΡΠΈΠ±ΠΎ Π·Π° Π²Π½ΠΈΠΌΠ°Π½ΠΈΠ΅.
Screenshots
FAQ
-
Plugin don’t add smile block to comment form
-
May be, you comment form textarea HTML tag have not default ID attribute. Specify comment form ID attribute tag on settings page. Default is
comment
-
I have HTML tag <var> where it needn’t replace smile code to smile image
-
Add exceptions tags on settings page in which no need to replace smile code to smile. Default is
code, pre, style, script, textarea
. -
How can I add smile block to comment form by myself?
-
To add smile block to comment form or any other textarea form. Leave empty comment ID field on settings page and use next code in your theme:
<?php echo kws_get_smiles_html( $textarea_id ); ?>
Reviews
Contributors & Developers
“Kama WP Smiles” is open source software. The following people have contributed to this plugin.
Contributors“Kama WP Smiles” has been translated into 1 locale. Thank you to the translators for their contributions.
Translate “Kama WP Smiles” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.9.13
- NEW: filter
kwsmile__insert_smile_space
.
1.9.11
- NEW: filter
kws_get_opt
. - NEW: filter
kwsmile_pack_path_url
.
1.9.9
- NEW:
uninstall.php
now deletewp-content/plugins/kama-wp-smile-packs
folder if it was created.
1.9.8.1
- FIX: Compatability with PHP 7.4
1.9.8
- FIX: special smiles match pattern fix. Ex:
=D
inhttps://youtube.com/watch?v=DIhskiHOybw
1.9.7
- CHG: now, the option
use_smiles
is not disabled. But it has no affect on content – it’s disables with hooks on the fly.
1.9.6
- CHG: ‘languages’ folder deleted from the plugin
1.9.5
- CHG: version upgrade check everywhere – it’s fast
- ADD: move localisation to translate.wordpress.org
1.9.3 – 1.9.4
- FIX: select “smile list position” option conflict in admin area
1.9.2
- ADD: select “smile list position” option
1.9.1
- FIX: Bug from 1.9.0
- CHG: a little default styles
1.9.0
- ADD: new pack of smiles: for dark background. New 200+ qip smiles
- ADD: Now you can add your own smiles, just create folder ‘/wp-content/plugins/kama-wp-smile-packs’ and add your folder with smiles images.
- ADD: All code translated to english and ru_RU localisation was added…
- IMP: fixed vulnerabilities in code
- CHG: rename main functions: kama_sm_get_smiles_code() to kws_get_smiles_html(), km_convert_smilies() to kws_convert_smiles(). If you use this functions in your theme you need to fix your code.
- FIX: some minor fixes
- FIX: plugin uninstall
1.8.1
- FIX: unused option ‘not_insert’ deleted. It hides smiles on update…
- ADD: Option to set prefix and suffix for smile code. Now you can change: (:smile:) to smile
- CNG: Split main class to Kama_WP_Smiles{} and Kama_WP_Smiles_Admin{}
1.8.0
- CHANGE: smile wrapper tag was
*name*
become(:smile:)
in order to correctly work with markdown. - IMPROVE: regex improvements and now find/replace smiles to Img more then 50 times faster.
1.7.3 (18.06.2015)
- FIX: some refactoring. And bugfix with ‘;)’ (wink smile) when special char like end with ‘)’ we got ) where ‘;)’ was replaced by smile.
1.7.1 (11.05.2015)
- FIX: add “kws-wrapper” css class to front-end comment smiles block in order to change styles of the block out of admin settings page.
1.6.9 (8.05.2015)
- ADD: ability to sort order of smiles. So, you can set order of how smiles will be shown in block..
1.6.8 (5.05.2015)
- CHANGE: CSS styles changes. Now only additional css saves into DB and default options uses everywhere.
1.6.7 (5.5.2015)
- FIX: Adaptation to Emoji icons added in WP 4.2
1.6.6.1 (6.09.2014)
- Adaptation to WP 4.0
1.6.0 (24.01.2014)
- Images in smile block now is not image and not downloading with page. It save HTML requests.
- Now select used smiles in admin panel more comfortable.
- New principle to add smile block to comment form.
- CSS styles and JS scripts now adding direct to HTML document. It save HTML requests.
- Added smile block in admin panel.
- On uninstall, plugin will remove all it settings and smiles code strings from posts and comments content.
- Improve plugin PHP code.
1.5.0
- Add ability to specify exceptions tags in which plugin wiil not replace smile sode to smile image.