by Jim » Sat Dec 11, 2010 5:39 pm
Does anyone know if anchors are supported in posts? For example, is it possible to link to a section in the same post further down the page?
-
Jim
- Global Moderator
-
- Posts: 4126
- Joined: Mon Nov 12, 2007 10:13 pm
- Location: NEOH
- Name: Jim
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by Gaieus » Sat Dec 11, 2010 5:43 pm
I am afraid, not. Calling the name tag in the link would not be a problem but how do you place it?
If anyone can create a safe bbcode, I can add it (or wait a minute, maybe I will try myself - I made the hr tag, too). Tomorrow however because I have to go out now.
Gai...
-

Gaieus
- Administrator
-
- Posts: 27725
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Jim » Sat Dec 11, 2010 5:49 pm
Thanks. If it's not too much trouble. I was going to put a type of "jump to author" links in the Plugins Index post. I can't think of a reason for them otherwise.
-
Jim
- Global Moderator
-
- Posts: 4126
- Joined: Mon Nov 12, 2007 10:13 pm
- Location: NEOH
- Name: Jim
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by Gaieus » Sun Dec 12, 2010 12:13 am
Makes sense (I "guessed" the reason). But as I am just back from a (kind of) class reunion, I dare not go to the admin panel now.
Tomorrow... (:Hick:)
Gai...
-

Gaieus
- Administrator
-
- Posts: 27725
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Dan Rathbun » Tue Jul 26, 2011 3:52 pm
One workaround.. is to have the index as the first post, and each author list as a separate post further down. You can link to the other posts in the same thread, as long as they exist first. (You could put a "back to index" link on each author post.)
You would need to lock the topic, to prevent all those "thankie" / "good work dude" type postings.
-

