• Resolved phoenix35

    (@phoenix35)


    I’m using 2.2.
    I don’t find in vars.php the smilies code for my comment !
    Where can I add my own smileys now if it’isnt in vars.php ???

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter phoenix35

    (@phoenix35)

    Ok !
    I found them they move to functions.php in 2.2

    its moved.

    Look inside wp-includes/functions.php starting at line 1426

    Better still, you can set them up in wp-config.php, which avoids having to do them again next time you upgrade WordPress.

    Thread Starter phoenix35

    (@phoenix35)

    Oh yes !!
    How to do this ?
    Which code do you write in it ?

    Put code like this:

    $wpsmiliestrans = array(
    ':)'	=> 'smile.gif',
    ';-)' => 'wink.gif'
    );

    Substituting your own codes and file names, of course. Make sure there are single quotes around each code and each file name, and that there is a comma at the end of each line except the last.

    Put it towards the end of the file, just before:

    require_once(ABSPATH.'wp-settings.php');
    ?>

    If you have a lot of custom smilies, it makes upgrading a little less awkward.

    So, um, it appears SOME of the info from the links below, is still valid. And SOME of it needs to be updated for WP 2.2.

    https://codex.www.ads-software.com/Using_Smilies

    which links to this interesting resource on Taming Smilies, that explains more detail what LesBessant was saying,
    https://aranea.zuavra.net/index.php/20/

    I’m going to try it

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Smilies and vars.php’ is closed to new replies.