Gossamer Forum
Home : Products : DBMan : Installation :

Images? Ref from another page

Quote Reply
Images? Ref from another page
First - thanks for the great app! It looks like it's going to work perfectly for our animal database.

Two questions - how do I include an image in the results?

And is there a way I can include a small form in an existing page that points to the database - so that people viewing the pages can instantly access the query screen without first logging in?

All answers should be non-technical if possible Smile! I'm learning!

thanks
jim
Quote Reply
Re: Images? Ref from another page In reply to
Hi priest

Quote:
how do I include an image in the results?

See if this helps you... (You can search in the forum for other threads on this)

http://www.gossamer-threads.com/...um5/HTML/000363.html


Quote:
And is there a way I can include a small form in an existing page that points to the database - so that
people viewing the pages can instantly access the query screen without first logging in?

Again, the answer is in the forum Smile

Search for short vs long display. JPD made a mod where you can have a short listing (where you can put an image) that points to a long listing.
If you want to disable all login, you will have to modify some of the variables in your .cfg file.

$auth_no_authentication =0;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);

Search for login in the forum. There are a number of posts on all variations of logins.

Cheers
-JO
Quote Reply
Re: Images? Ref from another page In reply to
Thanks for the links. Last night I realized you could search this thing. Smile I also spent some time digging through the files and tweaking stuff - the only problem I have is still with the graphics - I understand now how to 'call' them in html.pl : <IMG SCR="$rec{'Photo'}">

What I guess I need to know is what do I put in the 'Photo' field during submission?

Does someone enter a reg <img src> type tag or ... ? I dug through here a bit but didn't see anything to clarify this. Smile

Thanks
jim
Quote Reply
Re: Images? Ref from another page In reply to
I'm assuming that your photo files are on your server and all in the same directory. I'll even go so far as to assume they are all in the same format -- .gif or .jpg or whatever.

If my assumptions are correct, the best thing to do would be to name the files the same as the ID for the record. Then you could do something like:

<img src="url/to/graphics/$rec{'ID'}.gif">

If you don't want to change the names of your photo files, add a field for the name of the file and display it by:

<img src="url/to/graphics/$rec{'photo'}.gif">

If your files are of different types, you'll need to add the extension with the name of the photo file, like "zebra.gif" and you would use:

<img src="url/to/graphics/$rec{'photo'}">

If your files are all over the web, you can still do it. Just enter the url of the file name into your field. Then it would be:

<img src="$rec{'PhotoPath'}">

Lots of options! Smile



------------------
JPD