Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Smile: The new feature-rich Smiley-Extension
This discussion has been closed.
Comments
Any chance of changing it to /vanilla/extensions/Smile/tango/face-plain.png ?
Also, I've got some strange behaviour with the caret placement after inserting a smiley in IE6 (WinXP SP2). I'm not sure exactly, but it seems to shunt the caret forwards a few characters after the inserted smiley, instead of at the end of the smiley.
What are you using [-Stash-],
a Commodore 64?
We call it a cursor these days.
Posted: Tuesday, 20 February 2007 at 2:27PM (AEDT)
Liking this extension a lot, great work defel. I quite like it where it is, so if you are going to allow it to go above the comment box, please could you make it an option instead of just changing it?
Apparently it does not like the 25% attribute.
Later...
That's better.
Posted: Thursday, 22 February 2007 at 10:29AM (AEDT)
In default.php, I changed line 257 from:
if (in_array($Context->SelfUrl, array("post.php", "comments.php", "settings.php"))) {
To:
if (in_array($Context->SelfUrl, array("post.php", "comments.php", "settings.php")) && isset($Head)) {
Also, carrying on from Ares comment above (#17), if you have converted from Invision Power Board 2 (specifically, this is taken from 2.2), then save this next text as IPB2.2.txt and put all the default IPB emoticons into /Smile/IPB2.2/:
# smile :) :-) biggrin :D :biggrin: =D laugh :lol: :LOL: wub :wub: cool B) B-) tongue :P :-P :-p =P wink ;) ;-) happy ^_^ :happy: =) rolleyes :rolleyes: huh :huh: ohmy :o :O sad :( :-( angry :angry: :mad: >=[ >=( mellow :mellow: sleep -_- :sleep: dry <_< unsure :unsure: wacko :wacko: blink :blink: ph34r :ph34r: blush :blush: excl :!:
Or download the RAR
You can see these icons here.
Seems there are some problems with the # comments in that file, so please update to the corrected version above. Sorry for the cockup.
default.php
To get this to work with PreviewPost 2.2, I changed line 257 from:if (in_array($Context->SelfUrl, array("post.php", "comments.php", "settings.php"))) {
To:if (in_array($Context->SelfUrl, array("post.php", "comments.php", "settings.php")) && isset($Head)) {
To make it more valid HTML when you have more than one set of Smileys activated at the same time (it used to have 2 identically ID's DIVs), I changed line 261 from:
echo "<div id='smileyBox'>";
To:echo "<div class='smileySet'>";
And for my own semantic preference, I changed line 266 from:
echo sprintf('<span class=\'smileyBox\' title=\'%s\' alt=\'%s\' onclick="insertSmile(\'%s\')">', $smiley->key, $smiley->key, $smiley->aliases[0]);
To:echo sprintf('<span class=\'Smiley\' title=\'%s\' alt=\'%s\' onclick="insertSmile(\'%s\')">', $smiley->key, $smiley->key, $smiley->aliases[0]);
style.css
If you made the 2nd change above you will need to change the CSS file from:#smileyBox img { margin: 0 5px; }
To:div.smileySet img { margin: 0 2px !important; }
The 2nd line change here is my own personal preference as I thought the smilies were too spaced out.
#Comments img { vertical-align:middle; }
This will align the emoticons to the middle of the text. Standard the emoticons are displayed a few pixels too high.
When you're using the little IPB icons (see above), paragraphs now show consistent line-spaces.
img.smiley { border:0; vertical-align:middle; }
works like a dream