Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 18 Feb 2014, 07:00
ClaymanX ClaymanX is offline
 
Join Date: Dec 2013
Anchor dont work

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: [jumpto=aname]This takes you to a new location within a post[/jumpto]
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 [aname] 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[/aname]
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
Reply With Quote
  #2  
Old 18 Feb 2014, 22:34
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
That =!= sign should be a #.
Reply With Quote
  #3  
Old 18 Feb 2014, 22:51
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Don't see ! In that code
Reply With Quote
  #4  
Old 18 Feb 2014, 23:36
midnz's Avatar
midnz midnz is offline
 
Join Date: Jul 2010
Real name: Wayne
Shouldn't there be <a id="">xxxx</a> in the named anchor link?
Reply With Quote
  #5  
Old 19 Feb 2014, 22:07
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Originally Posted by ForceHSS View Post
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.

Originally Posted by midnz View 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">
Reply With Quote
  #6  
Old 25 Feb 2014, 10:10
ClaymanX ClaymanX is offline
 
Join Date: Dec 2013
Thank you squidsk, now it works gj
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:57.

Layout Options | Width: Wide Color: