You are here: UBB Code correct use « PHP « IT news, forums, messages
UBB Code correct use

Posted by Bruno B B Magalh�es on 06/12/43 11:05

Hi people,

I have a small class that encodes and decodes ubb code, no problem with
this.. But..

My question is, what is the correct use of the translation routines in
a CMS... I meam:


When creating a new article:
New article form ---> UBB Encode ---> Database
|
Eg. <b> encoded to [b]

When editing an article:
Database ---> UBB Decode ---> Edit form ---> UBB Encode ---> Database
|
Eg. [b] becomes <b>

When viewing in the site:
Database ---> UBB Decode ---> Display


Did you get what my question is? :)
What is the correct order... I mean, because I am having problems when
editing an article all the BRs are being duplicated, and other problems
that have to do with the order.

Regards,
Bruno B B Magalhaes

 

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

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