The C-Brats Forum Index
HomeForumsMy TopicsCalendarEvent SignupsMemberlistOur C-DorysThe Brat MapPhotos

Embedding photos as links to urls

 
Post new topic   Reply to topic    The C-Brats Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
Sea Wolf



Joined: 01 Nov 2003
Posts: 8650
City/Region: Redding
State or Province: CA
C-Dory Year: 1987
C-Dory Model: 22 Cruiser
Vessel Name: Sea Wolf
Photos: Sea Wolf
PostPosted: Fri Aug 03, 2007 3:14 am    Post subject: Embedding photos as links to urls Reply with quote

I think I figured out how to embed photos in a post where clicking on the photos will link out to the full sized photo via the url.

The basic technique is to embed the thumbnail photo

[img]thumbnail address[/img]

then add [url=full sized photo address] and [/url] around the thumbnail address and image code.

So let's try it!


from thumbnail address surrounded by [img] and [/img]

then add the [url= full sized photo address] and [/url] around the above



Click on this!

from [url=full sized photo address[img]thumbnail address[/img][/url]

I figured this out by test quoting one of Oldgrowth Dave's post that had one of these and analyzing the code.

The second address you get when clicking on the photo doesn't have to be the full sized photo, but can be anything else with a url, right?


Click on this!

This is, I'm sure, elementary to proficient computer folks, but fun for me to figure out!

Joe. Teeth

_________________
Sea Wolf, C-Brat #31
Lake Shasta, California

"Most of my money I spent on boats and women. The rest I squandered'. " -Annonymous
Back to top
View user's profile Send private message Send e-mail
oldgrowth



Joined: 27 Jun 2005
Posts: 2196
City/Region: Rochester
State or Province: WA
C-Dory Year: 2002
C-Dory Model: 16 Cruiser
Vessel Name: C-Voyager
Photos: C-Voyager
PostPosted: Sat Aug 04, 2007 2:28 am    Post subject: Reply with quote

Joe – you could have asked me how I did it, but you are right. It is more fun and satisfying to figure it out by yourself.

I really like your third example above.

Sometimes it is hard to catch a mistake in imbedding thumbnails as links, especially when you have three on a line.

________
Dave
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jkidd



Joined: 23 Oct 2006
Posts: 1674
City/Region: Northern, Utah
State or Province: UT
C-Dory Year: 2007
C-Dory Model: 22 Cruiser
Vessel Name: Voyager
Photos: Voyager (JK)
PostPosted: Sun Aug 05, 2007 1:32 am    Post subject: Reply with quote

OK
So how do I get right code to show up instead of the PHP code
Here is what I get when I copy the shortcut.

[img]http://www.c-brats.com/modules.php?set_albumName=Voyager-JK&id=toast&op=modload&name=gallery&file=index&include=view_photo.php[/img]

_________________
Jody Kidd
KE7WNG
Northern, Utah

Back to top
View user's profile Send private message Send e-mail
oldgrowth



Joined: 27 Jun 2005
Posts: 2196
City/Region: Rochester
State or Province: WA
C-Dory Year: 2002
C-Dory Model: 16 Cruiser
Vessel Name: C-Voyager
Photos: C-Voyager
PostPosted: Sun Aug 05, 2007 2:21 am    Post subject: Reply with quote

Jody – the following is if you have Windows as your OS. If you are using Mac or Linux the procedure will be slightly different.

In your album, right mouse click on the thumbnail of the toast.

Then click on properties. The URL address is what you want.
It is http://www.c-brats.com/albums/Voyager-JK/toast.thumb.png

Then do the same for the image for the toast.
It is http://www.c-brats.com/albums/Voyager-JK/toast.png

These are the two addresses you want to work with.
Your URL is the address of the image.
The shortcut for your image is the address of the thumbnail.

So we have [url=address of image][img]address of thumbnail][/img][/url]
It looks like this
Code:
[url=http://www.c-brats.com/albums/Voyager-JK/toast.png][img]http://www.c-brats.com/albums/Voyager-JK/toast.thumb.png[/img][/url]


Which gives you this results. It is a hot spot (short cut) to your image of the toast.


The address you used in your example was the web page address for the toast. It will not work for these purposes.

________
Dave
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jkidd



Joined: 23 Oct 2006
Posts: 1674
City/Region: Northern, Utah
State or Province: UT
C-Dory Year: 2007
C-Dory Model: 22 Cruiser
Vessel Name: Voyager
Photos: Voyager (JK)
PostPosted: Sun Aug 05, 2007 2:26 am    Post subject: Reply with quote

Thanks Dave for your help. I knew it had to be simple.
Back to top
View user's profile Send private message Send e-mail
SeaSpray



Joined: 12 Mar 2004
Posts: 1009
City/Region: Brentwood, CA
State or Province: CA
C-Dory Year: 2004
C-Dory Model: 22 Cruiser
Vessel Name: SeaSpray
Photos: SeaSpray
PostPosted: Sun Aug 05, 2007 5:02 pm    Post subject: Reply with quote

Just giving this a try.

[http://www.c-brats.com/albums/album135/DCP00523.sized.jpg] [/url]

Steve
Back to top
View user's profile Send private message
SeaSpray



Joined: 12 Mar 2004
Posts: 1009
City/Region: Brentwood, CA
State or Province: CA
C-Dory Year: 2004
C-Dory Model: 22 Cruiser
Vessel Name: SeaSpray
Photos: SeaSpray
PostPosted: Sun Aug 05, 2007 5:04 pm    Post subject: Reply with quote

Okay try again.



Steve
Back to top
View user's profile Send private message
Doryman



Joined: 03 Oct 2006
Posts: 3807
City/Region: Anacortes
State or Province: WA
C-Dory Year: 2006
C-Dory Model: 255 Tomcat
Vessel Name: Lori Ann
Photos: Lori Ann
PostPosted: Sun Aug 05, 2007 7:28 pm    Post subject: Reply with quote

You can test your links in preview mode before posting, if you wish.

Warren

_________________
Doryman
M/V Lori Ann
TomCat 255, Hull #55, 150 Yamahas
Anacortes, WA
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic   Reply to topic    The C-Brats Forum Index -> General Chat All times are GMT - 5 Hours
Page 1 of 1

 
     Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



Page generation time: 0.0424s (PHP: 66% - SQL: 34%) - SQL queries: 21 - GZIP disabled - Debug on