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

Posted by Richard Lynch on 10/01/59 11:05

Bruno B B Magalhães wrote:
> Hi people,
>
> I have a small class that encodes and decodes ubb code, no problem with
> this.. But..

> 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.

*ONLY* call your routines to change [b] to <b> and new-line to <BR> in
"Display"

Database ---> UBB Decode ---> Display

* Of course, if you have a "Preview" in your UBB, then that's also a
"Display"

But you'll go *NUTS* if you try to convert back and forth as often as you
are now.

Minimize the number of times you need to use your decoder.

In fact, you should *NEVER* need to go from <B> to [b] unless you import
content from some outside source to 'seed' your forum.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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