Div ID tag BBcodes?

  • Thread starter Jondot
  • 9 comments
  • 843 views
6,584
United Kingdom
Kent, UK
GTP_Jondot
I was trying to help G.T organise his GT4 FAQs a few months ago, and i was looking for some way of linking to a certain block of text a bit further down his huge post.

It just came back to me (for some reason), and i realised how it would be possible.

As html is disabled, would it be any harm to introduce div id bbcodes? I guess it would work something like this:

[div id=*text you want] Link to this[/div id]

And then further up the page, you link to that bit of text with "#*text you want*", like This.


I think it'd be a great aid for things like FAQs, as well as people's photomode galleries - It's a pain in the behind to link to 15 million different posts, and it's soooo much easier to link to parts within one post ;)


Just an idea. I hope it makes sense :lol:

Thanks

Jon.
 
This is actually done with anchor tags, with don't pose any real page formatting threat. It's easy enough to add so I went ahead and included it for you, learn how to use it here.
 
That means it would probably to best to use the anchor tag in conjunction with a header, right? (By “header”, I mean bolded text surrounded by whitespace. ;))
 
Yes. You will need to include text between the anchor tags for the vB code to display and be functional. I just updated the example for clarification.
 
Jordan
This is actually done with anchor tags, with don't pose any real page formatting threat. It's easy enough to add so I went ahead and included it for you, learn how to use it here.

Ooo, thanks :)

Car1

EDIT

Doesn't appear to be working :(
 
Yeah, same here. I've been trying to do some in my GT4 FAQs, but they all seem to be dead links.
 
Works for me
Code:
https://www.gtplanet.net/forum/showthread.php?p=2234042#Car1

Note, you have to pull any other anchor off the URL to get it to work. Like, the red part here:
Code:
https://www.gtplanet.net/forum/showthread.php?p=2234267[color=red]#post2234267[/color]
 
I did...

Hmm, very odd...

Works now anyway :) Still doesn't automatically do it when you stick it in the address bar, but meh.
 
Anchor tags and URLs are case sensitive, perhaps that is your problem?
 
Ahhh, yes, I was forgetting one little bit. It works now. Thanks!

Edit: Hehe, it's going to take a while to do the whole of the FAQs. :D
 
Back