Jump to content

Download: Anchor BBCode


Timberwolf1771

Recommended Posts

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

Posted

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?

Posted

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...
Posted

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?

Posted

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.

Posted

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.

  • 8 months later...
  • 2 weeks later...
Posted

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.

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...