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

Emoticons work in preview but not in the post?

This discussion is related to the Emotify :) addon.
So as the title says I can create a post and put emoticons in which I can see in the preview. However when the post is submitted all I get is the actual text, like :) :(

I have edited the js file to add my own emoticons but only edited the emoticons lineup nothing else.

So why in preview but not displaying in the post?
Tagged:

Comments

  • SheilaSheila ✭✭

    Hi!

    Installed Vanilla 2.0.18.4 recently (upgraded from Vanilla1) and I seem to have exactly the same problem. Emoticons work in preview but not in the post.

    I've edited the plugin code in order to get smileys show when somebody inserts for example :smile:

    Help would be appreciated!

  • How can anyone help if you don't show the modifications to the code :).

    Use the buttonbar plugin and see if the emoticons work?

    if they do, then it may be an interaction with the plugin (if not buttonbar) you use to post messages.

    If they don't work, it may be an interaction with the format in which they are stored in the database.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • SheilaSheila ✭✭

    Sorry! :D

    Example of modification in .js ":bigsmile:": ["bigsmile"],

    Example of modification in .css .Emoticonbigsmile { background-image: url('images/bigsmile.gif'); }

    And they do show in preview, so I hope/assume this can't be totally wrong?

  • unanswered - cleditor or buttonbar????

    impossible to tell without a frame of reference of the code changes.

    one random line could be placed anywhere in the code, and we can't guess where it is, actually we could guess, but the odds are the guess would be wrong.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • SheilaSheila ✭✭

    Here are all the plugins used: $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed'; $Configuration['EnabledPlugins']['MFCDiscussionPagination'] = TRUE; $Configuration['EnabledPlugins']['AllViewed'] = TRUE; $Configuration['EnabledPlugins']['Quotes'] = TRUE; $Configuration['EnabledPlugins']['LikeThis'] = TRUE; $Configuration['EnabledPlugins']['Categories2Menu'] = TRUE; $Configuration['EnabledPlugins']['WhosOnline'] = TRUE; $Configuration['EnabledPlugins']['Signatures'] = TRUE; $Configuration['EnabledPlugins']['ShowDiscussionAuthor'] = TRUE; $Configuration['EnabledPlugins']['ButtonBar'] = TRUE; $Configuration['EnabledPlugins']['ApprovalEmailNotification'] = TRUE; $Configuration['EnabledPlugins']['TouchIcon'] = TRUE; $Configuration['EnabledPlugins']['LastEdited'] = TRUE; $Configuration['EnabledPlugins']['VanillaStats'] = TRUE; $Configuration['EnabledPlugins']['AuthorTimeView'] = TRUE; $Configuration['EnabledPlugins']['SplitMergeFE'] = TRUE; $Configuration['EnabledPlugins']['Emoticons'] = TRUE; $Configuration['EnabledPlugins']['Emotify'] = TRUE;

    There are both Emotify and Emoticons, since Emoticons -plugin seems to solve the problem with old, earlier smileys not showing in posts. My board is far from fresh installation, it used to run on Invision Board before Vanilla 1 and 2.

    Turning Emoticons-plugin off does not help with this problem so I guess there's no conflict between them two.

  • Post a link to your site with an example emoticon that didn't work. I don't think its the database, I modified the field from markdown to html to text and it didn't matter the js is overriding anything there.

    what does the field in the body of the comment in the comment table look like does it have any escaped characters or does it show exactly what you entered.

    I see you have AuthorTimeView plugin enabled - Ha, one person using it :).


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • SheilaSheila ✭✭

    My site needs to have everybody to register. Should I make you test user -account? Would that be too much trouble for you?

    I tried to browse some recent comments via database, there's just so much data that didn't find the latest one's yet.

    AuthorTimeView plugin is great! :)

  • for the time being just create a test discussion add an emoticon that doesn't work and then add a comment with an emoticon that doesn't work and give a link to that discussion.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • SheilaSheila ✭✭

    Ok, I'm gonna make one public category. Will post link soon.

  • the only suggestion I can give you.

    zip up your current emotify plugin directory. erase it and download the the vanilla version of emotify with the js in it.

    ":bigsmile:": ["bigsmile"],
    ":bagonhead:": ["bagonhead"],
    ":blahblah:": ["blahblah"],
    

    ....., ":wub:": ["wub"]

    modify the .css

    e.g.

    .Emoticonwub { background-image: url('images/wub.gif');  width: 20px; height: 20px; }
    

    modify the class.emotify.php

    ':wub' => 'wub',


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

    Sheila
  • Let us know if that works. Don't know where your emotify js code came from - maybe a previous version from vanilla one.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

    Sheila
  • SheilaSheila ✭✭

    I got the plugin version within Vanilla2 installation, I assume.

    Just to clarify, what used to be ":wub:": ["wub"], should be ':wub' => 'wub' ? And I edit in emotify.js since can't find any class.emotify.php within the plugin folder?

  • my mistake emotify is already packaged in 2.18.04 - that is the version you want to use. It will have class.emotify.php. extract it again from the main vanilla, as you may have overwritten it when you downloaded emotify 1.0.

    /vanilla/plugins/Emotify/class.emotify.php

    should show emotify version in dashboard as 'Version' => '2.0.1',

    No need to modify the new js at all (a matter of fact, it is safer if you don't touch it. I added numerous emoticons that appeared in the dropdown box and appeared in the preview as well as the post.

    this was in your old js (transfer these to the emotify .css and class.emotify.php using the same technique in the emotify.css and class.emotify.php

    ":bigsmile:": ["bigsmile"],
    ":bagonhead:": ["bagonhead"],
    ":blahblah:": ["blahblah"],
    ":biggrin:": ["biggrin"],
    ":blush:": ["blush"],
    ":cry:": ["cry"],
    ":dazed:": ["dazed"],
    ":devil1:": ["devil1"],
    ":dooh:": ["dooh"],
    ":drool:": ["drool"],
    ":evil:": ["evil"],
    ":faint:": ["faint"],
    ":fork:": ["fork"],
    ":groovey:": ["groovey"],
    ":hahjust:": ["hahjust"],
    ":happy:": ["happy"],
    ":heart:": ["heart"],
    ":ihq:": ["ihq"],
    ":kettu:": ["kettu"],
    ":lol:": ["lol"],
    ":negotiate:": ["negotiate"],
    ":nope:": ["nope"],
    ":molping-around:": ["molping-around"],
    ":rofl:": ["rofl"],
    ":rok:": ["rok"],
    ":sneaky:": ["sneaky"],
    ":stunned:": ["stunned"],
    ":tongue:": ["tongue"],
    ":tuoppi:": ["tuoppi"],
    ":watis:": ["watis"],
    ":wink:": ["wink"],
    ":whaddado:": ["whaddado"],
    ":wub:": ["wub"] 
    

    and make the changes to the new .css and class.emotify.php - in the same manner as the other arrays show in those two files.

    I'm not sure why the emotify add-on is not updated or removed on the add-ons downloads (even though it is included in the distribution), makes things confusing.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

    Sheila
  • SheilaSheila ✭✭

    Now I have the right version. My Emotify seemed to be old version, I guess I've messed up somewhere along the way when uploading and installing plugins. Lame mistake.

    It's past midnight here, so it might be better for me to test it tomorrow in order not to mess up more. Gonna let you know, how it worked.

    Your support's been just super! Thank you so much :)

    UnderDog
  • Sheila said: It's past midnight here,>

    mutta ei aurinko vielä paistaa siellä.

    Your support's been just super! Thank you so much :)

    Ei se mitään. Minun suomenkielen taitoni on huono. Täytyy harjoitella enemmän suomenkieltä ... Yksi, kaksi, kolme :)

    napsauta "kuin"-painiketta

    Mitä poro on päivälliseksi tänään

    :wink


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

    UnderDogSheila
  • SheilaSheila ✭✭

    Got the plugin working! Thank you so much once again. Wouldn't been able to figure it out by my self. One minor change thou, just in case anybody else has a need to show emoticons this way.

    ':wub' => 'wub', still has to have double dots on both sides like ':wub:' => 'wub', otherwise it will print an image and two dots beside the actual image on one side.

    peregrine said: mutta ei aurinko vielä paistaa siellä.

    Hahaha! One has to sleep thou, even when the sun doesn't go down much. And yes, those nightless nights are amazing.

    You're quite good with your suomi. ;)

  • Sheila said:

    You're quite good with your suomi. ;)>

    et tu - with English.

    Yes - I've become a polyglot - but take away those internet language translators and I lose that ability :)

    I'm not sure why various people post unintelligible messages on this discussion board when they could probably do a bit better with an internet translation or they could post in both their native language and attempt in English.

    Glad it solved your problem.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

    UnderDogSheila
  • SheilaSheila ✭✭

    Glad it solved your problem.

    So am I! And to be honest, I don't remember last time I got an answer and a solution to a problem on an issue with Open Source software this fast, so kudos to you!

    peregrineUnderDog
  • two other things you might want to do.

    you have two plugins for the author - you might disable one of them

    you have two plugins for the emoticons - emotify and emoticons. you could easily port the emoticon symbols over to the emotify plugin in the same manner you just added your custom ones and then disable the emoticons.

    I can only think it would be a tad bit cleaner and faster without the duplications.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

    Sheila
  • SheilaSheila ✭✭

    Good point! Thanks for the reminder, disactivated the other one since having both was just a quick temporary fix.

    With the author plugins, I somewhat thought that they are not absolute dublicate. But if that's the case, which one do you recommend?

  • well, what does lastauthor provide - ?

       * I haven't used it.    
       *  you need to list what you get.    
    

    what does AuthorTimeView plugin provide?

      optionable and translatable through definitions file.     
    
        *  the author of the post is place on the discussion page    
        *  the time that the author of the discussion created post,    
        *  the view count  
    

    You would have to compare

      *  try removing one or the other and see if you get what you need.  
    
      *  :)  Obviously I am a fan of the plugins that I write - but you have to be the judge.
    

    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

  • SheilaSheila ✭✭

    Based on a quick test,_ I think_ both do some what same, plus your plugin does more, cause there is also the view count. I have the view count disabled, so I didn't realize the difference.

    I guess I need to continue having view count disabled unfortunately, since the board and it's database have been converted/moved/etc. so many times.

Sign In or Register to comment.