Gossamer Forum
Home : Products : DBMan : Customization :

Displaying a graphic

Quote Reply
Displaying a graphic
Hi All

I am new to this but have a DBMAN database with over 1300 records which I would like to add an extra field to display a graphic in. I can add extra fields etc without help :-) I administer the database completely ie: I do all the adding/modifying etc to this database. I would just like to be able to add a graphic to individual records. There is no need for members to be able to upload etc as I gain all information through another form type system. Any ideas? I use the user fiendly html.

Cheers....Allan
Quote Reply
Re: [vk2ca] Displaying a graphic In reply to
There is both a single image upload mod and multiple image upload mod available.

Please check out the resource center or go directly to JPDeni's web site for the mods.

http://jpdeni.com/dbman/

You can also check the FAQ noted below for the latest changes to these mods.

If you don't need the ability to upload from within the database you can simply setup another field and add the name and directory of the image.

You could add the relative url to the directory where you store the graphic by defining the url in your .cfg file for instance:

$imgurl = '../photos'


If you name your graphic field as say "photo" then within the sub html_record you could just use something like:


<img src="$imgurl/$rec{'photo'}"></a>

In your html_record_form you could make the field visible to admin only for the photo field and set it up as an alpha field which would only hold the name of the image file.

Check the FAQ noted below under "Images" for more ideas.

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/