Page 1 of 1

BBCode Support

Posted: Thu Feb 28, 2013 3:11 am
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.

Re: BBCode Support

Posted: Thu Feb 28, 2013 10:37 am
by les

I do know that not all BBCode is permitted

Re: BBCode Support

Posted: Thu Feb 28, 2013 3:40 pm
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.

Re: BBCode Support

Posted: Thu Feb 28, 2013 5:10 pm
by les

Send seraph0x a pm

Re: BBCode Support

Posted: Thu Feb 28, 2013 9:20 pm
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.

Re: BBCode Support

Posted: Fri Mar 01, 2013 8:42 am
by les

I think I am the only person who views every thread.

Re: BBCode Support

Posted: Sat Mar 02, 2013 10:07 pm
by crazyxxx
les wrote:
I think I am the only person who views every thread.
No, there's two of us :)

Re: BBCode Support

Posted: Sun Mar 03, 2013 9:36 am
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.

Re: BBCode Support

Posted: Sun Mar 03, 2013 2:38 pm
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.

Re: BBCode Support

Posted: Tue Mar 05, 2013 3:31 am
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/

Re: BBCode Support

Posted: Wed Mar 06, 2013 10:03 pm
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.