Page 1 of 1

auto linking to sensei's library

Posted: Tue Jun 08, 2010 5:48 am
by willemien
Is maybe far fetched and impossible, but what i would like is that (as on sensei's library we can link to other pages (in sensei's library ) by putting them in [brackets] without haveing to use to typ thewhole http link.

(I am rather lazy :lazy:)

Re: auto linking to sensei's library

Posted: Tue Jun 08, 2010 6:43 am
by Harleqin
That would be difficult to do without interfering with the BBCode parsing. Some alternate syntax would need to be devised, e.g.:

Code: Select all

[sl]takabasami[/sl]
[sl=niken tobi]

Re: auto linking to sensei's library

Posted: Tue Jun 08, 2010 8:30 pm
by schultz
It should be doable just with the bbcode, at least as much as I know about it. Not sure how much work it would actually be, though, so I'll leave it up to an actual admin to say that.

Maybe I'll take a look at it and see if I can come up with anything.

Re: auto linking to sensei's library

Posted: Tue Jun 08, 2010 8:51 pm
by fwiffo
Added. You can use two syntaxes:

Code: Select all

[sl=TanukiNoHaraTsuzumi]Cool Tesuji[/sl]
[sl]TanukiNoHaraTsuzumi[/sl]

[sl=TanukiNoHaraTsuzumi]Cool Tesuji[/sl]
TanukiNoHaraTsuzumi

Re: auto linking to sensei's library

Posted: Tue Jun 08, 2010 8:56 pm
by schultz
fwiffo wrote:Added. You can use two syntaxes:

Code: Select all

[sl=TanukiNoHaraTsuzumi]Cool Tesuji[/sl]
[sl]TanukiNoHaraTsuzumi[/sl]

[sl=TanukiNoHaraTsuzumi]Cool Tesuji[/sl]
TanukiNoHaraTsuzumi

Or I could just wait a few minutes and watch fwiffo get it done. ;)

Re: auto linking to sensei's library

Posted: Tue Jun 08, 2010 10:00 pm
by fwiffo
Well, it's the exact kind of thing that BBCode is good at. One technical limitation of BBCode though - it (probably) won't work to link to SL subpages; you'll have to use the [url] tag for that.

Re: auto linking to sensei's library

Posted: Tue Jun 08, 2010 11:15 pm
by schultz
fwiffo wrote:Well, it's the exact kind of thing that BBCode is good at. One technical limitation of BBCode though - it (probably) won't work to link to SL subpages; you'll have to use the [url] tag for that.

Yeah, I was pretty sure this was the case, but didn't want to say "Oh this is super easy" and then get everyone's hopes up and have one of you guys mumbling under your breath at me.

Re: auto linking to sensei's library

Posted: Sat Jun 12, 2010 9:49 am
by willemien
Thanks

another problem

i see al those nice go related bbc codes but how do they work?

(They are not explained on the faq)

Re: auto linking to sensei's library

Posted: Sat Jun 12, 2010 6:29 pm
by fwiffo

Re: auto linking to sensei's library

Posted: Sun Jun 13, 2010 4:01 am
by willemien
That is good but maybe better as announcement (above the bar)

also plost something about the nice sl tag

Re: auto linking to sensei's library

Posted: Sun Jun 13, 2010 12:51 pm
by fwiffo
Alright, I've made the SGF and Diagram explanations global announcements, and I've added another describing the misc. other features like the sl tag and smilies. They're above the line everywhere, so nobody should have any trouble finding them.

Re: auto linking to sensei's library

Posted: Sun Jun 13, 2010 2:57 pm
by xed_over
then the other two announcement threads are no longer necessary, right?