Porting Templates » Administration » Special:RecentChangesLinked » Special:WhatLinksHere » Plugin smileys
From LifeType Wiki
Name: Smiley
Download link: http://sourceforge.net/projects/lifetype/files/
License: GPL
Author: The LifeType Project
Description
This plugin offers you to show the smileys in comments and articles.
Configuration
The plugin configuration page can be found under Control Center->Appearance Management.
You can use:
- $smileys->generateSmileysBar() to show visual smileys tool bar.
Add the following code to commentForm.template after commentText text area:
{if $smileys->isEnabled()}
<script type="text/javascript" src="{$url->getBaseUrl()}/plugins/smileys/js/smileys/smileys.js"></script>
<br/><label for="smileysBar"></label>{$smileys->generateSmileysBar()}
{/if}
Notes
In order for this plugin to work, you need to change the "id" attribute of your form in commentsform.template so that it has "NewComment" as the value, as in:
<form id="NewComment" name="NewComment" ....> ... </form>
There is no need to change the value of your current "name" attribute.
