Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 3e7ea47d24107f2df52bac57935f34c784efdd67 @NoahY committed Aug 24, 2011
Showing with 287 additions and 0 deletions.
  1. +53 −0 README.rst
  2. BIN images/emoticon-00100-smile.gif
  3. BIN images/emoticon-00100-smile.png
  4. BIN images/emoticon-00101-sadsmile.gif
  5. BIN images/emoticon-00101-sadsmile.png
  6. BIN images/emoticon-00102-bigsmile.gif
  7. BIN images/emoticon-00102-bigsmile.png
  8. BIN images/emoticon-00103-cool.gif
  9. BIN images/emoticon-00103-cool.png
  10. BIN images/emoticon-00105-wink.gif
  11. BIN images/emoticon-00105-wink.png
  12. BIN images/emoticon-00106-crying.gif
  13. BIN images/emoticon-00106-crying.png
  14. BIN images/emoticon-00107-sweating.gif
  15. BIN images/emoticon-00107-sweating.png
  16. BIN images/emoticon-00108-speechless.gif
  17. BIN images/emoticon-00108-speechless.png
  18. BIN images/emoticon-00109-kiss.gif
  19. BIN images/emoticon-00109-kiss.png
  20. BIN images/emoticon-00110-tongueout.gif
  21. BIN images/emoticon-00110-tongueout.png
  22. BIN images/emoticon-00111-blush.gif
  23. BIN images/emoticon-00111-blush.png
  24. BIN images/emoticon-00112-wondering.gif
  25. BIN images/emoticon-00112-wondering.png
  26. BIN images/emoticon-00113-sleepy.gif
  27. BIN images/emoticon-00113-sleepy.png
  28. BIN images/emoticon-00114-dull.gif
  29. BIN images/emoticon-00114-dull.png
  30. BIN images/emoticon-00115-inlove.gif
  31. BIN images/emoticon-00115-inlove.png
  32. BIN images/emoticon-00116-evilgrin.gif
  33. BIN images/emoticon-00116-evilgrin.png
  34. BIN images/emoticon-00117-talking.gif
  35. BIN images/emoticon-00117-talking.png
  36. BIN images/emoticon-00118-yawn.gif
  37. BIN images/emoticon-00118-yawn.png
  38. BIN images/emoticon-00119-puke.gif
  39. BIN images/emoticon-00119-puke.png
  40. BIN images/emoticon-00120-doh.gif
  41. BIN images/emoticon-00120-doh.png
  42. BIN images/emoticon-00121-angry.gif
  43. BIN images/emoticon-00121-angry.png
  44. BIN images/emoticon-00122-itwasntme.gif
  45. BIN images/emoticon-00122-itwasntme.png
  46. BIN images/emoticon-00123-party.gif
  47. BIN images/emoticon-00123-party.png
  48. BIN images/emoticon-00124-worried.gif
  49. BIN images/emoticon-00124-worried.png
  50. BIN images/emoticon-00125-mmm.gif
  51. BIN images/emoticon-00125-mmm.png
  52. BIN images/emoticon-00126-nerd.gif
  53. BIN images/emoticon-00126-nerd.png
  54. BIN images/emoticon-00127-lipssealed.gif
  55. BIN images/emoticon-00127-lipssealed.png
  56. BIN images/emoticon-00128-hi.gif
  57. BIN images/emoticon-00128-hi.png
  58. BIN images/emoticon-00129-call.gif
  59. BIN images/emoticon-00129-call.png
  60. BIN images/emoticon-00130-devil.gif
  61. BIN images/emoticon-00130-devil.png
  62. BIN images/emoticon-00131-angel.gif
  63. BIN images/emoticon-00131-angel.png
  64. BIN images/emoticon-00132-envy.gif
  65. BIN images/emoticon-00132-envy.png
  66. BIN images/emoticon-00133-wait.gif
  67. BIN images/emoticon-00133-wait.png
  68. BIN images/emoticon-00134-bear.gif
  69. BIN images/emoticon-00134-bear.png
  70. BIN images/emoticon-00135-makeup.gif
  71. BIN images/emoticon-00135-makeup.png
  72. BIN images/emoticon-00136-giggle.gif
  73. BIN images/emoticon-00136-giggle.png
  74. BIN images/emoticon-00137-clapping.gif
  75. BIN images/emoticon-00137-clapping.png
  76. BIN images/emoticon-00138-thinking.gif
  77. BIN images/emoticon-00138-thinking.png
  78. BIN images/emoticon-00139-bow.gif
  79. BIN images/emoticon-00139-bow.png
  80. BIN images/emoticon-00140-rofl.gif
  81. BIN images/emoticon-00140-rofl.png
  82. BIN images/emoticon-00141-whew.gif
  83. BIN images/emoticon-00141-whew.png
  84. BIN images/emoticon-00142-happy.gif
  85. BIN images/emoticon-00142-happy.png
  86. BIN images/emoticon-00143-smirk.gif
  87. BIN images/emoticon-00143-smirk.png
  88. BIN images/emoticon-00144-nod.gif
  89. BIN images/emoticon-00144-nod.png
  90. BIN images/emoticon-00145-shake.gif
  91. BIN images/emoticon-00145-shake.png
  92. BIN images/emoticon-00146-punch.gif
  93. BIN images/emoticon-00146-punch.png
  94. BIN images/emoticon-00147-emo.gif
  95. BIN images/emoticon-00147-emo.png
  96. BIN images/emoticon-00148-yes.gif
  97. BIN images/emoticon-00148-yes.png
  98. BIN images/emoticon-00149-no.gif
  99. BIN images/emoticon-00149-no.png
  100. BIN images/emoticon-00150-handshake.gif
  101. BIN images/emoticon-00150-handshake.png
  102. BIN images/emoticon-00151-skype.gif
  103. BIN images/emoticon-00151-skype.png
  104. BIN images/emoticon-00152-heart.gif
  105. BIN images/emoticon-00152-heart.png
  106. BIN images/emoticon-00153-brokenheart.gif
  107. BIN images/emoticon-00153-brokenheart.png
  108. BIN images/emoticon-00154-mail.gif
  109. BIN images/emoticon-00154-mail.png
  110. BIN images/emoticon-00155-flower.gif
  111. BIN images/emoticon-00155-flower.png
  112. BIN images/emoticon-00156-rain.gif
  113. BIN images/emoticon-00156-rain.png
  114. BIN images/emoticon-00157-sun.gif
  115. BIN images/emoticon-00157-sun.png
  116. BIN images/emoticon-00158-time.gif
  117. BIN images/emoticon-00158-time.png
  118. BIN images/emoticon-00159-music.gif
  119. BIN images/emoticon-00159-music.png
  120. BIN images/emoticon-00160-movie.gif
  121. BIN images/emoticon-00160-movie.png
  122. BIN images/emoticon-00161-phone.gif
  123. BIN images/emoticon-00161-phone.png
  124. BIN images/emoticon-00162-coffee.gif
  125. BIN images/emoticon-00162-coffee.png
  126. BIN images/emoticon-00163-pizza.gif
  127. BIN images/emoticon-00163-pizza.png
  128. BIN images/emoticon-00164-cash.gif
  129. BIN images/emoticon-00164-cash.png
  130. BIN images/emoticon-00165-muscle.gif
  131. BIN images/emoticon-00165-muscle.png
  132. BIN images/emoticon-00166-cake.gif
  133. BIN images/emoticon-00166-cake.png
  134. BIN images/emoticon-00167-beer.gif
  135. BIN images/emoticon-00167-beer.png
  136. BIN images/emoticon-00168-drink.gif
  137. BIN images/emoticon-00168-drink.png
  138. BIN images/emoticon-00169-dance.gif
  139. BIN images/emoticon-00169-dance.png
  140. BIN images/emoticon-00170-ninja.gif
  141. BIN images/emoticon-00170-ninja.png
  142. BIN images/emoticon-00171-star.gif
  143. BIN images/emoticon-00171-star.png
  144. BIN images/emoticon-00172-mooning.gif
  145. BIN images/emoticon-00172-mooning.png
  146. BIN images/emoticon-00173-middlefinger.gif
  147. BIN images/emoticon-00173-middlefinger.png
  148. BIN images/emoticon-00174-bandit.gif
  149. BIN images/emoticon-00174-bandit.png
  150. BIN images/emoticon-00175-drunk.gif
  151. BIN images/emoticon-00175-drunk.png
  152. BIN images/emoticon-00176-smoke.gif
  153. BIN images/emoticon-00176-smoke.png
  154. BIN images/emoticon-00177-toivo.gif
  155. BIN images/emoticon-00177-toivo.png
  156. BIN images/emoticon-00178-rock.gif
  157. BIN images/emoticon-00178-rock.png
  158. BIN images/emoticon-00179-headbang.gif
  159. BIN images/emoticon-00179-headbang.png
  160. BIN images/emoticon-00180-bug.gif
  161. BIN images/emoticon-00180-bug.png
  162. BIN images/emoticon-00181-fubar.gif
  163. BIN images/emoticon-00181-fubar.png
  164. BIN images/emoticon-00182-poolparty.gif
  165. BIN images/emoticon-00182-poolparty.png
  166. BIN images/emoticon-00183-swear.gif
  167. BIN images/emoticon-00183-swear.png
  168. BIN images/emoticon-00184-tmi.gif
  169. BIN images/emoticon-00184-tmi.png
  170. BIN images/emoticon-00185-heidy.gif
  171. BIN images/emoticon-00185-heidy.png
  172. BIN images/facepalm.png
  173. BIN images/fingerscrossed.png
  174. BIN images/highfive.png
  175. BIN images/lalala.png
  176. BIN images/tumbleweed.png
  177. BIN images/waiting.png
  178. BIN images/wfh.png
  179. +30 −0 qa-plugin.php
  180. +69 −0 qa-smilies-admin.php
  181. +135 −0 qa-smilies-layer.php
