Gossamer Forum
Home : Products : Links 2.0 : Customization :

How to add pictures to link entries

Quote Reply
How to add pictures to link entries
Hello again,

I would like to add a mod allowing for display of a small 50x50 picture next to each link item.

I suppose this implies adding a "picture URL" field in the database, but anyone could suggest me the exact way to code such a mod?

Thanks a lot!!
Quote Reply
Re: How to add pictures to link entries In reply to
If the picture is the same, then you simply add the image codes in the link.html file.

If this is an image that users can upload to their accounts in your server, then you should use the File Upload Mod writteny by Phoenix, which has been linked MANY times in this forum.

If you want to have people enter a URL to an image saved in their own servers, then simply use the FAQ in the Resource Center for adding new fields (which has also been linked in numerous topics in this Forum).

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: How to add pictures to link entries In reply to
Hi,

It's more the third option. I would like to get a result similar to this one :

http://shopping.excite.com/house_and_home/furniture/

And I would set up the picture URL myself when adding a link to the database.

I found in the FAQ the directives about adding new fields, but when I will add the "PictureURL" field, how the picture can show up on the link.html template?

Thanks!
Quote Reply
Re: How to add pictures to link entries In reply to
 
Code:
<%if PictureURL%>
<img src="<%PictureURL%>">
<%endif%>
<%ifnot PictureURL%>
<b>No Image Available</b>
<%endif%>

in your link.html file.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: How to add pictures to link entries In reply to
Wow, how easy! and it works!
Thanks a lot
Quote Reply
Re: How to add pictures to link entries In reply to
Yes...it is easy.

Wink

You're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: How to add pictures to link entries In reply to
can you help me with that hack? Where do I add it?


Quote Reply
Re: How to add pictures to link entries In reply to
1) You need to add a new field in your links.def file and update your links.db to include a delimiter for each record for this new field...Bobsie wrote a script that will do this, which has been posted more than once in this forum.

2) The codes I gave, go in the link.html file!

Regards,

Eliot Lee