php forum
php mysql forum
php mysql smarty
 
Topic Options
#206359 - 11/25/00 09:50 AM markup
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
I am including some more markup, mostly images to the php version, so far so good... but I dont know how to do the [center]Text to be centered here [/center] in php... <br />Anyone? []/w3timages/icons/wink.gif[/]<br /><br />Mateo Byler<br /><A HREF="http://crucedecaminos.com" target="_new">CruceDeCaminos.com</A>
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#206360 - 11/25/00 10:31 AM Re: markup [Re: D_Wolfwood]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
OK, havent tested it, but I think it should be<br />Do markup:<br /> $Body = eregi_replace("<center>","[center]",$Body);<br /> $Body = eregi_replace("</center>","[/center]",$Body);<br /><br />Unmarkup:<br /> $Body = eregi_replace("\[center\]","<center>",$Body);<br /> $Body = eregi_replace("\[\/center]","</center>",$Body);<br /><br />Mateo Byler<br /><a href="http://crucedecaminos.com" target="_new">CruceDeCaminos.com</a>
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#206361 - 11/25/00 07:01 PM Re: markup [Re: D_Wolfwood]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8372
Loc: Olympia, WA
Yep, that should do it[]/w3timages/icons/wink.gif[/].<br /><br />---<br />Scream<br />WWWThreads Developer
_________________________
StogieSmokers.com

Top
#206362 - 11/25/00 07:44 PM Re: markup [Re: Sally]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
Well, that was done taking the example from the [ pre] tags in main.inc.php, but I have found even the [ pre] is buggy here...<br />When posting from the perl version, if you post [ pre], and dont close it, it does not get converted. That is good.<br />But in the PHP version, it does get converted even if there is no closing.<br />So I could ruin the whole page if I wanted to, well most.<br /><pre><br />This should almost be posted at the php bug forum, but since it is following this thread...<br />just tell me you´ve read it, Scream, or I´ll post it at the bugs forum as well, []/w3timages/icons/wink.gif[/]<br /><br /> <br /><br />Mateo Byler<br /><a href="http://crucedecaminos.com" target="_new">CruceDeCaminos.com</a>
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#206363 - 11/25/00 08:51 PM Re: markup [Re: D_Wolfwood]
Rick Offline
Guru

Registered: 05/11/99
Posts: 8372
Loc: Olympia, WA
Thanks for the info on the pre tag, got that patched up.<br /><br />---<br />Scream<br />WWWThreads Developer
_________________________
StogieSmokers.com

Top
#206364 - 11/26/00 10:00 AM Re: markup [Re: Sally]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
Hum... all this made me realize that you could do the same thing (though not that bad), if you leave the bold, and [i]itallic open as well. Maybe the technique of markup converting should be done here. For these it happens both in PHP and PERL.<br /><br />Mateo Byler<br /><A HREF="http://crucedecaminos.com" target="_new">[b]CruceDeCaminos.com</A>
_________________________
Mateo Byler
CruceDeCaminos.com

Top


Who's Online
0 registered (), 24 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Spell Check [beta]
by Bill B
Today at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Today at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Today at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Today at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks