BBCode Support

Post all technical issues and questions here. We'll gladly help you wherever we can.
Post Reply
User avatar
Ph0enixAsh
Explorer At Heart
Explorer At Heart
Posts: 122
Joined: Tue Jul 27, 2010 2:07 am
Gender: Male
Sexual Orientation: Straight
I am a: Switch
Location: EST:USA

BBCode Support

Post by Ph0enixAsh »

Hopefully this thread title will be general enough to allow unified and continued use of this thread in the future.

My query is in relation to a probable bug. I discovered while writing a PM that the [code] tag doesn't work properly across the site. BBCode still executes inside the code tags (rather than escaping them) and I have to use the hack below to get the expected output...

INPUT:
[code=text]
[img]http://www.inkflux.com/image.png[/img]
[/code]
EXPECTED RESULT:

Code: Select all

[[size=100]img[/size]]http://www.inkflux.com/image.png[/img]
OBSERVED RESULT:

Code: Select all

[img]http://www.inkflux.com/image.png[/img]
CURRENT WORKAROUND:
normal size tag nested inside the tag to be /escaped. Used to show expected result above.
[code=text]
[[size=100]img[/size]]http://www.inkflux.com/image.png[/img]
[/code]
FURTHER OBSERVATIONS:
The [nobbc] tag does not appear to be implemented either. This would be a handy addition, if possible. I had to use the same workaround for all printed bbcode above, whether inside code tags or not.

I don't know anything about setting up BBCode support so I don't know if anything can actually be done about the above but I figure it can't hurt to bring it up.

If there's anything I can do to help or debug, let me know. I'd be happy to do so.
Longest Denial: 61 Days
Image
User avatar
les
Experimentor
Experimentor
Posts: 6126
Joined: Thu Apr 19, 2007 10:04 am
Gender: Male
Sexual Orientation: Bisexual/Bi-Curious
I am a: Dom (Male)
Sub/Slave(s): My serfs
All 2 True is head Serf
Location: London England
Contact:

Re: BBCode Support

Post by les »


I do know that not all BBCode is permitted
                                          Lord Les
                                 Be careful what you wish for!

Growing OLD Is Inevitable,
          But Growing UP... Is Optional
                    OR
                              Why do I have to stop being a KID now I can afford it.







                                
                                                                                                                                                   
User avatar
Ph0enixAsh
Explorer At Heart
Explorer At Heart
Posts: 122
Joined: Tue Jul 27, 2010 2:07 am
Gender: Male
Sexual Orientation: Straight
I am a: Switch
Location: EST:USA

Re: BBCode Support

Post by Ph0enixAsh »

les wrote:
I do know that not all BBCode is permitted
I am aware that this is often the case on forums, but since Code is one of the shortcuts offered underneath the post editor, and it already halfway works, I assume that it was intended to be permitted. However, I assume this is the case for Nobbc but I see no reason for disabling it since it can only result in text output.
Longest Denial: 61 Days
Image
User avatar
les
Experimentor
Experimentor
Posts: 6126
Joined: Thu Apr 19, 2007 10:04 am
Gender: Male
Sexual Orientation: Bisexual/Bi-Curious
I am a: Dom (Male)
Sub/Slave(s): My serfs
All 2 True is head Serf
Location: London England
Contact:

Re: BBCode Support

Post by les »


Send seraph0x a pm
                                          Lord Les
                                 Be careful what you wish for!

Growing OLD Is Inevitable,
          But Growing UP... Is Optional
                    OR
                              Why do I have to stop being a KID now I can afford it.







                                
                                                                                                                                                   
User avatar
Ph0enixAsh
Explorer At Heart
Explorer At Heart
Posts: 122
Joined: Tue Jul 27, 2010 2:07 am
Gender: Male
Sexual Orientation: Straight
I am a: Switch
Location: EST:USA

Re: BBCode Support

Post by Ph0enixAsh »

les wrote:
Send seraph0x a pm
I guess I kind of assumed he'd come across it but I suppose that's assuming a lot, given the thread count here. PM sent.
Longest Denial: 61 Days
Image
User avatar
les
Experimentor
Experimentor
Posts: 6126
Joined: Thu Apr 19, 2007 10:04 am
Gender: Male
Sexual Orientation: Bisexual/Bi-Curious
I am a: Dom (Male)
Sub/Slave(s): My serfs
All 2 True is head Serf
Location: London England
Contact:

Re: BBCode Support

Post by les »


I think I am the only person who views every thread.
                                          Lord Les
                                 Be careful what you wish for!

Growing OLD Is Inevitable,
          But Growing UP... Is Optional
                    OR
                              Why do I have to stop being a KID now I can afford it.







                                
                                                                                                                                                   
User avatar
crazyxxx
Experimentor
Experimentor
Posts: 1199
Joined: Tue Jul 17, 2012 7:52 pm
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch
Location: Poland
Contact:

Re: BBCode Support

Post by crazyxxx »

les wrote:
I think I am the only person who views every thread.
No, there's two of us :)
seraph0x
Administrator
Administrator
Posts: 2666
Joined: Sun Jul 23, 2006 8:58 am

Re: BBCode Support

Post by seraph0x »

I view every thread in a few forums, but not every day. ;-)

I'll look into the bbcode issue. Thanks for the report.
seraph0x
Administrator
Administrator
Posts: 2666
Joined: Sun Jul 23, 2006 8:58 am

Re: BBCode Support

Post by seraph0x »

We are using a phpBB3 mod for syntax highlighting. This mod hasn't seen an update in many years, so my guess is that one of the phpBB updates since then introduced this bug. It could also be that I incorrectly applied an update.

Right now this bug doesn't have enough impact to warrant for me to spend a lot of time debugging.

If any PHP coders out there want to help, this is the mod we're using:

https://www.phpbb.com/community/viewtop ... 4&t=564569

So the first step would be to install that on a clean phpBB 3.0.11 and see if the bug described above occurs. If yes, the problem is with the mod, you could fix it and publish the fix. If not, then it means it's some problem specific to Milovana. If that's your finding let us know.
breathplayslut
Explorer
Explorer
Posts: 47
Joined: Thu Oct 08, 2009 10:50 pm

Re: BBCode Support

Post by breathplayslut »

Seems like you could program a custom BBCode tag, similar to the "spoiler" tag - I happen to know that forum software like the kind currently in use on this forum allows for this.

https://www.phpbb.com/kb/article/adding ... in-phpbb3/
seraph0x
Administrator
Administrator
Posts: 2666
Joined: Sun Jul 23, 2006 8:58 am

Re: BBCode Support

Post by seraph0x »

Tags with more advanced functionality like the

Code: Select all

 tag have to be added by modifying the PHP code unfortunately.

Note that the [code] tag actually comes built-in, we just added a mod for syntax highlighting.
Post Reply