UBB Code correct use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux