[ACCEPTED] Anchors on forum posts

Locked
User avatar
Brennus
Posts: 533
Joined: 17 Jan 2013 05:25
Location: Argent Tournament Grounds

[ACCEPTED] Anchors on forum posts

#1 » Post by Brennus » 14 Nov 2016 18:41

Hello,

I'd like to suggest the implementation of BBCode "anchors".
It would be very helpful when creating guides or any kind of long posts that could benefit from a table of contents.



What the hell are you talking about? What is this "Anchor" thing?
Anchor are "links" that take you to another section of the same page.
For instance, in HTML, it is implemented with this as the Link to the anchor

Code: Select all

<a href="#example">Link</a>
and this as the Anchor itself (the target of the link created before)

Code: Select all

<a name="example">Target</a>
some people use this as Anchor instead (this one is just an example, I don't know if this is compatible with all browsers)

Code: Select all

<span id="example">Target</span>
A good example are the links in Wikipedia pages that are inside the "Contents" box.
Image
Screenshot taken from https://en.wikipedia.org/wiki/Gregorian_calendar




Speaking is easy, but implementing is hard!!!
Not at all. If the staff accepts this suggestion, it should be implemented like the following:


The Anchor

BBCode

Code: Select all

[anchor]{TEXT}[/anchor]
HTML

Code: Select all

<a name="{TEXT}"></a>


The Link (a.k.a. Go To)

BBCode

Code: Select all

[goto={TEXT1}]{TEXT2}[/goto]
HTML

Code: Select all

<a href="#{TEXT1}">{TEXT2}</a>



This solution was created by ferra1980.
Thanks.
•     Currently No longer Once again retired (now it's for real)     •
 
Image

User avatar
Jiranthos
Admin
Posts: 1979
Joined: 23 Jun 2015 03:43
Location: Not on your bad side, hopefully

Re: Anchors on forum posts

#2 » Post by Jiranthos » 14 Nov 2016 20:32

Not sure if this is doable in phpBB, but is worth researching, in my opinion. Although, I can already see that the URL's use an anchor already which anchors to a specific post in a thread.

http://www.truewow.org/forum/viewtopic. ... 77#p397295

The "#p397295" part will take you straight down to my post. Whereas removing it will start you off at the top of the page/thread.

This might conflict, as generally URLs are used for this purpose.

Everybody knows that the best way to describe the ocean to a blind man is to push him in

User avatar
Gnurg
Posts: 2420
Joined: 28 Jan 2013 19:38
Location: Oslo, Norway

Re: Anchors on forum posts

#3 » Post by Gnurg » 14 Nov 2016 20:38

+1
HAI
CAN HAZ STDIO?
VISIBLE "HAI WORLD, IZ GNURF!"
KTHXBYE

User avatar
Etro
Honorary Member
Posts: 2558
Joined: 14 Oct 2012 08:24
Location: Behind ccrs

Re: Anchors on forum posts

#4 » Post by Etro » 14 Nov 2016 21:55

omg....

http://truewow.org/forum/viewtopic.php? ... e&start=30

:( :( :( :( :( :(

3 years ago I had the exact same idea. That BBCode wasn't carried over to the new website and I completely forgot about it.

Anyways. implemented and it's [anchor new=anchorName][/anchor'] to create anchor and w/e text[/anchor'] to go to anchor.

[anchor=test]TEST


-
-
-
-
-
-
-
-
-
[anchor new=test][/anchor]
"With life, no matter what you do, you are all in. This is going to kill you. Might as well play the most magnificent game you can while you're waiting, because... Do you have anything better to do? Really?"

Locked

Who is online

Users browsing this forum: No registered users and 1 guest