[pmwiki-users] Improvement suggestion for Smilies-Recipe

botcherO botcherO at wynx.de
Wed Sep 27 04:25:58 CDT 2006


Hello everyone, I'm the new one ;))

I'm configuring the PMWiki System for a small Site i own. While installing and testing the Smilies recipe, I found a little improvement for adding the Smilies  to the GUI Buttons in the config.php.
I used the variable "$SmileysFolder" instead of "$GUIButtonDirUrlFmt".
(which requires that "smileys.php" is included before adding the buttons)

OLD CODE:
$GUIButtons['happy'] = array(710, '\{happy\}', '', '',
                  '$GUIButtonDirUrlFmt/happy.gif"$[Happy]"');

NEW CODE:
$GUIButtons['happy'] = array(710, '\{happy\}', '', '',
                  '$SmileysFolder/happy.gif"$[Happy]"');


This has the following advantages:

- Only one place for the gfx-files, small reduction of used webspace.
- It's easier to modificate and change the gfx-files.

So, how's about to change this in the PMWiki-Cookbook?

greetings,
botcherO




More information about the pmwiki-users mailing list