PDA

View Full Version : Link to another web site????


mghaner
Jul-15-2006, 08:01 AM
I have searched and searched to no avail. Maybe I missed it as I am sure this has to be one of those topics that get brought up alot. I really hate to post and jam up the folks that know what they are doing so up front I am sorry for wasting anyones time with a stupid post....

All I want to do is find out the code for putting a link on my site so viewers can go to somewhere else from my site. I also would need to know where to put the link on my page setup. I have made alot of changes to the basic smugmug but want to keep on going.

Thanks in advance to anyone that can help me on this.

Andy
Jul-15-2006, 08:13 AM
I have searched and searched to no avail. Maybe I missed it as I am sure this has to be one of those topics that get brought up alot. I really hate to post and jam up the folks that know what they are doing so up front I am sorry for wasting anyones time with a stupid post....

All I want to do is find out the code for putting a link on my site so viewers can go to somewhere else from my site. I also would need to know where to put the link on my page setup. I have made alot of changes to the basic smugmug but want to keep on going.

Thanks in advance to anyone that can help me on this.
:wave Hi and Welcome to dgrin!

It sure helps if we know your website on SmguMug :deal

BUT, you can do this, in your BIO, or ANY Gallery Description, or any photo caption:



<html>
Blah blah blah my text blah blah blah. If you want more information, you can click <a href="http://www.smugmug.com">click here!</a>.

</html>



Does this help?

LeDude
Jul-15-2006, 08:13 AM
First, it helps to put a link to your site in your message here.

Here's a link to the "Links" gallery (http://ledudeprojects.smugmug.com/gallery/1151586) I have on my site.

Next is a snippet of code that goes in the photo captions (it points to the address and "Antibalas Afrobeat Orchestra (Featured)" is the text that one would click on to activate the link.

<html>
<a href="http://www.antibalas.com/" target="_blank">Antibalas Afrobeat Orchestra (Featured)</a>
</html>
html can beplaced in any caption or gallery description; and, a few other places too, but we'll need to see your site layout to determine what makes sense

hope this helps,
Rich

LeDude
Jul-15-2006, 08:15 AM
Andy... are you omnipresent? How can you possibly always be here and ready to answer questions... unless, you are omnipresent; the ALL-Seeing eye of Andy! :uhoh

[edit: the ALL-seeing, sometimes winking eye of Andy!]

Andy
Jul-15-2006, 08:16 AM
this bit, btw,

target="_blank"

will force the link to open in a new window. Quite nice

(edited by mike... sorry there was one too many quotation marks and I didn't want people to get confused :thumb)

dogwood
Jul-15-2006, 09:35 AM
target="_blank"


I've been using:

target= "blank"

without the _ and it seems to work fine. Should I change it? Do they both work?

rainforest1155
Jul-15-2006, 10:54 AM
I've been using:

target= "blank"

without the _ and it seems to work fine. Should I change it? Do they both work?
It works as long as there's no other browser window/tab opened that has the internal name "blank". With "_blank" instead you force the browser to open another window regardless of the other windows that are open.

So you better use the "_blank" in order to avoid possible confusion with other sites.

Sebastian

mghaner
Jul-15-2006, 11:46 AM
I think that makes sense, I will try it out. I need to go in and change my profile on DG so one can click to my site. www.mikehaner.com I just started about a month ago so I am still getting things figured out (or at least trying to) Thanks again for the great responses to my question. I will work on the site a bit later and see if I can get it to do what I want.

Mike

mghaner
Jul-15-2006, 11:49 AM
What if I want to have a link down at the bottom like where my email link is. Would I just put that script down in the footer like I did the script to have my email link down there?

Andy
Jul-15-2006, 12:00 PM
What if I want to have a link down at the bottom like where my email link is. Would I just put that script down in the footer like I did the script to have my email link down there?

You could, but better would be this in your footer section:

<div id="myLink1">
<a href="http://www.smugmug.com>Click here for more info!</a>
</div>


And they we use CSS to position and style (color, font, etc) the link on your pages.

dogwood
Jul-15-2006, 05:28 PM
It works as long as there's no other browser window/tab opened that has the internal name "blank". With "_blank" instead you force the browser to open another window regardless of the other windows that are open.

So you better use the "_blank" in order to avoid possible confusion with other sites.

Sebastian

Aaaahh-- guess I have a lot of "_'s" to add... thanks for clearing that up.

Mike Lane
Jul-15-2006, 05:46 PM
Good to see another tacoma photographer on dgrin :thumb

mghaner
Jul-18-2006, 12:41 PM
Do I just put the code listed below starting with the <html> and change the URL to the one I want along with the description (in the case below, Antibalas Afrobeat Orchestra) and just put all of it right in the copy I use for my bio or photo caption or does it go in the CSS or footer? What if I want to have a link in my bio that goes to my blog or my guestbook (which is just a journal gallery on my site) and BTW, is there anyway to hide my guestbook gallery so it does not show up like a regualr gallery but is only accessable via a link? THere is so much I want to do to my site to make it cooler but I am a total HTML idiot. Thanks for all of you folks help on this.
Mike

First, it helps to put a link to your site in your message here.

Here's a link to the "Links" gallery (http://ledudeprojects.smugmug.com/gallery/1151586) I have on my site.

Next is a snippet of code that goes in the photo captions (it points to the address and "Antibalas Afrobeat Orchestra (Featured)" is the text that one would click on to activate the link.

<html>
<a href="http://www.antibalas.com/" target="_blank">Antibalas Afrobeat Orchestra (Featured)</a>
</html>
html can beplaced in any caption or gallery description; and, a few other places too, but we'll need to see your site layout to determine what makes sense

hope this helps,
Rich

Andy
Jul-18-2006, 12:59 PM
Do I just put the code listed below starting with the <html> and change the URL to the one I want along with the description (in the case below, Antibalas Afrobeat Orchestra) and just put all of it right in the copy I use for my bio or photo caption or does it go in the CSS or footer? What if I want to have a link in my bio that goes to my blog or my guestbook (which is just a journal gallery on my site) and BTW, is there anyway to hide my guestbook gallery so it does not show up like a regualr gallery but is only accessable via a link? THere is so much I want to do to my site to make it cooler but I am a total HTML idiot. Thanks for all of you folks help on this.
Mike
In your bio, caption, or gallery description.

rainforest1155
Jul-18-2006, 01:24 PM
What if I want to have a link in my bio that goes to my blog or my guestbook (which is just a journal gallery on my site) and BTW, is there anyway to hide my guestbook gallery so it does not show up like a regualr gallery but is only accessable via a link?
Like Andy said. If you want more links, just copy that <a ....>....</a> part again into the <html>...</html>-tag (you need this one only once).
If you want a line break, e.g. between two links, use: <br />
It only consists of one tag without a closing tag and can be used multiple times, too.

Not having a gallery show up on the hompage is done with the 'public' setting in the gallery customizations set to off and thus making it a private gallery.

Hope this helps,
Sebastian

mghaner
Jul-18-2006, 02:17 PM
OK, now it makes sense and works great, thanks for all the help on this. I am sure that I will need alot more as I continue to work on my site.