• Resolved JibsouX

    (@jibsoux)


    hy again tx for the fix by the way ,)

    now i search to add the smilies in a chat in a page where there is no comment zone or esle

    so i have add nicly the content in the js

    ...
    else if ($j('.quick-chat-message:input') . length > 0) {
    myField = $j('.quick-chat-message:input');
    value = $j(".quick-chat-message:input") . attr("value");
    }
    ...

    AND

    ...
    else if ($j('.quick-chat-message') . length > 0) {
    var type = 'after';
    var node = $j('.quick-chat-message');
    }
    ...

    but the thing is : the script is not enqueue in the page were the chat is so i add it with wp_enqueue so it is add in the page like i want (the home page with is_home() ) but i have some error like that :

    “wpgrinsssl is not defined”

    do you know how i can fix that ?

    Thanks in advance !!

    https://www.ads-software.com/plugins/wp-grins-ssl/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    By intent, the script is only called on pages with a comment box. You will need to edit the if check for where it’s called for the chat, and its unlikely I’ll make that default since I’m trying to keep it lightweight.

    Thread Starter JibsouX

    (@jibsoux)

    yeah i have found the if conditional (bbpress ? / comments activate ? )

    the thing is i don’t want to tweak your plugin because of the future update … :p

    it wil be a big improvement to give the capacity to the admin like in a setting page to add anywhere the smilies : they give the id or class of the input they whant to populate with it and it add automatically the smilies.

    i understand you want to load the script only in the page where there is a need for it (if (… )
    So the plugin can parse the output html in search of the given id or class then if it exist enqueue scripts

    But not lightweight like you want but more flexible

    what do you think abbout it ?

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    If I have the code check for output, it becomes heavier and slower (been there, done that).

    What chat plugin are you using? I MAY put in a check for that, or an option to load on all pages, but frankly I think it’s a bad idea.

    Thread Starter JibsouX

    (@jibsoux)

    you’r the boss dude ??

    the plugin is quick chat :
    the thing is quick chat parse the smilies’s codes différently so i have change them so it will work for quick chat.. :p
    https://www.ads-software.com/support/topic/use-wp-core-smilies?replies=2#post-6084621

    good result :
    https://bayimg.com/AAAAJaAgO
    https://bayimg.com/aaaANaaGO

    But to much customisation on the plugins..

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    So … The plugin itself doesn’t allow for smilies at all and you’re already adding those in?

    Thread Starter JibsouX

    (@jibsoux)

    mhh the plugin has his own way to display his own smilies (sprite image) so not default wordpress smilies..
    but after reading all the code i finally add it :p dam’n quick chat is a verry good chat but not for smilies lol

    now it’s done lol !
    so don’t waste your time to try to add it for quick chat !

    And bigup for your plugin ?? Tx, and the rapid response.

    By the way your in france or europe to respond at this hour i’m french by the way

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Nope, I’m in the US (it’s the afternoon here and I’m technically eating lunch and watching a movie with the family ?? )

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add smilies anywhere’ is closed to new replies.