Jump to content

Download: Anchor BBCode

Featured Replies

Posted

File Name: Anchor BBCode

File Submitter: Timberwolf1771

File Submitted: 14 Apr 2012

File Category: Miscellaneous XML Files

This is a simple anchor BBCode for your site.

Use can use this BBCode to link to anchors you set in posts. At this time, it cannot be used in pages, articles or blog posts.

When using this, make sure all the anchors on one page have unique anchor tags or the goto will jump to the first anchor.

If you have any questions, feel free to ask me here or at my own site The Northlands.

Thanks

Timberwolf1771 (Timberwolf)

Click here to download this file

  • Author

This is my first file, so if anybody has suggestions or comments, please feel free to let me know. :sorcerer:

Amazing! Whenever I worked on IP.Content Articles or Pages, I thought about how useful a compatible anchor system would be. And here we are! :D

  • Author

:D Thanks Con

I cannot find on your site where this is implemented, you say your demo is just your homepage, this is not helpful.

I do not want to sign up, but would like to see this in demo.

  • Author

Hi Extreme, Sorry about that. Here is the link to where I'm using it. It's in my blog post about Hockey. Hope that helps.

Thanks Timberwolf your a champ.

I really think this will come in handy around our board, I do like this a lot.

Keep up the great work! %7Boption%7D

  • Author

Thanks Extreme.

How would you implement a "TTP" button that you could put in the code?

It just occurred to me that some may wish to go back to the top, as easily as they went to the specific anchored text.

Possible?

  • Author

All you would have to do is at the top of your post put:

[anchor]top[/anchor]

then at the different areas where you want to give your readers the change to go back to the top you just add this:

[goto='top']TOP[/goto]


As long as the Anchor 1 code is there you can link to it from any place on your page as many times as you want. It will always bring the reader to that place. For this reason, the Anchor 1 code needs to be unique for the page so people don't choose the same thing.

  • 2 months later...

I really like this, timberwolf, but I'm not fully understanding why anchor 1 doesn't produce any text. I know I've gotta be doing something wrong.

Here's what my code looks like. Anchor 2 link to anchor 1 perfectly fine, there's just no text for anchor 1 though.


<div class="ipsBox">

<div class="ipsBox_container ipsPad">

<a name="pricing"></a>

<br>

<br>

<a href="#pricing">This is some random text to test out the anchor BBCode.</a>

<br>

</div>

</div>



I'm doing exactly as the BBCode wants. Does an option need to be added to allow for visual text in anchor 1, instead of an invisible anchor?

  • Author

Hi Kevin. You're using html code where this is actually BBCode.

Anchor 1 should be like this:

[anchor]top[/anchor]

Which doesn't produce any text. Anchor 2, which looks like this:

[goto='top']TOP[/goto]



Will have text that says TOP.

You would click on TOP and that will bring you to the top of the page.

Sorry for taking so long to get back to you, been a bit busy with school.

No, I'm using BBCode. What I showed you is what it looks like from Firebug, using the exact instructions in the readme file. I replied to your PM, so i guess we can go from there. Thanks for your time.

  • Author

No problem at all. You have it working as it was intended.

Thanks again, TW!

  • 8 months later...

I can no longer use the latest ipboard version. Is it normal ?

  • Author

Thank you, mistera. I'll upgrade my site over the weekend and have a look at it and get it working.

  • 2 weeks later...
  • Author

Hi Mistra. Sorry for taking so long, I've been moving and trying to help set up a school. I've updated my test board to 3.4.1, but it is working on there. Later today I will update the test board to 3.4.3 and see if it works there.

Hi Timberwolf ! any news about 3.4.3 ? i can give you access to my board if you need.

  • Author

Hi mistera. If you can PM details I'll have a look and see if I can figure out why it isn't working. :)

done :) thanks for support !

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.