WordPress.org

Ready to get started?Download WordPress

Forums

doc: How to use WP grins with 1.5. (26 posts)

  1. XeroCool
    Member
    Posted 9 years ago #

    I've seen alot of problems with users trying to insert <?php wp_grins(); ?> into the admin CP under the edtoolbar. Well, this is how you do it. Go to wp-admin/admin-functions.php and find:

    <script type="text/javascript">edToolbar();</script>
    ';
    echo '</div>';
    endif;
    }

    Replace that with:

    <script type="text/javascript">edToolbar();</script>
    ';
    ?>
    <?php wp_grins(); ?>
    <?php
    echo '</div>';
    endif;
    }

    That should do it. Worked for me perfect. If you get errors, Post them here and Ill try to help ;).

    Also,t this is a support question. I have inserted wp_grins(); to comments.php but since I have alot of emoticons, The page just like corrupts..everything like disappears (Well, not everything) and I cant do anything. How do I make it so I give
    tags for like 5 smiles for each line?

  2. thomasso
    Member
    Posted 9 years ago #

    KEWL. I can have my smilies back in 1.5! Thanks XeroCool. =)

  3. XeroCool
    Member
    Posted 9 years ago #

    NP. :)

  4. sfboarders
    Member
    Posted 9 years ago #

    I don't have this file with 1.5 on the root of the site. "wp-comments.php "

    Optional - add the clickable smilies to the comments form in your blog.

    Open up wp-comments.php and find the <textarea> tag with id="comment". Then add this right before that <textarea> tag.

    <?php wp_grins(); ?>

    If you use the pop-up comment form, you'll need to do the same in the wp-comments-popup.php page.

    Am I missing something here?

  5. Kafkaesqui

    Posted 9 years ago #

    1.5 -- Look in a theme's directory for:

    comments.php
    comments-popup.php

    If a theme does not have these, WordPress uses those from the default theme.

  6. sfboarders
    Member
    Posted 9 years ago #

    Kafkaesqui
    Thank you very much *raises thumb* :-)

  7. Jenni_Kitten
    Member
    Posted 9 years ago #

    I'm a new user with WP and I don't really understand this lol. I've followed the readme and changed the javascript suggested here, but nothing seems to happen at all. I think maybe my my-hacks file is wrong or I have the wp-grins file uploaded to the wrong directory. This is my my-hacks file:
    <?php

    require_once('wp-grins.php')
    ?>

  8. empty
    Member
    Posted 9 years ago #

    I wanted to add the clickable smilies to the comments on my blog but it doesn't work:

    Fatal error: Call to undefined function: wp_grins() in /usr/export/www/vhosts/funnetwork/hosting/lifesucks/wp-content/themes/classic/comments.php on line 83

  9. Jinsan
    Member
    Posted 9 years ago #

    hmm modifying core files - hopefully there's a cleaner way. good tut though

  10. StarrysWorld
    Member
    Posted 8 years ago #

    Ok I did just as you said and now half the menu at the top of write post is gone!

    What did I do and how do I get it back?

  11. Mark (podz)
    Support Maven
    Posted 8 years ago #

    The guide you need is here:
    http://www.tamba2.org.uk/wordpress/smilies/

    The above guide works.

    Starry - whatever files you changed, delete them and upload new ones.

  12. StarrysWorld
    Member
    Posted 8 years ago #

    Ok I did do that deleted and uploaded again but it's still not given me clickable smilies.

    I dont understand I had no problem doing this is 1.2

  13. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Did you replace whichever files you changed ?
    Did you first delete those files before you uploaded new ones ?
    Have you pressed ctrl and f5 when looking at the problem page ?

  14. StarrysWorld
    Member
    Posted 8 years ago #

    Yes yes and yes

  15. Mark (podz)
    Support Maven
    Posted 8 years ago #

    wait ........

    You want smilies.
    You posted with errors.
    I'm concerned about the errors only.

    Have the errors gone ?
    If not, what else have you done ?

  16. StarrysWorld
    Member
    Posted 8 years ago #

    The errors have gone but I still dont have smilies in my admin panel.

  17. Mark (podz)
    Support Maven
    Posted 8 years ago #

    If the errors have gone, follow the guide I linked to a few posts up. It does work :)

  18. StarrysWorld
    Member
    Posted 8 years ago #

    But thats just it I followed it and I still have nothing.

    I have them in my comments page though...

    I gave up and just changed vars.php so they were the same as yahoo. Thanks any way

  19. MHC
    Member
    Posted 8 years ago #

    Hello to all! WP is a little over my head but I try real hard to understand all this... ;)

    Anyway I've been following this thread and others related to making clickable smilies (wp_grins) work in posts and comments. So far I've gotten them to work in the comments (I am quite happy with this!) but still no luck in the posts. Too bad this feature isn't easily implemented. LOL

    I am using WP 1.5.2 and the Dark Maple theme. I've tried what is suggested in the first post above by applying the changes in the admin-functions.php file, I've tried other solutions as well such as these:

    http://www.tamba2.org.uk/wordpress/smilies/

    http://wordpress.org/support/topic/26235

    and followed what is written in the Read Me file that came with the hack wp_grins.

    Although I don't get any error messages (thank god...), I would like to know what to do to make this work in the posts. Thank you in advance for your help.

    MHC

  20. Mark (podz)
    Support Maven
    Posted 8 years ago #

    http://www.tamba2.org.uk/files/admin-functions.zip

    That is my 'admin-functions.php' with the added line of code for smilies. It works as I've just tested it.

    Using your ftp client, RENAME your existing file to
    admin-functionsOLD.php
    then unzip and upload the one I have linked to.

    You should see a line of smilies under your quicktags.

  21. MHC
    Member
    Posted 8 years ago #

    Thank you, podz, I will try this right now! :D

  22. MHC
    Member
    Posted 8 years ago #

    Well it didn't work, I'm sad to say. But I think I know what the problem is. It's a little too late for me to try out some stuff right now but suffice it to say that I use Safari as a web browser and I just stumbled on this How To here:

    http://wordpress.org/support/topic/20950

    Why do I suspect Safari? Because just now I went to my blog, logged in and pretended I was going to post and, yep! sure enough, the smilies were all there waiting for me to click on them so they could be inserted in a post...

    So tomorrow I will be looking into that solution and see if I can't get this to work.

  23. MHC
    Member
    Posted 8 years ago #

    I tried what was suggested in that post:

    http://wordpress.org/support/topic/20950

    and I got a parse error. One thing is for sure, since that post, Safari has been updated and probably makes the workaround obsolete, perhaps?

    Or the problem could come from the theme I use. Whatever the reason for this, I am giving up. I'm satisfied for now that the clickable smilies show up for commenting and can only hope that Safari, the Dark Maple theme and WordPress talk to and agree with each other in future versions.

    Either that or I post using Firefox, an old version of Firebird or Camino.

    BTW. This problem also occurs in Shiira 1.1 and OmniWeb 5.1.1 (v563.51).

    Thanks podz for your help! :^)

  24. strawbarry
    Member
    Posted 8 years ago #

    I have similies both on the edit toolbar and the comment area,but they are not clickable!!! when I click any of the simlies,nothing happens.what is,there is no code inserted into the textarea.feels like the similies are just pics hung on the page.
    any ideas??

  25. nunuh
    Member
    Posted 8 years ago #

    what about for wordpress 2?? i upgraded yesterday.. disabled rich text, so i see my quicktags.. but I just can't get my wp_grins to show. i don't know what the heck im missing.

  26. Truth
    Member
    Posted 8 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.