Dan Rathbun
- Top SketchUcator
-
- Posts: 4146
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by Dan Rathbun » Wed Jul 27, 2011 10:38 pm
Gaieus wrote:I am afraid, not. Calling the name tag in the link would not be a problem but how do you place it?
If anyone can create a safe bbcode, I can add it (or wait a minute, maybe I will try myself - I made the hr tag, too). Tomorrow however because I have to go out now.
I believe anchors can also use id attributes, however there would need to be a list of the ids that are already in use, and if a poster used one of those, the php would need to difference it (likely by appending the post number to it.) The same would need to be done with name attributes... as a subsequent poster may try and use the same text names in another post on the same page. so the bbcode url tag would be written [ url=#TIG ]TIG[ /url ] .. and further down the post the anchor would be made by a new [ anchor= ] bbcode. But the php would need to append "_ postnumber" to both the link, and the anchor. So if the post number was 339765, the link would become: - Code: Select all
[ url=#TIG_339765]TIG[ /url ]
which would be rendered as: - Code: Select all
<A HREF="#TIG_339765">TIG</A>
IF it's a problem to mess with the standard URL bbcode, then perhaps make a new bbcode called [ intralink ] or [ postlink ]... and the anchor would become: - Code: Select all
[ anchor=#TIG_339765 ][ b ]TIG[ /b ][ list ] ... [ /list ]
which would be rendered as: - Code: Select all
<A NAME="#TIG_339765"/><B>TIG</B><UL> ... </UL>
-

Dan Rathbun
- Top SketchUcator
-
- Posts: 4146
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by Gaieus » Sat Jul 30, 2011 12:31 pm
Dan Rathbun wrote:Gaieus wrote:I am afraid, not. Calling the name tag in the link would not be a problem but how do you place it?
If anyone can create a safe bbcode, I can add it (or wait a minute, maybe I will try myself - I made the hr tag, too). Tomorrow however because I have to go out now.
I believe anchors can also use id attributes, however there would need to be a list of the ids that are already in use, and if a poster used one of those, the php would need to difference it (likely by appending the post number to it.) The same would need to be done with name attributes... as a subsequent poster may try and use the same text names in another post on the same page. so the bbcode url tag would be written [ url=#TIG ]TIG[ /url ] .. and further down the post the anchor would be made by a new [ anchor= ] bbcode. But the php would need to append "_ postnumber" to both the link, and the anchor. So if the post number was 339765, the link would become: - Code: Select all
[ url=#TIG_339765]TIG[ /url ]
which would be rendered as: - Code: Select all
<A HREF="#TIG_339765">TIG</A>
IF it's a problem to mess with the standard URL bbcode, then perhaps make a new bbcode called [ intralink ] or [ postlink ]... and the anchor would become: - Code: Select all
[ anchor=#TIG_339765 ][ b ]TIG[ /b ][ list ] ... [ /list ]
which would be rendered as: - Code: Select all
<A NAME="#TIG_339765"/><B>TIG</B><UL> ... </UL>
[a=link]This is my anchored text[/a] [a=x]another try[/a]
Gai...
-

Gaieus
- Administrator
-
- Posts: 27725
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Gaieus » Sat Jul 30, 2011 12:44 pm
No matter what I try, it does not seem to work. Sorry guys.
Gai...
-

Gaieus
- Administrator
-
- Posts: 27725
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Gaieus » Sat Aug 20, 2011 3:13 pm
Jim, Dan, please, try the new anchor tag: - Code: Select all
[anchor={IDENTIFIER}]{TEXT}[/anchor]
I wonder if it works... 
Gai...
-

Gaieus
- Administrator
-
- Posts: 27725
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Jim » Sat Aug 20, 2011 3:33 pm
Thanks, I'll try it sometime today.  Wait, and how to link to it? Ok, seems to work... but I wonder why the anchor tag creates a link? maybe just to make it easier to get the link to the anchor. Anyway, thanks! It's working. - Code: Select all
[url=http://forums.sketchucation.com/viewtopic.php?f=76&t=33303&p=349541#test]Go to anchor[/url] Go to anchor- Code: Select all
[anchor=test]anchor[/anchor] anchor
-
Jim
- Global Moderator
-
- Posts: 4126
- Joined: Mon Nov 12, 2007 10:13 pm
- Location: NEOH
- Name: Jim
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by Gaieus » Sat Aug 20, 2011 4:26 pm
Well, seems to work however it also seems that it jumps just one line lower than the anchor tag. myanchor - Code: Select all
[anchor=myanchor]myanchor[/anchor]
And some text below
Gai...
-

Gaieus
- Administrator
-
- Posts: 27725
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Gaieus » Sat Aug 20, 2011 4:31 pm
Well, it seems to work properly - the one line jump was a false alarm. And yes, it creates a link since this input: - Code: Select all
[anchor={IDENTIFIER}]{TEXT}[/anchor]
will become this html code: - Code: Select all
<a href="#{IDENTIFIER}" id="{IDENTIFIER}">{TEXT}</a>
So basically without using the URL tag in the text, you can create links to anchored name tags...
Gai...
-

Gaieus
- Administrator
-
- Posts: 27725
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Jim » Sat Aug 20, 2011 4:33 pm
-
Jim
- Global Moderator
-
- Posts: 4126
- Joined: Mon Nov 12, 2007 10:13 pm
- Location: NEOH
- Name: Jim
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by Gaieus » Sat Aug 20, 2011 4:37 pm
Usernames with a space or dot in them get screwed. Can you change the space to an underscore? This somehow got a space at the end, too: - Code: Select all
[anchor=calum_greenspacelive ]calum_greenspacelive [/anchor]
Gai...
-

Gaieus
- Administrator
-
- Posts: 27725
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Jim » Sat Aug 20, 2011 4:51 pm
Yep, I need to substitute an _ for punctuation, etc. It should be updated by the time I post this.
-
Jim
- Global Moderator
-
- Posts: 4126
- Joined: Mon Nov 12, 2007 10:13 pm
- Location: NEOH
- Name: Jim
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by Gaieus » Sat Aug 20, 2011 4:53 pm
It works, thanks!
Gai...
-

Gaieus
- Administrator
-
- Posts: 27725
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Dan Rathbun » Sat Aug 20, 2011 5:54 pm
Looks like you should create the anchor first. Then get it's full url including the &post parm, and use that to set the [ url ] tag for the link.
So then there would no possibility of competing anchors between different posts on the same topic page.
-

Dan Rathbun
- Top SketchUcator
-
- Posts: 4146
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by Rich O Brien » Sat Aug 20, 2011 6:12 pm
Can someone explain the point of anchors? Uses for members and best application?
-

Rich O Brien
- Administrator
-
- Posts: 8418
- Joined: Fri Oct 31, 2008 9:05 am
- Location: Limerick, Ireland
- Name: Rich O'Brien
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
by Gaieus » Sat Aug 20, 2011 6:21 pm
Well, an anchor is some html tag that makes it possible to link to a (sort of) "bookmark" on a single page. Example: see where I posted in the Plugin Index. viewtopic.php?p=349563#p349563
Gai...
-

Gaieus
- Administrator
-
- Posts: 27725
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Jim » Sat Aug 20, 2011 8:01 pm
Rich O'Brien wrote:Can someone explain the point of anchors? Uses for members and best application?
A url with an anchor can link to a specific place on a page. I doubt anyone will have a need for them, but would be good for making a table of contents for a long post, as an example.
-
Jim
- Global Moderator
-
- Posts: 4126
- Joined: Mon Nov 12, 2007 10:13 pm
- Location: NEOH
- Name: Jim
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by Gaieus » Sat Aug 20, 2011 10:17 pm
Yes, something like that. Or when you post a longish tutorial, you can link to the individual steps inside the tut.
Gai...
-

Gaieus
- Administrator
-
- Posts: 27725
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Ad Machine » 5 minutes ago
Need Authorised SketchUp Training by experts in various disciplines? Check out our Training details.
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Old
|