27 comments to Smilies Switcher

  1. Tishi says:

    THANK YOU!!!!!!!!!!!!
    Sorry about the excessive use of capital letters and exclamation marks. But…
    THANK YOUUUUUUUUUUUUUUUUUUUU!!!!!!!!!!!!!!!!!!!
    Is the only way I can express myself :)

  2. Ashley says:

    This is great! I’ve been waiting for someone to come up with a plugin for this! Thanks so much!! :)

  3. blue says:

    Really nice and util plugin, thxs for share :)

  4. Aneesah says:

    Hi, I’m feeling too lazy to post in the forums, so if you don’t mind, can I ask a question here? :D Immediately after I activate the plugin, I get ‘cannot modify header information’ errors at the top of the page, and the file mentioned is wp-admin/admin.php. Is it because I have another plugin (polls) that needs stuff added before the opening html tag?

    Thanks in advance!

  5. Aneesah says:

    Ah, right. It was in my smilies.php, I copied and pasted er, wrongly. ^^;

    Thank you!

  6. Tish says:

    I was wondering… Would it be possible to modify the script in some way so that you could put something like somewhere and it would pull up the folder name (so you could have different images depending on the theme etc)? I tried it but it doesn’t work and I’m a php n00b so yeah :P

  7. Viper007Bond says:

    Umm, that’s what this plugin does — allows you to have different smilies per theme. Read the included readme, it explains how you put each themes smilies within your theme folders. ;)

  8. Tish says:

    I meant like… You could have <?=$theme?> somewhere eg in a code for an image and it would bring up the folder name for the current theme. Just on a page or anywhere out of the loop. Sorry if I’m being a n00b but I’ve tried stuff like that and I can’t get it to work :S So I was just wondering if it’s actually possible.

  9. Viper007Bond says:

    I don’t get what you’re asking.

    If you’re just looking for the URL to your current theme, try using something like bloginfo('template_directory');.

    But I don’t get what any of this has to do with my plugin. :/

  10. Tish says:

    I thought the bloginfo thing didn’t work with the theme switcher, that’s all. Or maybe it does. Sorry, I’m having an “I feel dumb” day -_- Basically, I want an image (not a smiley) that will change when the user changes their theme. I figured that since your plugin works with the theme switcher, that there would be a way to do that with it, or maybe I’m just being dumb again lol. Sorry for causing confusion =\

  11. Viper007Bond says:

    No, this plugin just changes the smilies array based on what theme is active. ;)

    Try the WordPress support forums though for your problem. :)

  12. Tom Parker says:

    Hmmm right i’ve uploaded everything iin the correct place but the smilies are still pulling from the original location, i’ve setup smilies.php dir as “smilies/” so this means theres a dir in the main theme folder called “smilies” i’ve put my smilies in there but… its just not working.. is it because I am using WP 2.0? although theme switcher wrks with 2.0…

    Tom | http://www.tomwrote.info

  13. Viper007Bond says:

    Confirmed. I’ll work on getting it to work with WordPress 2.0.

    Edit: I take that back — it works fine. I just had forgotten to activate Theme Switcher (my plugin only runs if Theme Switcher is activated).

  14. Tish says:

    Hey there… I just updated to WP 2.0.4, and it says:

    Warning: file(/home/.eiffel/tish/twiskers.net/wp-content/themes/phoenixblue/style.css) [function.file]: failed to open stream: No such file or directory in /home/.eiffel/tish/twiskers.net/wp-includes/functions.php on line 1733
    
    Warning: implode() [function.implode]: Bad arguments. in /home/.eiffel/tish/twiskers.net/wp-includes/functions.php on line 1733
    
    Warning: uksort() [function.uksort]: Invalid comparison function. in /home/.eiffel/tish/twiskers.net/wp-content/plugins/smilies-switcher.php on line 39

    when I activate the plugin. Just letting you know :P
    Thanks,
    Tish

  15. Viper007Bond says:

    Ah, they got rid of that pretty pointless function it seems: http://trac.wordpress.org/changeset/3640

    I’ll throw together an update for my plugin.

  16. Tish says:

    Cheers, this plugin is really fantastic :D I upgraded WP and then I thought… where are my smilies? :O

  17. Viper007Bond says:

    ZIP file updated. I think all I changed really was the removal of the uksort(), but you might as well download the ZIP and upload the new plugin file just incase (no need to change your smilies.php for your theme).

    Let me know if you have any further issues. :)

  18. Tish says:

    The new plugin file wasn’t in the zip :P But I took out the uksort() line and now it works perfectly. Thanks a bunch! :)

  19. Viper007Bond says:

    Grr, sorry, it looks like the upload of the ZIP went bad. Should be fixed now. :)

  20. Charlotte says:

    can you use this plugin with another smilies plugin like wp-grins or custom smileys?

  21. Viper007Bond says:

    WP-Grins probably works fine with this as all mine does is change the smilies array based on what theme is active.

    Custom smileys is most likely not compatible with this plugin, but everything that plugin does is done with my plugin (changing smilies).

  22. Charlotte says:

    can we put the smilies in a different folder besides that specific theme folder? When I tried to change the smilies.php, it made all of the images broken images.

  23. Viper007Bond says:

    No, they have to be somewhere inside the theme’s folder. Since the whole point of this plugin is to have different smilies per theme, I figured that keeping each theme’s smilies in the theme’s folder would make the most sense. :)

  24. xfuture says:

    haha….is a good plugin. Thanks for sharing :)

  25. Vief says:

    It worked fine in WP 2.0 but now I upgraded I get errors and had to deactivate the plugin :( I’m sad.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

If you wish to post code, write it like [code]blah[/code] so it will display properly.