Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
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]
 




____________
Gabriel Anca
 
KasLimonSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

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




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
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
 




____________
Gabriel Anca
 
KasLimonSend private messageVisit poster's website  
Back to topPage bottom
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.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: 027-0003 Self Closing Bbcode Tags Doesn't Allow Params 
 
Thanks
 




____________
Gabriel Anca
 
KasLimonSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron