Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Adding screenshot for each link.

Quote Reply
Adding screenshot for each link.
Adding screenshot for each link.

This is my procedure:

1. Adding field called image equal to the field URL (except varchar = char)
This field is to enter the image URL (the addres of the image file).

2. Adding in link.html before <%if Description%> tag the code:

Code:
<%if image%><img src="<%imagen%>" align=left vspace=5 hspace=8><%endif%>


3. Thats all



Problems. If exist the image url in a specific link, the image appears ok but in all others links appears this:

Code:


<imb src="http://" align=left vspace=5 hspace=8> This is the description blah blah blah blah.


Example:




Yahoo popular

Blah blah blah blah blah blah blah blah blah blah blah blah blah blha blah blah blha blha lbhla blha lbha




Google popular

Blah blah blah blah blah blah blah blah blah blah blah blah blah blha blah blah blha blha lbhla blha lbha




Altavisa popular

Blah blah blah blah blah blah blah blah blah blah blah blah blah blha blah blah blha blha lbhla blha lbha




In the database, the links Google and Altavisa havent no images, and Yahoo have a screenshot URL.

Anyone know how to solve the problem?



Thank you very much.
Quote Reply
Re: [pedroguerra] Adding screenshot for each link. In reply to
It seems like you have set a default value of "http://" for the image field.

So you should edit the image field, and set default to empty. If you also have Form Regex set to ^\w+: (as in the URL field) you want to change that to ^(\w+:)? (or similar) or leave it empty.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Adding screenshot for each link. In reply to
I've got this working so that it will put the image next to the description correctly, but only if I add the image URL directly into the mySQL table.

I added the variable to the include_form.html template so that it appears in the form when a user submits a site, but it didn't actually do anything (ie it didn't add an image to the submitted link).

Not only that, I want to be able to see/change this field in my admin panel.

What else do I have to edit please?
Quote Reply
Re: [Sugaar] Adding screenshot for each link. In reply to
I figured out this for those who need to know. In the Admin go to "Database" and from the drop-down menus, choose "Links" and "Properties", then hit "Go". I resynced the database and updated the table links and that seemed to do the trick.
Quote Reply
Re: [pedroguerra] Adding screenshot for each link. In reply to
<%if image%>

<%if image ne 'http://'%>

<img src="<%image%>" align=left vspace=5 hspace=8>

<%endif%>

<%endif%>



Regards,
Manu

Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.

Last edited by:

ManuGermany: Jan 23, 2003, 9:56 AM