WordPress.org

Ready to get started?Download WordPress

Forums

wp-grins for 1.5 ? (29 posts)

  1. jonny
    Member
    Posted 9 years ago #

    I used to have Alex King's wp-grins on 1.2, but now on 1.5 I'm kind of lost since "wp-admin/quicktags.php" is now "wp-admin/quicktags.js". Is there a way to use wp-grins on 1.5? or maybe some other way to have the smilies on the post and comments forms?

  2. lbessant

    Posted 9 years ago #

    WP-Grins works for me....
    For the post form, edit wp-admin/admin-functions.php, find "edToolbar" and add this code:

    if (function_exists("wp_grins")) { echo "
    "; wp_grins(); }

    just after it.

    And it's just a matter of adding <?php wp_grins(); ?> to comments.php where you want the smilies to appear.

  3. jonny
    Member
    Posted 9 years ago #

    Thanks lbessant

    It works fine. Was tricky to figured out exactly where to write the code, so I add how it looks:

    On wp-admin/admin-functions.php, line 574:

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

  4. Jacob
    Member
    Posted 9 years ago #

    Thanks for posting this. :) I was missing this plugin and am glad it's back for 1.5. ^_^

  5. chan
    Member
    Posted 9 years ago #

    I got the smilies to show up when I write a post but how do I get them to show up when someone is writting a comment. So they can click on the smilie. I am using the 1.5 final.

  6. jonny
    Member
    Posted 9 years ago #

    Chan:

    Find the comments.php file in your Themes folder.
    You have to add the <?php wp_grins(); ?> between the author_URL and the comments textarea.

  7. chan
    Member
    Posted 9 years ago #

    Thanks It worked.

  8. Tala
    Member
    Posted 9 years ago #

    Wow, this is really helpful. A question though, where are you supposed to put the wp-grins.php file? And does this mean still using my-hacks.php?

  9. noname
    Member
    Posted 9 years ago #

    put it in "\wp-content\plugins\", log in admin center .. go to "Plugins" tab.. then activate it.

  10. Tala
    Member
    Posted 9 years ago #

    Thank you so much noname! :)

  11. jcness
    Member
    Posted 9 years ago #

    i dont have quicktags, so i used the 'harder' way by putting the code before the <textarea> part in 3 files... =/
    i realise i shouldnt ask this question here.. but im hoping you guys are nice enough to give me some answers =) what does quicktags do? would it be better if i actually used it/put the code in for it?

  12. davincim
    Member
    Posted 9 years ago #

    In my admin-functions.php I've commented out

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

    and inserted

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

    When I access my Post page, I get the following error:

    Parse error: parse error, unexpected '>', expecting T_VARIABLE or '$' in /hsphere/local/home/galen5/familywebwatch.com/blog_test/wp-admin/admin-functions.php on line 578

    Line 578 is } -->

    I'm lost. Can anyone help?

  13. Chinkone
    Member
    Posted 9 years ago #

    This moderation works very well, but my smily graphics don't show up. Does the grins hack use default smilies of WP? Or where do I have to put the smilies dir with the smily graphics?

  14. Chinkone
    Member
    Posted 9 years ago #

    Okay, nevermind people.
    The following steps are:
    upload wp-grins.php > modify admin-functions.php > modify comment.php > AND AT LEAST activate the whole thing in the Admin. =)

    It works perfectly!

  15. mulligan
    Member
    Posted 9 years ago #

    I made the adjustment like lbessant and jonny recommended and the plugin is now working. However, I'm getting this message in the admin area now

    Warning: Cannot modify header information - headers already sent by (output started at /home/mulligan/public_html/wp-admin/admin-functions.php:1044) in /home/mulligan/public_html/wp-admin/admin.php on line 6

    Warning: Cannot modify header information - headers already sent by (output started at /home/mulligan/public_html/wp-admin/admin-functions.php:1044) in /home/mulligan/public_html/wp-admin/admin.php on line 7

    Warning: Cannot modify header information - headers already sent by (output started at /home/mulligan/public_html/wp-admin/admin-functions.php:1044) in /home/mulligan/public_html/wp-admin/admin.php on line 8

    Warning: Cannot modify header information - headers already sent by (output started at /home/mulligan/public_html/wp-admin/admin-functions.php:1044) in /home/mulligan/public_html/wp-admin/admin.php on line 9

    I don't know enough about php to figure out what is wrong. Can anyone help me?

  16. Usayd
    Member
    Posted 9 years ago #

    thanks that worked for me...
    mulligan are you shure you activated the plugin?

  17. XeroCool
    Member
    Posted 9 years ago #

  18. Sproke
    Member
    Posted 9 years ago #

    Hey everyone. I was finding that if I did this:

    "<?php wp_grins(); ?> between the author_URL and the comments textarea."

    I was not getting the grins when logged in. Instead I put the code underneath the code "You can use these tags:" and it appears underneath the other quicktags. Found it better to keep it all together, and it showed up when I was logged in.

  19. Felicia
    Member
    Posted 9 years ago #

    where is the author_URL? I can't find it in my comments.php

  20. manon
    Member
    Posted 9 years ago #

    I've tried a multitude of things, including all the advice in this thread... I can't get the plug in to show up in my WP in order to activate it. Everything else is done correctly as far as I can tell but I can't see it. Any ideas??

  21. oncidium
    Member
    Posted 9 years ago #

    This thread was very helpful. Now that I have the clickable smilies on both the comment area and to select for my post...what would I need to modify to have more smilies show up there? I have the .gif files...just need to know how to reference them and in which file/files to do it. Thanks!

  22. oriecat
    Member
    Posted 9 years ago #

    You need to upload them to the smilies folder and then add them to the wp-includes/vars.php file.

  23. oncidium
    Member
    Posted 9 years ago #

    Thanks, oriecat. Worked great.

  24. skleslie
    Member
    Posted 9 years ago #

    I seem to be having the same problem as the one mentioned above by manon.

    I have done all the code placement as mentioned above and I believe I finally have it positioned correctly because I am no longer getting any errors. But it isn't showing up as an option under my Plugin Mangement and therefore I can't activate it.

    I have the wp-grins.php file located directly within /wp-content/plugins. It is not within any other folder. The other plugin files that are located in there do show up under Plugin Mangement.

    The only other plugin I have added is the more smilies plugin. I have tried deactivating that one and it hasn't made any difference and it seems to be performing as it should.

    Thanks

  25. lokrin
    Member
    Posted 8 years ago #

    Using WP1.5

    Is there a way to sort or group the smilies? I've got a couple of dozen and would like to sort them maybe like:

    Original
    Emotions
    Animals
    Animated

    etc

  26. 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??

  27. strawbarry
    Member
    Posted 8 years ago #


  28. coolgirl
    Member
    Posted 8 years ago #

    Thanks for this! Btw, how can I add new smilies?

  29. qq638
    Member
    Posted 7 years ago #

    My Codes are different

    <script src="../wp-includes/js/quicktags.js" type="text/javascript"></script>
    <script type="text/javascript">if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) edToolbar();</script>
    </div>
    ';
    else echo '

    and when I modify the code into

    <script src="../wp-includes/js/quicktags.js" type="text/javascript"></script>
    <script type="text/javascript">if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) edToolbar();</script>
    ';
    if (function_exists("wp_grins")) { echo "
    "; wp_grins(); }
    echo '</div>';
    endif;
    }
    </div>
    ';
    else echo '

    it works ... but I couldn't login to my admin page. The page goes blank.

    Also on the comment page, the similies images aren't showing

    Please help :(

Topic Closed

This topic has been closed to new replies.

About this Topic