Gossamer Forum
Home : Products : Links 2.0 : Customization :

Add xtra field, default it to something and test modifications

Quote Reply
Add xtra field, default it to something and test modifications
Hi!

What I pretend is somewhat hard and tedious to implement, so I'll thank any input I'll recieve in this subject.

I've been running a links database for 6 months or so:

1) Now I want to add an extra field to the database, say it is IMAGE URL. It will contain a URL to a GIF or JPG file.

2) Then, to default the value of this new field to http://mylinksdomain.com/noimage.gif
Since it's new, I'll email link owners to fill in the URL, but I need it to display a default image until that happens.

3) Then I want to apply the SITE OF THE MOMENT modification, and display the IMAGE URL which belongs to that site, so then:

31) If user didnt instert its image, the default noimage.gif image will apear
32) If user inserted the image and I validate it on monday, but on tuesday it does not exist or is corrupted then what can I do to display a default image, say noimage.gif again?


There are some steps, so I hope we'll find a solution for every one.

Thanks in advance!


------------------
Alex Tutusaus
Atyc WebDesigns
http://www.webcamworld.com/
Quote Reply
Re: Add xtra field, default it to something and test modifications In reply to
1) Go to the FAQ in the Resource Center and read about adding new fields.

2) Look in your links.def and also in the README file and get familar with field attributes (i.e., number, size, maxlength, required, default value, regular expression), so that you can edit your fields a lot easier rather than pasting codes from this Forum.

3) What is the SITE OF THE MOMENT Modification? Are you possibly confusing this Mod with something like Site of Day Mod?

Please be more specific.

3a) and 3 b) Very confusing to say the least. If you have the default value of the noimage link and people can add their own image, what is the purpose of the confusing requests in these items. An image will print either way if you use the following tags:

Code:
<%IMAGEURL%>

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------






[This message has been edited by Eliot (edited January 13, 2000).]
Quote Reply
Re: Add xtra field, default it to something and test modifications In reply to
Eliot, I think these images change quite often since they are most likely generated from screencam shots. At any rate, you could use LWP to check for the existence of the file on every re-build if you wanted to (3a)... confirming file integretity is more problematic (3b). You could possibly have your users do this function for you, by placing a small generated link under each img to alert you if it is corrupted.

------------------
The Immuatable Order of Modding
-=-=-=-=-=-=-=-
1. Read the FAQ, 2. Search the board, 2a. Search the board again, 3. ask the question, 4. back-up, 5. experiment, 6. rephrase question (or better yet, post solution to original question)