Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Smile

edited February 2007 in Questions
This discussion is related to the Smile addon.
Smile

Comments

  • Thought I'd post a link to the IPB2.2 smilies that I had in the previous Smile thread for this extension here.

    Smile, Emoticons, IPB2.2, 2007-02-23_14-47-52.rar
  • Hey guys,

    Thought I'd pitch in. Here's a slightly modified tango.txt file to include more variations of smilies and some more emotes from the tango project. I also made the aliases more semantic (rather than :face-smile: it's just :smile:).# see http://tango.freedesktop.org to find more infos about the Tango-Icon Project
    face-angel :angel: 0:-)
    face-crying :cry: :'( :'-(
    face-devil-grin :devil: >:-) >:)
    face-monkey :monkey: :-(|)
    face-plain :plain: :-| :|
    face-sad :sad: :-( :(
    face-smile :smile: :-) :)
    face-wink :wink: ;) ;-)
    face-surprise :surprise: :O :-O
    face-grin :grin: :D :-D

    Here's a link to Tango 0.8 . Just extract it and go to the emotes folder, it has more emotes than is included with the extension. Copy over the ones you need into the correct extension sub-folder.

    Oh, and another thing. I personally thought that the emotes included in the extension were too big, so you can copy over the medium sized emotes if you extract them from the link above. If you do that, you'll also want to change style.css to:
    #smileyBox img {
    margin: 0 5px;
    }

    img.smiley {
    vertical-align: bottom;
    }

    That way the emotes will look like they are resting on the bottom of the line instead of floating to the top.
  • Nice mallow005 :) I was thinking about doing something like that but never got around to it.
  • Can we get an option to say display only 6 emoticons and have a link "show all"?
  • Yes, or even something similar to the newly updated Attachments expansion thingy which expands when required. Or an option to simply turn off in the add comments area.
  • Looks nice but i gan an error:
    Warning: fopen(/www/htdocs/w0064fdb/extensions/Smile/cache_tango) [function.fopen]: failed to open stream: Is a directory in /www/htdocs/w0064fdb/extensions/Smile/default.php on line 131
    Cant write Cache

    all files got full permission (777) what shall i do?
  • Does the cache_tango directory itself have write permission as well?

    Posted: Friday, 29 June 2007 at 10:33AM

  • yes, it has.. the plugin works fine, but i get this error message..
    E: okay, i deleted all that tango stuff, created my own smileys.txt now it works fine.
    thanks :)
  • Can anybody tell me how to move the smileybox on the top of the comment form?
  • another problem here..
    when i activate the smile extension i get a "Warning: Invalid argument supplied for foreach() in [...]/vanilla/extensions/Smile/default.php on line 178". i swear i did not touch anything.
    is there hope?
  • Sorry I can't help you with your problem mate, but I can tell you that the URL to your account picture needs fixing...
    pic

    Posted: Thursday, 12 July 2007 at 9:03AM

  • thanks.. hadnt noticed that before. btw im a big fan of your work ^^

    can anyone help with my smile problem?
    line 178 is the bad one.. as a php noob i cant spot an "invalid argument". do u see a potential problem here?
    176 function Smile(&$Context) {
    177 $this->Context = &$Context;
    178 foreach( glob( dirname( __FILE__ ) . '/*.txt') as $cfgFile) {
    179 $setName = basename( $cfgFile, '.txt' );
    180 $this->smileyCollection[] = new SmileyCollection( $setName );
    181 }
  • am i the only one who has this problem? i really want to use this addon
  • Got a URL where this is enabled that we can look at to see the error in the wild? I've certainly never had this problem.

    Obvious things to check, you have got your Smile dir with the correct permissions so it can create its cache files?
  • sorry if that was obvious :]
    it seems like my hoster doesnt allow remote chmod. is there another way to change the permissions or will i have to change the hoster?

    (unfortunately i cant find a free one that allows remote mysql access.. i already pay for webspace without database)
  • i still get smilies parsed when inside < code> tags - any ideas? i'm using 0.6...

    thanks in advance :)
  • Hmm, I've started getting this as well. I wonder if it's something that's changed in Vanilla 1.1.4? I didn't notice it before I upgraded, but that doesn't mean it wasn't happening...
  • *bump once again for the renegade master, default damager, with the ill behaviour*
  • hi, is it possible to integrate the iconset into the addcomments form?
  • are there any new smilies to add?
  • Hey, I'm getting this error.
    Warning: fopen(/home/ablehous/public_html/extensions/Smile/cache_tango) [function.fopen]: failed to open stream: Is a directory in /home/ablehous/public_html/extensions/Smile/default.php on line 131
    Cant write Cache

    I see that some other people have had the same error, but there wasn't any kind of solution posted. Has anyone seen this? How did you fix the error
  • Looks like either that directory doesn't exist, or the extension doesn't have permission to write to it. Can you confirm both?
  • It seems that cache_tango is supposed to be a file, nor a directory. The plugin also is supposed to auto-create it, but it was failing with 775 perms - doing "chmod 777 Smile/" manually made it create the cache ok.
  • I like to think more is *less*, however 5 icons is awfully sparse.

    Found this set of 82 icons (24x24 pixels): http://addons.miranda-im.org/details.php?action=viewfile&id=3585

    Download the file above, drop the icons in the tango directory, and paste these in tango.txt format (note back up originals!)
    airplane :airplane:
    angel :angel: O:-)
    angry :angry: :-X
    bad :bad: :nok: :not-ok:
    beer :beer:
    bowl :bowl:
    boy :boy: :man: :male:
    brb :brb:
    cake :cake:
    camera :camera:
    car :car:
    cat :cat:
    cigarette :cigarette:
    clock :clock:
    coffee :coffee:
    coins :coins:
    computer :computer:
    confused :confused: :-?
    console :console:
    crying :crying: :cry:
    cyring :crying: :cry:
    devil :devil:
    dog :dog:
    dont-know :dont-know: :idk:
    drink :drink:
    embarrassed :blush: :emberrassed:
    eyeroll :eyeroll: :roll:
    film :film:
    fingers-crossed :fingers-xd: :fingers-crossed:
    foot-in-mouth :foot-in-mouth: :footmouth:
    girl :girl: :woman: :female:
    glasses-cool :cool: :glasses-cool:
    glasses-nerdy :nerd: :nerdy: :glasses-nerdy:
    good :good: :ok: :fine:
    handcuffs :handcuffs:
    highfive :highfive:
    hug-left :hug-left: :hugleft:
    hug-right :hug-right: :hugright:
    island :island:
    kiss :kiss: :-*
    lamp :lamp:
    laugh :laugh:
    love :love: :heart:
    love-over :heartbroken: :heart-broken: :brokenheart: :love-over:
    mail :mail:
    mobile :mobile: :cell:
    moon :moon:
    msn :msn:
    musical-note :music: :song: :musicalnote: :musical-note:
    neutral :neutral: :-|
    party :party:
    phone :phone:
    pizza :pizza:
    plate :plate:
    present :present:
    question :question: ?:-)
    quiet :quiet:
    rain :rain:
    rainbow :rainbow:
    rose :rose:
    rose-dead :rose-dead: :deadrose:
    rose-dead :rose-dead: :rosedead: :rosewilt:
    sad :sad: :unhappy: :nothappy: :depressed: :-(
    sarcastic :sarcastic: :sarcasm:
    secret :secret:
    sheep :sheep:
    shock :shock:
    sick :sick:
    sleepy :sleepy: :ZZZ:
    smile :smile: :-)
    snail :snail:
    soccerball :soccerball: :soccer:
    star :star:
    sun :sun:
    teeth :teeth: :grrr: :teeth:
    thinking :thinking: :-/
    thunder :thunder:
    tongue :tongue: :razz: :-P
    turtle :turtle:
    umbrella :umbrella:
    vampire :vampire:
    wink :wink: ;-)


    This WP plugin seems to include a whole slew of nice tango icons... http://munashiku.slightofmind.net/wordpress-plugins/tango-smileys-extended
    I think 202 icons is a few too many, and his icons are actually TOO SMALL for my taste (16x16) but whisper me if you're interested anyhow in the 202 descriptions.
  • Tested this extension in FF3/IE7/Opera9/Safari/Chrome in Windows. It works well everywhere, except IE, where inserting many smilies in a row, repeat-click on the many icons, could at times put the cursor in the wrong place and insert smiley code in existing smiley code (related to loss of focus of the text-area and "smartness").

    Solution: comment-out the code that corrects the cursor position for IE post-insertion and it works as desired.

    Open func.js in /extensions/Smile/
    Find /* correct cursor position */
    range = document.selection.createRange();
    if (insText.length == 0) {
    range.move('character', -eTag.length);
    } else {
    range.moveStart('character', aTag.length + insText.length + eTag.length);
    }
    and change to /* correct cursor position
    range = document.selection.createRange();
    if (insText.length == 0) {
    range.move('character', -eTag.length);
    } else {
    range.moveStart('character', aTag.length + insText.length + eTag.length);
    }*/
Sign In or Register to comment.