UBB Code correct use

From: Date: Tue, 11 Jan 2005 18:27:23 +0000
Subject: UBB Code correct use
Groups: php.general 
Request: Send a blank email to php-general+get-206090@lists.php.net to get a copy of this message
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

« previous php.general (#206090) next »