Menu

smilies?

Anonymous
2004-07-04
2004-07-12
  • Anonymous

    Anonymous - 2004-07-04

    how do i add my own smilies to my php openchat chatroom so that they work with something like ;)???

    please tell me

     
    • Anonymous

      Anonymous - 2004-07-09

      I believe you need to find where the icon_code is defined and add your new smiley.  Report back if you find it.

       
    • Michael Oertel

      Michael Oertel - 2004-07-09

      the first possibility is to add your own smiley is to edit the theme_config.inc.php. there you will find documentation like:
      * To add extra smileys to your theme, copy an image file to
      * /path/to/poc/include/templates/<your theme>/images/icons/smileys
      * and add the filename as code to this array.
      *
      * Example:
      * [copy]
      * > copy foo.gif /path/to/poc/include/templates/<your theme>/images/icons/smiley
      s
      * > copy bar.gif /path/to/poc/include/templates/<your theme>/images/icons/smiley
      s
      * [edit]
      * $extra_smileys = array(
      *   ':foo:',
      *   ':bar:'
      * );

      the second way is to edit class.Line.php, if you are a high skilled php developer. look for
      function _smiley_mapping($code)

      -letreo

       
    • Anonymous

      Anonymous - 2004-07-11

      * Example:
      * [copy]
      * > copy foo.gif /path/to/poc/include/templates/<your theme>/images/icons/smiley
      s
      * > copy bar.gif /path/to/poc/include/templates/<your theme>/images/icons/smiley
      s
      * [edit]
      * $extra_smileys = array(
      * ':foo:',
      * ':bar:'
      * );

      Thank you for your reply.  What file would this aray get added to?

       
      • Michael Oertel

        Michael Oertel - 2004-07-12

        /path/to/poc/include/templates/<your theme>/theme_config.inc.php
        is the file where the array $extra_smileys is located.
        Just like I wrote in my last post.

        -letreo

         
    • Anonymous

      Anonymous - 2004-07-11

      I tried this:

      I uploaded a image to my smiley folder and inserted the following at the top of insert_icon.tpl file:

      $extra_smileys = array(
      ':bar:',
      ':foo:'
      );

      This doesn't seem to work so I guess I am doing something wrong.

       
    • Anonymous

      Anonymous - 2004-07-12

      letreo

      I looked in /path/to/poc/include/templates/<your theme>/ for theme_config.inc.php and can't find a file named theme_config.inc.php  THis seems to be my problem locating the file "theme_config.inc.php"

      Thanks for  your input.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.