Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: sangham.net on October 05, 2013, 02:54:33 AM

Title: BBC codes: Anchor and other attributes possible within a post?
Post by: sangham.net on October 05, 2013, 02:54:33 AM
Dear SMF friends and supporter,

somehow I believe that there was a possibility to place additional attributes into BBC tag, but I can not remember and maybe I confuse it.

Anyhow. Is it possible to place attributes like an anchor "id=xxx" and "title=xxx" within the bbc tags?

Thanks a lot!
Title: Re: BBC codes: Anchor and other attributes possible within a post?
Post by: Colin on October 05, 2013, 04:22:21 AM
I think it should be


[anchor=hi]Hi[/anchor]

[url=#hi]Link to anchor[/url]
Title: Re: BBC codes: Anchor and other attributes possible within a post?
Post by: sangham.net on October 05, 2013, 04:30:58 AM
That is.... (#post_hi)









































(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsangham.net%2FSmileys%2Fsangham%2Fthumb_sangham_sw.gif&hash=04b3489fa52c515d27152706d6e5be73653bbbf7)

Perfect! Thanks

Could not find it in the BBC documentation.
Title: Re: BBC codes: Anchor and other attributes possible within a post?
Post by: sangham.net on October 05, 2013, 04:52:09 AM
I guess there was even a title tag, wasn't there?

Thanks
Title: Re: BBC codes: Anchor and other attributes possible within a post?
Post by: Branko. on October 05, 2013, 05:28:04 AM
Basic BB Codes  (http://docs.simplemachines.org/index.php?topic=57) and look for BBCode without buttons on the interface.
Title: Re: BBC codes: Anchor and other attributes possible within a post?
Post by: sangham.net on October 05, 2013, 05:42:53 AM
Yes!, it's all in the Alphabetical list of all bulletin board codes  (http://wiki.simplemachines.org/smf/Alphabetical_list_of_all_bulletin_board_codes). Could not find it first, as it seems to be just linked for the entrance BBC-code page.

Wonderful, Thank!
Title: Re: BBC codes: Anchor and other attributes possible within a post?
Post by: Arantor on October 05, 2013, 09:31:00 AM
Also note the iurl tag is designed for this, whereas url is not.
Title: Re: BBC codes: Anchor and other attributes possible within a post?
Post by: sangham.net on October 05, 2013, 10:18:26 AM
Thanks a lot for your care and hints. Just tested it and it seems to be same-same.

Hmm...   test the url - tag (#post_n) test the iurl - tag (#post_m)

[anchor=h]Hmm...[/anchor]  [iurl=#n] test the url - tag[/iurl] [iurl=#m]test the iurl - tag[/iurl]



















































Look
iurl back to the top (#post_h)

[anchor=n]Look[/anchor][right][iurl=#h]iurl back to the top[/iurl][/right]










































Look again
url back to the top (#post_h)

[anchor=m]Look again[/anchor][right][iurl=#h]url back to the top[/iurl][/right]

Or did you mean in reference with a link from "outside"...
Title: Re: BBC codes: Anchor and other attributes possible within a post?
Post by: Arantor on October 05, 2013, 10:25:54 AM
If you notice in your post, all the tags are iurl tags... iurl means internal URL, i.e. going to the same site and frequently the same page.
Title: Re: BBC codes: Anchor and other attributes possible within a post?
Post by: sangham.net on October 05, 2013, 10:31:35 AM
Ohh... I see, it automatically changed. Brilliant (http://www.simplemachines.org/community/index.php?topic=512192.msg3618584#post_hi)! and understandable. I did not look after editing.

[iurl=http://www.simplemachines.org/community/index.php?topic=512192.msg3618584#post_hi][b]Brilliant[/b][/iurl]

Just saw, that it does not automatically change if a http... link is used in addition.

The reference much be direct to the post, i guess let's look (http://www.simplemachines.org/community/index.php?topic=512192#post_hi) No, works well for the topic as well.

[iurl=http://www.simplemachines.org/community/index.php?topic=512192#post_hi][b]let's look[/b][/iurl]

Title: Re: BBC codes: Anchor and other attributes possible within a post?
Post by: sangham.net on October 11, 2013, 12:33:25 PM
Just wanted to mention that the anchor id does not like numbers (other I have not tested yet. Just in the case somebody would face that problem either, not knowing the reason why the tag is not integrated as tag but simply as text.

Anyhow, great.