It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index DEVPPL.com Feedback / Bug report

BBCode not working properly

Report bugs and tell us what you want on DEVPPL and in this forum.

BBCode not working properly

Postby rangana on Thu Aug 28, 2008 1:34 am

PHP Bbcode is'nt working properly. The normal code was a doctype with nothing at the beginning, but when there is a DOCTYPE, DEVPPL's parsing of bbcode seems erroneous :roll:
[php]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<style type="text/css">
*{margin:0px;padding:0px;}
#hold{width:850px;
margin:20px auto;
padding:10px;
}
img{width:250px;height:200px;margin:5px;cursor:pointer;border:5px solid #fff;}
.active{border:5px solid #f00;}
</style>
[/php]
Last edited by rangana on Tue Sep 02, 2008 4:27 am, edited 1 time in total.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby webmaster on Thu Aug 28, 2008 7:21 am

Humm, that has been working before, I'll take a look at that and get back here.
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby rangana on Sat Aug 30, 2008 7:34 am

After a few testing, I see that the problem is reproducible even if there is no DTD/tags (just the bbcode itself):
[php][/php]

Something is wrong on the way it is being parsed/show on the page then.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby webmaster on Sun Aug 31, 2008 11:07 am

Alright, it should be working now. We have got a weird width of this thread, I haven't found out why yet. But when I post new posts with PHP-code in now, it works fine. I'll keep this topic open so we can try it some more now the following days.

I added a vertical scroll so the code shouldn't break the layout.
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby rangana on Tue Sep 02, 2008 4:37 am

Yes, you're right, and I've found the reason behind it. Please refer to this thread instead:
here-vp46042.html#46042
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby webmaster on Tue Sep 02, 2008 7:29 am

Working on it again then :)
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby rangana on Tue Sep 02, 2008 7:38 am

Haha, no problem. Take your time.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 0 guests