Forums

Emoticons not working :( (12 posts)

  1. Tristopolis
    Member
    Posted 3 years ago #

    if ( !get_option( 'use_smilies' ) )
    		return;
    
    	if ( !isset( $wpsmiliestrans ) ) {
    		$wpsmiliestrans = array(
    			' :)' => 'icon_smile.png',
    			' :-)' => 'icon_smile.png',
    			' ;)' => 'icon_wink.png',
    			' ;-)' => 'icon_wink.png',
    			' :(' => 'icon_sad.png',
    			' :-(' => 'icon_sad.png',
    			' :p' => 'icon_razz.png',
    			' :-p' => 'icon_razz.png',
    			' :D' => 'icon_biggrin.png',
    			' :-D' => 'icon_biggrin.png',
    			' -_-' => 'icon_mad.png',
    		);
    	}

    That is in wp-includes/functions.php I am fairly sure my smilies are in the right directory etc... why isn't it working??

  2. chaoskaizer
    Member
    Posted 3 years ago #

    why isn't it working??

    Was it enabled?
    refer WP Admin > settings > Writing, make sure it tick

  3. Tristopolis
    Member
    Posted 3 years ago #

    yes! its on "convert :-) to smilies"

  4. Tristopolis
    Member
    Posted 3 years ago #

    it doesn't work.. still... in case my previous reply led you to believe otherwise

  5. whooami
    Member
    Posted 3 years ago #

    Tristopolis, wheres your blog. and what directory are your smilies in? If you dont want to share, check the source to see if the image calls are in the source. .. ya know <img src="http://...

    First make sure if its a wordpress error or a user issue. :)

    --

    and, since you pasted that bit of code up there. Have they always not worked, or did you recently change something and now they dont work?

  6. Tristopolis
    Member
    Posted 3 years ago #

    Before they were the default .gif array. the pngs are in the smilie directory. /public_html/wp-includes/images/smilies/

    my blog is at http://magnusfx.com

  7. whooami
    Member
    Posted 3 years ago #

    ok. http://magnusfx.com/wp-includes/images/smilies/

    now lets see a post with a smilie in it? and you do know that ie6 doesnt like .png files right? (i know you know that, but I had to ask)

  8. Tristopolis
    Member
    Posted 3 years ago #

    well.. its for the comments. Emoticons used to work with comments before I changed the array. Why don't they now? http://magnusfx.com/?p=7 <- has emoticons in the comments

  9. Tristopolis
    Member
    Posted 3 years ago #

    :(

  10. hierogliefje
    Member
    Posted 3 years ago #

    My guess is ... the whitespace will cause you to type: " :D" instead of ":D"..
    try getting rid of the whitespace in your array:
    ' :)' => 'icon_smile.png', >>>> should be ':)' => 'icon_smile.png',

    I hope that will solve your smiley problem.

  11. Saurus
    Member
    Posted 3 years ago #

    But it still does not address the issue whooami noted - that being that PNG files do not play nicely with IE. so if a visitor uses IE - it's all for naught.

  12. hierogliefje
    Member
    Posted 3 years ago #

    That problem could be solved by uploading your own smileset, in gif

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.