You are here: Re: Template WYSIWYG php && tags « PHP Programming Language « IT news, forums, messages
Re: Template WYSIWYG php && tags

Posted by Bruno Barberi Gnecco on 03/23/07 21:49

Aggelos wrote:
> Dear developers,
> I am trying to find an answer to that rpoblem of mine for a very long
> time now... and still I had no luck.
>
> I have my tinyMCE WYSIWYG and I want to let people create an e-mail
> template.
> So i want the to type in the WYSIWYG :
> Dear <?= $subscriber->name ?>,
> You have a message from <?= $anotherSubscriber->name ?>
> Total messages: <?= $message->countMessages($subscriber->name); ?>
> Regards,
> Hero
>
> Another version of the above is:
> Dear <?= $NAME ?>,
> You have a message from <?= $MESSAGE_FROM_NAME ?>
> Total messages: <?= $TOTAL_MESSAGES ?>
> Regards,
> Hero
>
> Ignore the CAPITAL letters.
>
> And the question is... what options do I have of creating that
> template in my WYSIWYG store it in a DB and then be able to parse it.
> I believe that the most common answer would be using regular
> expression and replacing this variables with somthing else. But do you
> know any application that works like that... is that a common way to
> work ?
>
> Thank you.
>

Many do. Just search for 'templates php' and you'll see many
examples. It is the most common way to do it. In fact, I can't see
any other good way to do it.

--
Bruno Barberi Gnecco <brunobg_at_users.sourceforge.net>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация