PDA

View Full Version : how do I shorten a link??


pegleg
04-03-2002, 07:05 AM
When supplying a link, how do I shorten it from

http://www.skytechimages.com/pages/cpcheli.htm

to "click here" or just "here"

Thanks, Bob

Duck Duck Goose
04-03-2002, 07:56 AM
Check out where it says VB Code is ON (http://boards.straightdope.com/sdmb/misc.php?s=&action=bbcode) at the bottom of the page here somewhere. Or click on "Reply with Quote" for this post here (my post) to see how the trick was done for this link here.

Basically it's Bracket URL Equals the Address Bracket The Text Bracket End URL Bracket, which is how I manage to remember it. :D

TheLoadedDog
04-03-2002, 12:39 PM
Yup, ya type in this:

{URL="http://www.skytechimages.com/pages/cpcheli.htm"}Click here{/URL}

Replace the { and } with [ and ] respectively, and you'll wind up with this:

Click here (http://www.skytechimages.com/pages/cpcheli.htm)

Why A Duck
04-03-2002, 12:49 PM
For extra credit, you can provide examples without those darn {'s.

:p

Click here

Duck Duck Goose
04-03-2002, 01:17 PM
This version of VBulletin doesn't ask for the quotation marks, guys. If it has the quotation marks, it won't make a link anyway, whether or not you fool around with the other coding (and after all the time we spent learning to put them in there with the last version of VBulletin).

TheLoadedDog
04-03-2002, 01:42 PM
Dog to Duck1: Yair, I know there's a way to do that. I seem to remember Arnold or Coldie or someone going to great lengths to explain it once. I guess I could check the source to see how you did it, but it's 5:30am here in Sydney, I've been up with insomnia, so I'll just take your word for it... :)

Dog to Duck2: Thanks. You just fought a lil' bit o' ignorance. The link still works though. Anyway, I'll try to break the sixty-sixes and ninety-nines habit. Don't these cursed software developers know we Dopers are a luddite lot that hate change? Geez, I'm still getting used to Windows3.11. :D

Arnold Winkelried
04-03-2002, 01:55 PM
There are several ways to show coding examples with the vBcode included in the post. One method (mentioned by waterj2 recently) is to include a "blank" tag inside the "real" tag. The method I prefer is to use [ and ] for the beginning and ending square brackets, like so:

[b]bold example[/b]
will become
bold example

Arnold Winkelried
04-03-2002, 02:03 PM
Putting double quotes around urls in the url tag - that might still be necessary if the url contains special characters, e.g. a space. Does anyone have an URL with a space in it we can use as an example?

TheLoadedDog
04-03-2002, 02:33 PM
Why A Duck's Method:

Click Here

The Duck did it by typing:

Click Here




Arnold's Method:

[URL=http://www.straightdope.com]Click Here[/URL]

Arnold does it by typing:

[URL=http://www.straightdope.com]Click here[/URL]

Guys. let me know if I got that wrong. And DDG, look ma, no quotation marks! :D

I know this has all been shown before, but it's just for my own benefit to make sure I know how to do it. Not showing off at all. :P
Damn insomnia. I've got my second wind.

pegleg
04-03-2002, 03:29 PM
Thanks to DDG, LOADED DOG, WHY A DUCK (the not Bobs)and ARNOLD
The REAL Bob

TheLoadedDog
04-03-2002, 06:17 PM
Originally posted by pegleg
(the not Bobs)
BAND NAME!

Arnold Winkelried
04-03-2002, 06:27 PM
Originally posted by TheLoadedDog
Arnold's Method:

[URL=http://www.straightdope.com]Click Here[/URL]

Arnold does it by typing:

[URL=http://www.straightdope.com]Click here[/URL]

Guys. let me know if I got that wrong.

Since your assessment of my "method" was not 100% correct I took the liberty of correcting you.

TheLoadedDog
04-03-2002, 06:36 PM
Thanks Arnold, I hadn't realised I'd forgotten the semicolon (thought it looked a bit sparse at the time), but it worked anyway. This, on top of the fact that I got away with using quotation marks in my first post, despite DDG's assurance that doing so would bugger things up nicely...

Has vBulletin become idiotproof? :D

Mikahw
04-04-2002, 05:56 AM
Of course, the easiest way would be to hit the "http://" button right above the posting window.

Not that I... admit to using that button or anything. I code everything by hand. Yeah, that's it. :D

rowrrbazzle
04-04-2002, 06:59 PM
[b]test bold[/b]

rowrrbazzle
04-04-2002, 07:17 PM
Arnold, that's a lot neater than including a vB sequence inside another one.

I've found a tweak to this technique. You only have to provide the escape code for one of the brackets to disable the vB code. You can type the other brackets normally.

[b]test bold[/b]



There's only one thing to note: if you disable the closing code of the first field and the opening code of the next, vB will match the opening code of the first field and the closing code of the next like so:

[b]test bold[/b]

[b]test bold

So with multiple fields, always use the escape code for the same bracket. Left bracket of the opening code is probably a good choice.

Arnold Winkelried
04-05-2002, 07:23 AM
rowrrbazzle, your method may save on typing, but it offends my sense of symmetry. :mad:

Why A Duck
04-05-2002, 07:34 AM
That's why I stick with my empty code pair.

And I find typing [ or ] to be aesthetically unpleasing too. Not to mention I feel like I'm comic-book swearing when I do it. ;)

Why A Duck
04-05-2002, 07:36 AM
Sigh...

I meant typing [ and ] of course.

mumble-mumble-mumble