Implementing Smileys [SOLVED]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
David_Geoffrey
Forum Members
Forum Members
Posts: 65
Joined: Tue May 22, 2007 10:05 pm

Re: Implementing Smileys

Post 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??
tobik
Translator
Translator
Posts: 149
Joined: Thu Aug 16, 2007 6:18 pm

Re: Implementing Smileys

Post 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.
David_Geoffrey
Forum Members
Forum Members
Posts: 65
Joined: Tue May 22, 2007 10:05 pm

Re: Implementing Smileys

Post 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  ;)
Post Reply

Return to “Modules/Add-Ons”