News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Need help with hashtags

Started by norsac321, October 16, 2012, 10:36:27 AM

Previous topic - Next topic

norsac321

Hello, I was wondering is there any way I can add #(something here) to my topic url make it so that if you go to the URL you goto a part of the post and you dont go to the top of the post  ex: http://www.yoursite.com/This-is-a-topic/#abc [nofollow]  and here is a real one: http://www.minecraftforum.net/topic/659230-the-all-inclusive-guide-to-texturing/#font [nofollow]

Shambles

Yes of course, using an "anchor tag" :)

There's a brief description of the anchor tag in the wiki, here, but in brief this is how you could use it:

- find the part of the post you wish to tag and create an anchor point

This is the part [anchor=norsac321_anchor_1]I want to tag[/anchor]

- then, to use it, you refer to the anchor tag as {url}#post_norsac321_anchor_1, eg

To get to the anchor point click [url=http://mydomain.com/forum/index.php?topic=23456.1#post_norsac321_anchor_1]here[/url]

norsac321

Quote from: Shambles™ on October 16, 2012, 11:36:59 AM
Yes of course, using an "anchor tag" :)

There's a brief description of the anchor tag in the wiki, here, but in brief this is how you could use it:

- find the part of the post you wish to tag and create an anchor point

This is the part [anchor=norsac321_anchor_1]I want to tag[/anchor]

- then, to use it, you refer to the anchor tag as {url}#post_norsac321_anchor_1, eg

To get to the anchor point click [url=http://mydomain.com/forum/index.php?topic=23456.1#post_norsac321_anchor_1]here[/url]
Ok thanks!

Shambles

You can of course use a shorter method if your #link is within the same topic

This is the part [anchor=norsac321_anchor_1]I want to tag[/anchor]

To get to the anchor point click [iurl=#norsac321_anchor_1]here[/iurl]

Advertisement: