PDA

View Full Version : Anchor dont work


ClaymanX
02-18-2014, 06:00 AM
Hello guys i have a question!

I use this bbcode for an anchor

Title: Anchor link
Tag: jumpto
Replacement: <a href="{relpath}#{option}">{param}</a>
Example: This takes you to a new location within a post
Description: The [jumpto] tag allows you to jump to another location within a post, usually used for long posts with headings and/or sections of interest. This tag <b>must</b> be used in conjunction with the tag. One is not functional without the other.
Use {option}: Yes
Click Save

Title: Named anchor link
Tag: aname
Replacement: <a name="{option}">{param}</a>
Example: [aname=aname]This is where you jump to
Description: The [aname] tag is used in conjunction with the <a href="#jumpto">[jumpto]</a> tag. One is not functional without the other.
Use {option}: Yes
Click Save

but they dont work

any ideas whats wrong with this code?

thank you

squidsk
02-18-2014, 09:34 PM
That =!= sign should be a #.

ForceHSS
02-18-2014, 09:51 PM
Don't see ! In that code

midnz
02-18-2014, 10:36 PM
Shouldn't there be <a id="">xxxx</a> in the named anchor link?

squidsk
02-19-2014, 09:07 PM
Don't see ! In that code

The symbol between {relpath} and {option} should be a # not a not equal to sign which is what I see it as in the post.

Shouldn't there be <a id="">xxxx</a> in the named anchor link?

No it should be name if you're anchoring to an <a> tag. You can use "id" to anchor another tag, for example <h1 id="linktome">Header 1</h1> will get linked to with <a href="#linktome">link</a> but for bbcode you want something (usually) that isn't visible so you'd use <a name="linktome">

ClaymanX
02-25-2014, 09:10 AM
Thank you squidsk, now it works :) gj