027-0003 Self Closing Bbcode Tags Doesn't Allow Params


Subject: 027-0003 Self Closing Bbcode Tags Doesn't Allow Params
I've been coding for an self-closing BBcode tag and I realised it doesn't allows params.

HR tag, for example, is self-closing but it allows params:
Code: [Download] [Hide] [Select]
$extras = $this->allow_styling ? array('style', 'class') : array();
if(isset($item['params']['param']))
{
$color = $item['params']['param'];
}
elseif(isset($item['params']['color']))
{
$color = $item['params']['color'];
}

But when I use params it returns false:
No params:

With params:
[hr=#FF0000]
[hr color=#FF0000]

Subject: Re: 027-0003 Self Closing Bbcode Tags Doesn't Allow Params
I cannot understand what the bug is... :roll:

Subject: Re: 027-0003 Self Closing Bbcode Tags Doesn't Allow Params
OK I'll try to explain it better.

The problem is that I cannot use parameters (color=, class=, ...) in self closing tags when posting
[hr color=#FF00EE], for example, doesn't work. But bbcode.php is prepared to allow this.

Look at this topic. We were trying to create a bbcode and it doesn't work because of this bug.

I hope you can understand me now :oops:

Subject: Re: 027-0003 Self Closing Bbcode Tags Doesn't Allow Params
Now I got your point.

I consider this a minor bug... I will test when I have some free time.

Subject: Re: 027-0003 Self Closing Bbcode Tags Doesn't Allow Params
Thanks :mricy:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 1.0121s (PHP: 2% SQL: 98%)
SQL queries: 29 - Debug Off - GZIP Enabled