Page 2 of 2

Re: Implementing Smileys

Posted: Tue Mar 10, 2009 9:29 am
by David_Geoffrey
Yes - I do.
The template for the page has this

     
     
        {title}
        {content|smileys}


I have to admit that as I am not a web-developer, I usual get things working as I want them by trial and error, so may have done something that breaks this elsewhere in the site??

Re: Implementing Smileys

Posted: Tue Mar 10, 2009 8:02 pm
by tobik
The displayed shortcut smiley pics are tags in the page source. Any has a alt attribute. The alt contains the text smiles.

Example

Code: Select all

<img src="smile.gif" alt=":-)">
If you now apply the smileys modifier on this page, the text smileys in the alt tag get replaced by another tag. This is a in a

Example

Code: Select all

<img src="smile.gif" alt="<img src="smile.gif" alt=":-)">">
This will spoil your page.

Re: Implementing Smileys

Posted: Tue Mar 10, 2009 10:22 pm
by David_Geoffrey
OK I understand it now. So to get round this I will need to apply the smiley modifier more sparingly! Perhaps create separate templates. Thank you very much

now I just have to sort out the js emoticon insertion  ;)