![]() |
The Smilies MacroSmiliesIntroductionIncluded in the example macros file is a function called smiley. This uses a modified version of smiley.py by Mark Andrews. It also requires the path module. These are both included as part of the rest2web distribution in the modules directory. If you move them elsewhere you should make sure they are on the Python search path [1]. If you don't know what I'm on about then leave them where they are The SmiliesTo use the smilies you use the smiley macro. This can be either {smiley;SMILEY} or the shorter form {sm;SMILEY}. Replace SMILEY with the symbols for the the smiley you want to display. For example {smiley;8)} becomes Here is the full smiley set :
The Missing Smilies
Because they contain a ";" [2], we can't yet use these smilies. They both represent the same smiley. You have to use it in its other form; :wink: -- Alternative Smiley SetsThe nice thing about smiley.py is that it supports any smile sets with a .pak file. This is the standard for smiley sets that is used by phpbb. You can find alternative sets of smilies at the stylesdb website. Simply replace the docs_html/images/smilies directory with an alternative set to use them. smiley.py will automatically create the right links by reading the .pak file. You will need to edit the smiley function in macros.py to have the right path to the smilies directory (to read it) and the right final path to the smilies for your site. Credits
Return to Top |
||||