53 README.rst
@@ -0,0 +1,53 @@
+===========================
+Question2Answer Smilies 1.0b
+===========================
+-----------
+Description
+-----------
+This is a plugin for **Question2Answer** that provides smilies.
+
+--------
+Features
+--------
+- 92 smiley types
+- almost all have both animated (gif) and static (png) versions
+- select static or animated version in admin panel
+
+
+------------
+Installation
+------------
+#. Install Question2Answer_
+#. Get the source code for this plugin from github_, either using git_, or downloading directly:
+
+ - To download using git, install git and then type
+ ``git clone git://github.com/NoahY/q2a-smilies.git smilies``
+ at the command prompt (on Linux, Windows is a bit different)
+ - To download directly, go to the `project page`_ and click **Download**
+
+#. navigate to your site, go to **Admin -> Plugins** on your q2a install and select the '**Enable smiley embedding**' option, then '**Save**'.
+
+.. _Question2Answer: http://www.question2answer.org/install.php
+.. _git: http://git-scm.com/
+.. _github:
+.. _project page: https://github.com/NoahY/q2a-smilies
+
+----------
+Disclaimer
+----------
+This is **beta** code. It is probably okay for production environments, but may not work exactly as expected. Refunds will not be given. If it breaks, you get to keep both parts.
+
+-------
+Release
+-------
+All code herein is Copylefted_.
+
+.. _Copylefted: http://en.wikipedia.org/wiki/Copyleft
+
+---------
+About q2A
+---------
+Question2Answer is a free and open source platform for Q&A sites. For more information, visit:
+
+http://www.question2answer.org/
+
BIN images/emoticon-00100-smile.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00100-smile.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00101-sadsmile.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00101-sadsmile.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00102-bigsmile.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00102-bigsmile.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00103-cool.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00103-cool.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00105-wink.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00105-wink.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00106-crying.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00106-crying.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00107-sweating.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00107-sweating.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00108-speechless.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00108-speechless.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00109-kiss.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00109-kiss.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00110-tongueout.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00110-tongueout.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00111-blush.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00111-blush.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00112-wondering.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00112-wondering.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00113-sleepy.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN images/emoticon-00113-sleepy.png
Diff not rendered.
BIN images/emoticon-00114-dull.gif
Diff not rendered.
BIN images/emoticon-00114-dull.png
Diff not rendered.
BIN images/emoticon-00115-inlove.gif
Diff not rendered.
BIN images/emoticon-00115-inlove.png
Diff not rendered.
BIN images/emoticon-00116-evilgrin.gif
Diff not rendered.
BIN images/emoticon-00116-evilgrin.png
Diff not rendered.
BIN images/emoticon-00117-talking.gif
Diff not rendered.
BIN images/emoticon-00117-talking.png
Diff not rendered.
BIN images/emoticon-00118-yawn.gif
Diff not rendered.
BIN images/emoticon-00118-yawn.png
Diff not rendered.
BIN images/emoticon-00119-puke.gif
Diff not rendered.
BIN images/emoticon-00119-puke.png
Diff not rendered.
BIN images/emoticon-00120-doh.gif
Diff not rendered.
BIN images/emoticon-00120-doh.png
Diff not rendered.
BIN images/emoticon-00121-angry.gif
Diff not rendered.
BIN images/emoticon-00121-angry.png
Diff not rendered.
BIN images/emoticon-00122-itwasntme.gif
Diff not rendered.
BIN images/emoticon-00122-itwasntme.png
Diff not rendered.
BIN images/emoticon-00123-party.gif
Diff not rendered.
BIN images/emoticon-00123-party.png
Diff not rendered.
BIN images/emoticon-00124-worried.gif
Diff not rendered.
BIN images/emoticon-00124-worried.png
Diff not rendered.
BIN images/emoticon-00125-mmm.gif
Diff not rendered.
BIN images/emoticon-00125-mmm.png
Diff not rendered.
BIN images/emoticon-00126-nerd.gif
Diff not rendered.
BIN images/emoticon-00126-nerd.png
Diff not rendered.
BIN images/emoticon-00127-lipssealed.gif
Diff not rendered.
BIN images/emoticon-00127-lipssealed.png
Diff not rendered.
BIN images/emoticon-00128-hi.gif
Diff not rendered.
BIN images/emoticon-00128-hi.png
Diff not rendered.
BIN images/emoticon-00129-call.gif
Diff not rendered.
BIN images/emoticon-00129-call.png
Diff not rendered.
BIN images/emoticon-00130-devil.gif
Diff not rendered.
BIN images/emoticon-00130-devil.png
Diff not rendered.
BIN images/emoticon-00131-angel.gif
Diff not rendered.
BIN images/emoticon-00131-angel.png
Diff not rendered.
BIN images/emoticon-00132-envy.gif
Diff not rendered.
BIN images/emoticon-00132-envy.png
Diff not rendered.
BIN images/emoticon-00133-wait.gif
Diff not rendered.
BIN images/emoticon-00133-wait.png
Diff not rendered.
BIN images/emoticon-00134-bear.gif
Diff not rendered.
BIN images/emoticon-00134-bear.png
Diff not rendered.
BIN images/emoticon-00135-makeup.gif
Diff not rendered.
BIN images/emoticon-00135-makeup.png
Diff not rendered.
BIN images/emoticon-00136-giggle.gif
Diff not rendered.
BIN images/emoticon-00136-giggle.png
Diff not rendered.
BIN images/emoticon-00137-clapping.gif
Diff not rendered.
BIN images/emoticon-00137-clapping.png
Diff not rendered.
BIN images/emoticon-00138-thinking.gif
Diff not rendered.
BIN images/emoticon-00138-thinking.png
Diff not rendered.
BIN images/emoticon-00139-bow.gif
Diff not rendered.
BIN images/emoticon-00139-bow.png
Diff not rendered.
BIN images/emoticon-00140-rofl.gif
Diff not rendered.
BIN images/emoticon-00140-rofl.png
Diff not rendered.
BIN images/emoticon-00141-whew.gif
Diff not rendered.
BIN images/emoticon-00141-whew.png
Diff not rendered.
BIN images/emoticon-00142-happy.gif
Diff not rendered.
BIN images/emoticon-00142-happy.png
Diff not rendered.
BIN images/emoticon-00143-smirk.gif
Diff not rendered.
BIN images/emoticon-00143-smirk.png
Diff not rendered.
BIN images/emoticon-00144-nod.gif
Diff not rendered.
BIN images/emoticon-00144-nod.png
Diff not rendered.
BIN images/emoticon-00145-shake.gif
Diff not rendered.
BIN images/emoticon-00145-shake.png
Diff not rendered.
BIN images/emoticon-00146-punch.gif
Diff not rendered.
BIN images/emoticon-00146-punch.png
Diff not rendered.
BIN images/emoticon-00147-emo.gif
Diff not rendered.
BIN images/emoticon-00147-emo.png
Diff not rendered.
BIN images/emoticon-00148-yes.gif
Diff not rendered.
BIN images/emoticon-00148-yes.png
Diff not rendered.
BIN images/emoticon-00149-no.gif
Diff not rendered.
BIN images/emoticon-00149-no.png
Diff not rendered.
BIN images/emoticon-00150-handshake.gif
Diff not rendered.
BIN images/emoticon-00150-handshake.png
Diff not rendered.
BIN images/emoticon-00151-skype.gif
Diff not rendered.
BIN images/emoticon-00151-skype.png
Diff not rendered.
BIN images/emoticon-00152-heart.gif
Diff not rendered.
BIN images/emoticon-00152-heart.png
Diff not rendered.
BIN images/emoticon-00153-brokenheart.gif
Diff not rendered.
BIN images/emoticon-00153-brokenheart.png
Diff not rendered.
BIN images/emoticon-00154-mail.gif
Diff not rendered.
BIN images/emoticon-00154-mail.png
Diff not rendered.
BIN images/emoticon-00155-flower.gif
Diff not rendered.
BIN images/emoticon-00155-flower.png
Diff not rendered.
BIN images/emoticon-00156-rain.gif
Diff not rendered.
BIN images/emoticon-00156-rain.png
Diff not rendered.
BIN images/emoticon-00157-sun.gif
Diff not rendered.
BIN images/emoticon-00157-sun.png
Diff not rendered.
BIN images/emoticon-00158-time.gif
Diff not rendered.
BIN images/emoticon-00158-time.png
Diff not rendered.
BIN images/emoticon-00159-music.gif
Diff not rendered.
BIN images/emoticon-00159-music.png
Diff not rendered.
BIN images/emoticon-00160-movie.gif
Diff not rendered.
BIN images/emoticon-00160-movie.png
Diff not rendered.
BIN images/emoticon-00161-phone.gif
Diff not rendered.
BIN images/emoticon-00161-phone.png
Diff not rendered.
BIN images/emoticon-00162-coffee.gif
Diff not rendered.
BIN images/emoticon-00162-coffee.png
Diff not rendered.
BIN images/emoticon-00163-pizza.gif
Diff not rendered.
BIN images/emoticon-00163-pizza.png
Diff not rendered.
BIN images/emoticon-00164-cash.gif
Diff not rendered.
BIN images/emoticon-00164-cash.png
Diff not rendered.
BIN images/emoticon-00165-muscle.gif
Diff not rendered.
BIN images/emoticon-00165-muscle.png
Diff not rendered.
BIN images/emoticon-00166-cake.gif
Diff not rendered.
BIN images/emoticon-00166-cake.png
Diff not rendered.
BIN images/emoticon-00167-beer.gif
Diff not rendered.
BIN images/emoticon-00167-beer.png
Diff not rendered.
BIN images/emoticon-00168-drink.gif
Diff not rendered.
BIN images/emoticon-00168-drink.png
Diff not rendered.
BIN images/emoticon-00169-dance.gif
Diff not rendered.
BIN images/emoticon-00169-dance.png
Diff not rendered.
BIN images/emoticon-00170-ninja.gif
Diff not rendered.
BIN images/emoticon-00170-ninja.png
Diff not rendered.
BIN images/emoticon-00171-star.gif
Diff not rendered.
BIN images/emoticon-00171-star.png
Diff not rendered.
BIN images/emoticon-00172-mooning.gif
Diff not rendered.
BIN images/emoticon-00172-mooning.png
Diff not rendered.
BIN images/emoticon-00173-middlefinger.gif
Diff not rendered.
BIN images/emoticon-00173-middlefinger.png
Diff not rendered.
BIN images/emoticon-00174-bandit.gif
Diff not rendered.
BIN images/emoticon-00174-bandit.png
Diff not rendered.
BIN images/emoticon-00175-drunk.gif
Diff not rendered.
BIN images/emoticon-00175-drunk.png
Diff not rendered.
BIN images/emoticon-00176-smoke.gif
Diff not rendered.
BIN images/emoticon-00176-smoke.png
Diff not rendered.
BIN images/emoticon-00177-toivo.gif
Diff not rendered.
BIN images/emoticon-00177-toivo.png
Diff not rendered.
BIN images/emoticon-00178-rock.gif
Diff not rendered.
BIN images/emoticon-00178-rock.png
Diff not rendered.
BIN images/emoticon-00179-headbang.gif
Diff not rendered.
BIN images/emoticon-00179-headbang.png
Diff not rendered.
BIN images/emoticon-00180-bug.gif
Diff not rendered.
BIN images/emoticon-00180-bug.png
Diff not rendered.
BIN images/emoticon-00181-fubar.gif
Diff not rendered.
BIN images/emoticon-00181-fubar.png
Diff not rendered.
BIN images/emoticon-00182-poolparty.gif
Diff not rendered.
BIN images/emoticon-00182-poolparty.png
Diff not rendered.
BIN images/emoticon-00183-swear.gif
Diff not rendered.
BIN images/emoticon-00183-swear.png
Diff not rendered.
BIN images/emoticon-00184-tmi.gif
Diff not rendered.
BIN images/emoticon-00184-tmi.png
Diff not rendered.
BIN images/emoticon-00185-heidy.gif
Diff not rendered.
BIN images/emoticon-00185-heidy.png
Diff not rendered.
BIN images/facepalm.png
Diff not rendered.
BIN images/fingerscrossed.png
Diff not rendered.
BIN images/highfive.png
Diff not rendered.
BIN images/lalala.png
Diff not rendered.
BIN images/tumbleweed.png
Diff not rendered.
BIN images/waiting.png
Diff not rendered.
BIN images/wfh.png
Diff not rendered.
30 qa-plugin.php
@@ -0,0 +1,30 @@
+<?php
+
+/*
+ Plugin Name: Smilies
+ Plugin URI: https://github.com/NoahY/q2a-smilies
+ Plugin Description: Embed Smilies
+ Plugin Version: 0.1
+ Plugin Date: 2011-08-24
+ Plugin Author: NoahY
+ Plugin Author URI:
+ Plugin License: GPLv2
+ Plugin Minimum Question2Answer Version: 1.3
+*/
+
+
+ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly from browser
+ header('Location: ../../');
+ exit;
+ }
+
+ qa_register_plugin_module('module', 'qa-smilies-admin.php', 'qa_smilies_admin', 'Smilies Admin');
+
+ qa_register_plugin_layer('qa-smilies-layer.php', 'Smilies Replacement Layer');
+
+
+/*
+ Omit PHP closing tag to help avoid accidental output
+*/
+
+
69 qa-smilies-admin.php
@@ -0,0 +1,69 @@
+<?php
+ class qa_smilies_admin {
+
+ function option_default($option) {
+
+ switch($option) {
+ default:
+ return null;
+ }
+
+ }
+
+ function allow_template($template)
+ {
+ return ($template!='admin');
+ }
+
+ function admin_form(&$qa_content)
+ {
+
+ // Process form input
+
+ $ok = null;
+
+ if (qa_clicked('smilies_save')) {
+ qa_opt('embed_smileys',(bool)qa_post_text('embed_smileys'));
+ qa_opt('embed_smileys_animated',(bool)qa_post_text('embed_smileys_animated'));
+ $ok = 'Settings Saved.';
+ }
+
+ qa_set_display_rules($qa_content, array(
+ 'embed_smileys_animated' => 'embed_smileys',
+ ));
+
+ // Create the form for display
+
+
+ $fields = array();
+
+ $fields[] = array(
+ 'label' => 'Enable smiley embedding',
+ 'tags' => 'NAME="embed_smileys"',
+ 'value' => qa_opt('embed_smileys'),
+ 'type' => 'checkbox',
+ );
+
+ $fields[] = array(
+ 'label' => 'Use animated smilies where available',
+ 'tags' => 'NAME="embed_smileys_animated"',
+ 'value' => qa_opt('embed_smileys_animated'),
+ 'type' => 'checkbox',
+ 'note' => 'For a complete list of smilies, visit <a href="http://www.skype-emoticons.com/">this page</a>.',
+ );
+
+ return array(
+ 'ok' => ($ok && !isset($error)) ? $ok : null,
+
+ 'fields' => $fields,
+
+ 'buttons' => array(
+ array(
+ 'label' => 'Save',
+ 'tags' => 'NAME="smilies_save"',
+ )
+ ),
+ );
+ }
+ }
+
135 qa-smilies-layer.php
@@ -0,0 +1,135 @@
+<?php
+
+ class qa_html_theme_layer extends qa_html_theme_base {
+
+ // theme replacement functions
+
+ function q_view_content($q_view)
+ {
+ if (qa_opt('embed_smileys') && isset($q_view['content'])){
+ $q_view['content'] = $this->embed_replace($q_view['content']);
+ }
+ qa_html_theme_base::q_view_content($q_view);
+ }
+ function a_item_content($a_item)
+ {
+ if (qa_opt('embed_smileys') && isset($a_item['content'])) {
+ $a_item['content'] = $this->embed_replace($a_item['content']);
+ }
+ qa_html_theme_base::a_item_content($a_item);
+ }
+ function c_item_content($c_item)
+ {
+ if (qa_opt('embed_smileys') && isset($c_item['content'])) {
+ $c_item['content'] = $this->embed_replace($c_item['content']);
+ }
+ qa_html_theme_base::c_item_content($c_item);
+ }
+
+ function embed_replace($text) {
+
+
+ foreach($this->smilies as $t => $r) {
+ $url = (qa_opt('embed_smileys_animated')?$r['animated']:$r['static']);
+ $text = str_replace($t,'<img src="'.QA_HTML_THEME_LAYER_URLTOROOT.$url.'"/>',$text);
+ }
+
+ return $text;
+ }
+
+ var $smilies = array(
+ '(finger)' => array('name'=>'Finger','static'=>'images/emoticon-00173-middlefinger.png','animated'=>'images/emoticon-00173-middlefinger.gif'),
+ '(bandit)' => array('name'=>'Bandit','static'=>'images/emoticon-00174-bandit.png','animated'=>'images/emoticon-00174-bandit.gif'),
+ '(drunk)' => array('name'=>'Drunk','static'=>'images/emoticon-00175-drunk.png','animated'=>'images/emoticon-00175-drunk.gif'),
+ '(smoking)' => array('name'=>'Smoking','static'=>'images/emoticon-00176-smoke.png','animated'=>'images/emoticon-00176-smoke.gif'),
+ '(toivo)' => array('name'=>'Toivo','static'=>'images/emoticon-00177-toivo.png','animated'=>'images/emoticon-00177-toivo.gif'),
+ '(rock)' => array('name'=>'Rock','static'=>'images/emoticon-00178-rock.png','animated'=>'images/emoticon-00178-rock.gif'),
+ '(headbang)' => array('name'=>'Headbang','static'=>'images/emoticon-00179-headbang.png','animated'=>'images/emoticon-00179-headbang.gif'),
+ '(bug)' => array('name'=>'Bug','static'=>'images/emoticon-00180-bug.png','animated'=>'images/emoticon-00180-bug.gif'),
+ '(fubar)' => array('name'=>'Fubar','static'=>'images/emoticon-00181-fubar.png','animated'=>'images/emoticon-00181-fubar.gif'),
+ '(poolparty)' => array('name'=>'Poolparty','static'=>'images/emoticon-00182-poolparty.png','animated'=>'images/emoticon-00182-poolparty.gif'),
+ '(swear)' => array('name'=>'Swearing','static'=>'images/emoticon-00183-swear.png','animated'=>'images/emoticon-00183-swear.gif'),
+ '(tmi)' => array('name'=>'TMI','static'=>'images/emoticon-00184-tmi.png','animated'=>'images/emoticon-00184-tmi.gif'),
+ '(heidy)' => array('name'=>'Heidy','static'=>'images/emoticon-00185-heidy.png','animated'=>'images/emoticon-00185-heidy.gif'),
+ '(mooning)' => array('name'=>'Mooning','static'=>'images/emoticon-00172-mooning.png','animated'=>'images/emoticon-00172-mooning.gif'),
+ '(highfive)' => array('name'=>'High Five','static'=>'images/highfive.png','animated'=>'images/highfive.png'),
+ '(Facepalm)' => array('name'=>'Face Palm','static'=>'images/facepalm.png','animated'=>'images/facepalm.png'),
+ '(fingers)' => array('name'=>'Fingers Crossed','static'=>'images/fingerscrossed.png','animated'=>'images/fingerscrossed.png'),
+ '(lalala)' => array('name'=>'Lalala','static'=>'images/lalala.png','animated'=>'images/lalala.png'),
+ '(waiting)' => array('name'=>'Waiting','static'=>'images/waiting.png','animated'=>'images/waiting.png'),
+ '(tumbleweed)' => array('name'=>'Tumbleweed','static'=>'images/tumbleweed.png','animated'=>'images/tumbleweed.png'),
+ '(wfh)' => array('name'=>'Working From Home','static'=>'images/wfh.png','animated'=>'images/wfh.png'),
+ ':)' => array('name'=>'Smile','static'=>'images/emoticon-00100-smile.png','animated'=>'images/emoticon-00100-smile.gif'),
+ ':(' => array('name'=>'Sad Smile','static'=>'images/emoticon-00101-sadsmile.png','animated'=>'images/emoticon-00101-sadsmile.gif'),
+ ':D' => array('name'=>'Big Smile','static'=>'images/emoticon-00102-bigsmile.png','animated'=>'images/emoticon-00102-bigsmile.gif'),
+ '8)' => array('name'=>'Cool','static'=>'images/emoticon-00103-cool.png','animated'=>'images/emoticon-00103-cool.gif'),
+ ':o' => array('name'=>'Wink','static'=>'images/emoticon-00105-wink.png','animated'=>'images/emoticon-00105-wink.gif'),
+ ';(' => array('name'=>'Crying','static'=>'images/emoticon-00106-crying.png','animated'=>'images/emoticon-00106-crying.gif'),
+ '(sweat)' => array('name'=>'Sweating','static'=>'images/emoticon-00107-sweating.png','animated'=>'images/emoticon-00107-sweating.gif'),
+ ':|' => array('name'=>'Speechless','static'=>'images/emoticon-00108-speechless.png','animated'=>'images/emoticon-00108-speechless.gif'),
+ ':*' => array('name'=>'Kiss','static'=>'images/emoticon-00109-kiss.png','animated'=>'images/emoticon-00109-kiss.gif'),
+ ':P' => array('name'=>'Tongue Out','static'=>'images/emoticon-00110-tongueout.png','animated'=>'images/emoticon-00110-tongueout.gif'),
+ '(blush)' => array('name'=>'Blush','static'=>'images/emoticon-00111-blush.png','animated'=>'images/emoticon-00111-blush.gif'),
+ ':^)' => array('name'=>'Wondering','static'=>'images/emoticon-00112-wondering.png','animated'=>'images/emoticon-00112-wondering.gif'),
+ '|-)' => array('name'=>'Sleepy','static'=>'images/emoticon-00113-sleepy.png','animated'=>'images/emoticon-00113-sleepy.gif'),
+ '|(' => array('name'=>'Dull','static'=>'images/emoticon-00114-dull.png','animated'=>'images/emoticon-00114-dull.gif'),
+ '(inlove)' => array('name'=>'In love','static'=>'images/emoticon-00115-inlove.png','animated'=>'images/emoticon-00115-inlove.gif'),
+ ']:)' => array('name'=>'Evil grin','static'=>'images/emoticon-00116-evilgrin.png','animated'=>'images/emoticon-00116-evilgrin.gif'),
+ '(talk)' => array('name'=>'Talking','static'=>'images/emoticon-00117-talking.png','animated'=>'images/emoticon-00117-talking.gif'),
+ '(yawn)' => array('name'=>'Yawn','static'=>'images/emoticon-00118-yawn.png','animated'=>'images/emoticon-00118-yawn.gif'),
+ '(puke)' => array('name'=>'Puke','static'=>'images/emoticon-00119-puke.png','animated'=>'images/emoticon-00119-puke.gif'),
+ '(doh)' => array('name'=>'Doh!','static'=>'images/emoticon-00120-doh.png','animated'=>'images/emoticon-00120-doh.gif'),
+ ':@' => array('name'=>'Angry','static'=>'images/emoticon-00121-angry.png','animated'=>'images/emoticon-00121-angry.gif'),
+ '(wasntme)' => array('name'=>'It wasn\'t me','static'=>'images/emoticon-00122-itwasntme.png','animated'=>'images/emoticon-00122-itwasntme.gif'),
+ '(party)' => array('name'=>'Party!!!','static'=>'images/emoticon-00123-party.png','animated'=>'images/emoticon-00123-party.gif'),
+ ':S' => array('name'=>'Worried','static'=>'images/emoticon-00124-worried.png','animated'=>'images/emoticon-00124-worried.gif'),
+ '(mm)' => array('name'=>'Mmm...','static'=>'images/emoticon-00125-mmm.png','animated'=>'images/emoticon-00125-mmm.gif'),
+ '8-|' => array('name'=>'Nerd','static'=>'images/emoticon-00126-nerd.png','animated'=>'images/emoticon-00126-nerd.gif'),
+ ':x' => array('name'=>'Lips Sealed','static'=>'images/emoticon-00127-lipssealed.png','animated'=>'images/emoticon-00127-lipssealed.gif'),
+ '(hi)' => array('name'=>'Hi','static'=>'images/emoticon-00128-hi.png','animated'=>'images/emoticon-00128-hi.gif'),
+ '(call)' => array('name'=>'Call','static'=>'images/emoticon-00129-call.png','animated'=>'images/emoticon-00129-call.gif'),
+ '(devil)' => array('name'=>'Devil','static'=>'images/emoticon-00130-devil.png','animated'=>'images/emoticon-00130-devil.gif'),
+ '(angel)' => array('name'=>'Angel','static'=>'images/emoticon-00131-angel.png','animated'=>'images/emoticon-00131-angel.gif'),
+ '(envy)' => array('name'=>'Envy','static'=>'images/emoticon-00132-envy.png','animated'=>'images/emoticon-00132-envy.gif'),
+ '(wait)' => array('name'=>'Wait','static'=>'images/emoticon-00133-wait.png','animated'=>'images/emoticon-00133-wait.gif'),
+ '(bear)' => array('name'=>'Bear','static'=>'images/emoticon-00134-bear.png','animated'=>'images/emoticon-00134-bear.gif'),
+ '(makeup)' => array('name'=>'Make-up','static'=>'images/emoticon-00135-makeup.png','animated'=>'images/emoticon-00135-makeup.gif'),
+ '(giggle)' => array('name'=>'Covered Laugh','static'=>'images/emoticon-00136-giggle.png','animated'=>'images/emoticon-00136-giggle.gif'),
+ '(clap)' => array('name'=>'Clapping Hands','static'=>'images/emoticon-00137-clapping.png','animated'=>'images/emoticon-00137-clapping.gif'),
+ '(think)' => array('name'=>'Thinking','static'=>'images/emoticon-00138-thinking.png','animated'=>'images/emoticon-00138-thinking.gif'),
+ '(bow)' => array('name'=>'Bow','static'=>'images/emoticon-00139-bow.png','animated'=>'images/emoticon-00139-bow.gif'),
+ '(rofl)' => array('name'=>'Rolling on the floor laughing','static'=>'images/emoticon-00140-rofl.png','animated'=>'images/emoticon-00140-rofl.gif'),
+ '(whew)' => array('name'=>'Whew','static'=>'images/emoticon-00141-whew.png','animated'=>'images/emoticon-00141-whew.gif'),
+ '(happy)' => array('name'=>'Happy','static'=>'images/emoticon-00142-happy.png','animated'=>'images/emoticon-00142-happy.gif'),
+ '(smirk)' => array('name'=>'Smirking','static'=>'images/emoticon-00143-smirk.png','animated'=>'images/emoticon-00143-smirk.gif'),
+ '(nod)' => array('name'=>'Nodding','static'=>'images/emoticon-00144-nod.png','animated'=>'images/emoticon-00144-nod.gif'),
+ '(shake)' => array('name'=>'Shaking','static'=>'images/emoticon-00145-shake.png','animated'=>'images/emoticon-00145-shake.gif'),
+ '(punch)' => array('name'=>'Punch','static'=>'images/emoticon-00146-punch.png','animated'=>'images/emoticon-00146-punch.gif'),
+ '(emo)' => array('name'=>'Emo','static'=>'images/emoticon-00147-emo.png','animated'=>'images/emoticon-00147-emo.gif'),
+ '(y)' => array('name'=>'Yes','static'=>'images/emoticon-00148-yes.png','animated'=>'images/emoticon-00148-yes.gif'),
+ '(n)' => array('name'=>'No','static'=>'images/emoticon-00149-no.png','animated'=>'images/emoticon-00149-no.gif'),
+ '(handshake)' => array('name'=>'Shaking Hands','static'=>'images/emoticon-00150-handshake.png','animated'=>'images/emoticon-00150-handshake.gif'),
+ '(skype)' => array('name'=>'Skype','static'=>'images/emoticon-00151-skype.png','animated'=>'images/emoticon-00151-skype.gif'),
+ '(h)' => array('name'=>'Heart','static'=>'images/emoticon-00152-heart.png','animated'=>'images/emoticon-00152-heart.gif'),
+ '(u)' => array('name'=>'Broken heart','static'=>'images/emoticon-00153-brokenheart.png','animated'=>'images/emoticon-00153-brokenheart.gif'),
+ '(e)' => array('name'=>'Mail','static'=>'images/emoticon-00154-mail.png','animated'=>'images/emoticon-00154-mail.gif'),
+ '(f)' => array('name'=>'Flower','static'=>'images/emoticon-00155-flower.png','animated'=>'images/emoticon-00155-flower.gif'),
+ '(rain)' => array('name'=>'Rain','static'=>'images/emoticon-00156-rain.png','animated'=>'images/emoticon-00156-rain.gif'),
+ '(sun)' => array('name'=>'Sun','static'=>'images/emoticon-00157-sun.png','animated'=>'images/emoticon-00157-sun.gif'),
+ '(o)' => array('name'=>'Time','static'=>'images/emoticon-00158-time.png','animated'=>'images/emoticon-00158-time.gif'),
+ '(music)' => array('name'=>'Music','static'=>'images/emoticon-00159-music.png','animated'=>'images/emoticon-00159-music.gif'),
+ '(~)' => array('name'=>'Movie','static'=>'images/emoticon-00160-movie.png','animated'=>'images/emoticon-00160-movie.gif'),
+ '(mp)' => array('name'=>'Phone','static'=>'images/emoticon-00161-phone.png','animated'=>'images/emoticon-00161-phone.gif'),
+ '(coffee)' => array('name'=>'Coffee','static'=>'images/emoticon-00162-coffee.png','animated'=>'images/emoticon-00162-coffee.gif'),
+ '(pizza)' => array('name'=>'Pizza','static'=>'images/emoticon-00163-pizza.png','animated'=>'images/emoticon-00163-pizza.gif'),
+ '(cash)' => array('name'=>'Cash','static'=>'images/emoticon-00164-cash.png','animated'=>'images/emoticon-00164-cash.gif'),
+ '(muscle)' => array('name'=>'Muscle','static'=>'images/emoticon-00165-muscle.png','animated'=>'images/emoticon-00165-muscle.gif'),
+ '(^)' => array('name'=>'Cake','static'=>'images/emoticon-00166-cake.png','animated'=>'images/emoticon-00166-cake.gif'),
+ '(beer)' => array('name'=>'Beer','static'=>'images/emoticon-00167-beer.png','animated'=>'images/emoticon-00167-beer.gif'),
+ '(d)' => array('name'=>'Drink','static'=>'images/emoticon-00168-drink.png','animated'=>'images/emoticon-00168-drink.gif'),
+ '(dance)' => array('name'=>'Dance','static'=>'images/emoticon-00169-dance.png','animated'=>'images/emoticon-00169-dance.gif'),
+ '(ninja)' => array('name'=>'Ninja','static'=>'images/emoticon-00170-ninja.png','animated'=>'images/emoticon-00170-ninja.gif'),
+ '(*)' => array('name'=>'Star','static'=>'images/emoticon-00171-star.png','animated'=>'images/emoticon-00171-star.gif')
+ );
+ }
+

0 comments on commit 3e7ea47

Please sign in to comment.