Icy Phoenix

     
 

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

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

Article
Reply with quote    Download Post  
Post 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]



 
KasLimon - View user's profile Send private message  
KasLimon [ Sun 16 Mar, 2008 10:50 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


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

Comments
Reply with quote    Download Post  
Post Re: 027-0003 Self Closing Bbcode Tags Doesn't Allow Params 
 
I cannot understand what the bug is...



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Wed 19 Mar, 2008 01:05 ]
Reply with quote    Download Post  
Post 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



 
KasLimon - View user's profile Send private message  
KasLimon [ Wed 19 Mar, 2008 10:29 ]
Reply with quote    Download Post  
Post 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.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Mon 07 Apr, 2008 00:20 ]
Reply with quote    Download Post  
Post Re: 027-0003 Self Closing Bbcode Tags Doesn't Allow Params 
 
Thanks



 
KasLimon - View user's profile Send private message  
KasLimon [ Wed 09 Apr, 2008 21:35 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1