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

Posted by Aggelos on 03/22/07 15:08

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.

 

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

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