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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
/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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
how do i add my own smilies to my php openchat chatroom so that they work with something like ;)???
please tell me
I believe you need to find where the icon_code is defined and add your new smiley. Report back if you find it.
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
* 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?
/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
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.
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.