WordPress.org

Ready to get started?Download WordPress

Forums

WP Grins - Yet Another Clickable Smilies Hack (50 posts)

  1. OperaManiac
    Member
    Posted 10 years ago #

    thanks alex. i will look into it!

  2. Nick Momrik
    Member
    Posted 10 years ago #

    Very nice hack!! I was using the hacks by LL and SG, which worked great, but this one is much easier to implement and update.

  3. OperaManiac
    Member
    Posted 10 years ago #

    just that i need to wait for a stable version as every upgrade to a nightly will break it :S

  4. Nick Momrik
    Member
    Posted 10 years ago #

    @mamabean,
    You are still running WP 1.0. There was a bug for the comment smilies in that version, which has since been fixed. Upgrade to 1.0.1 RC1 or a nightly build and the problem will be solved. If you don't want to do that, the fix is here.

  5. omgwtf
    Member
    Posted 10 years ago #

    hi! is there a way to make the smilies into a popup window?

  6. Alex King
    Member
    Posted 10 years ago #

    Or you can just add some style:
    #wp_grins img {
    cursor: pointer;
    cursor: hand;
    }

  7. MathiasBynens
    Member
    Posted 10 years ago #

    Of course :)
    But why use two times cursor:?
    I guess this 'll do:
    #wp_grins img {
    cursor: hand;
    }

    MaThIbUs

  8. MathiasBynens
    Member
    Posted 10 years ago #

    BTW, in what order are the smilies displayed? I can't see a logical sequence in it...

  9. Alex King
    Member
    Posted 10 years ago #

    You need both for IE and Mozilla.

  10. MathiasBynens
    Member
    Posted 10 years ago #

    I see...
    How about the smilies order?

  11. Alex King
    Member
    Posted 10 years ago #

    alpha order of the abbreviations

  12. antonskij
    Member
    Posted 10 years ago #

    Great! It works very nice.
    But I wonder, is it possible to use all available smilies to the admin section and, at the same time, assign for comments only a part of them?
    Thanks,
    Anton.

  13. Anonymous
    Unregistered
    Posted 10 years ago #

    I can answer this one
    if you follow Alex's it works great i have them both working...

  14. Anonymous
    Unregistered
    Posted 10 years ago #

    I have all my smiles in the admin and the sameones in the comment box to.. only put the smiles in both boxes that you want used.. or add ones that you want to use.. but im not sure if you cn have 2 different smile files to run at the sametime

  15. Alex King
    Member
    Posted 10 years ago #

    Right now it puts the same list both places.

  16. vickiediablo
    Member
    Posted 10 years ago #

    I have a problem here... The hack works fine on the comments page if it isn't in a popup (e.g. http://blog.lean-forward.com/index.php?p=1), but doesn't when it is (http://blog.lean-forward.com - click any comments(#)).
    I see that it works fine on others' popups though. Is there any reason why mine isn't (that I've checked what I put on wp-comments-popup.php very carefully many times)?

  17. vickiediablo
    Member
    Posted 10 years ago #

    Ah yes, I forgot about that. It now works. Thanks so much!

  18. Alex King
    Member
    Posted 10 years ago #

    Glad to hear it! Very nice site design by they way. Perhaps you can find time to enter a CSS Style in the contest? :)

  19. mrwok
    Member
    Posted 10 years ago #

    Hey, What is the difference Alex Between smiley's and grins, Between say a :-) and :smile:
    Why did you exclude the " : -) "
    Thanks

  20. Alex King
    Member
    Posted 10 years ago #

    mrwok - I include only one of each image, so the first one (in the order they are defined) wins.

  21. Lauren
    Member
    Posted 10 years ago #

    how do i change the images found in the smilies. I added more smilies in the directory but they don't show up.

  22. dulcechick
    Member
    Posted 10 years ago #

    Help! I get these errors whenever I try to post a smilie on my comments & post page:
    Warning: Cannot modify header information - headers already sent by (output started at /home/dulcechi/public_html/wp/my-hacks.php:74) in /home/dulcechi/public_html/wp/wp-comments-post.php on line 114
    Warning: Cannot modify header information - headers already sent by (output started at /home/dulcechi/public_html/wp/my-hacks.php:74) in /home/dulcechi/public_html/wp/wp-comments-post.php on line 115
    Warning: Cannot modify header information - headers already sent by (output started at /home/dulcechi/public_html/wp/my-hacks.php:74) in /home/dulcechi/public_html/wp/wp-comments-post.php on line 116
    Warning: Cannot modify header information - headers already sent by (output started at /home/dulcechi/public_html/wp/my-hacks.php:74) in /home/dulcechi/public_html/wp/wp-comments-post.php on line 118
    Warning: Cannot modify header information - headers already sent by (output started at /home/dulcechi/public_html/wp/my-hacks.php:74) in /home/dulcechi/public_html/wp/wp-comments-post.php on line 119
    Warning: Cannot modify header information - headers already sent by (output started at /home/dulcechi/public_html/wp/my-hacks.php:74) in /home/dulcechi/public_html/wp/wp-comments-post.php on line 120
    Warning: Cannot modify header information - headers already sent by (output started at /home/dulcechi/public_html/wp/my-hacks.php:74) in /home/dulcechi/public_html/wp/wp-comments-post.php on line 121
    Warning: Cannot modify header information - headers already sent by (output started at /home/dulcechi/public_html/wp/my-hacks.php:74) in /home/dulcechi/public_html/wp/wp-comments-post.php on line 126
    post page
    Warning: Cannot modify header information - headers already sent by (output started at /home/dulcechi/public_html/wp/my-hacks.php:74) in /home/dulcechi/public_html/wp/wp-admin/post.php on line 158
    On my-hacks.php page I have the stats hack so I just added below this:
    <?php require_once('wp-grins.php'); ?> could it be a conflict or something?
    I'm using wordpress 1.0.1

  23. Anonymous
    Unregistered
    Posted 10 years ago #

    Hey marge this is donnie.
    Header errors appear when you send output data to the browser before headers and cookies are set. This output includes white space, returns, tabs and other characters.
    Solution.
    I'd suggest opening up the the files that you edited and make sure there's no white space, tabs, or returns lurking around before or after the opening and closing php tags.

  24. dulcechick
    Member
    Posted 10 years ago #

    Thanks don, I already fixed it... but I have a problem though, been wondering why the smilies on the post page are doble? there are 2 lines of the same smilies over there, how do I fix this? and I would like to remove some smilies on my comment page, I dont want some smilies to appear there... how do I do this? thanks. :)

  25. dulcechick
    Member
    Posted 10 years ago #

    Well, I tried to remove them in wp-config-extra.php but they're still showing up there...

  26. artsyalicatt
    Member
    Posted 10 years ago #

    OK...Where is the my-hacks file? I don't have that in my installation...

  27. Nick Momrik
    Member
    Posted 10 years ago #

    You need to create it if you want to use it.
    http://wiki.wordpress.org/index.php/my-hacks.php

  28. artsyalicatt
    Member
    Posted 10 years ago #

    Thanks...that REALLLY helped...I got it all up and running now. :) Alex, this hack is really awesome. Great job!!

  29. Alex King
    Member
    Posted 10 years ago #

    Glad you like it. :)

  30. seeya
    Member
    Posted 10 years ago #

    what's this error message about? i'm noob to php
    Warning: Cannot modify header information - headers already sent by (output started at /home/orhjiao/public_html/simonlim/my-hacks.php:8) in /home/orhjiao/public_html/simonlim/wp-admin/post.php on line 158

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.