This topic is locked
[SOLVED]

 No_Image

1/2/2010 7:44:26 AM
PHPRunner General questions
P
Peppa author

Jane,
I have an iBox image element in my database of over 600 items but I have not uploaded images for all of the items so in the listing there are lots of blank spaces where an image should be (were an image for that record available and had been uploaded).
What code or function can I use to display the default No_Image.gif (as found in the output/images folder) where no uploaded file exists whilst maintaining the iBox function of those records which do have uploaded files??
Thanx Jane and Happy New Year to you and the Team.

P
Peppa author 1/3/2010

Jane,
Disregard my last, I found a way..... and for those who want to know, here's what I did.
Simply create a single image file to represent the NO Image (this can be anything you like)
1: Do a show all search
2: Select all and export to an excel file
3: Modify the excel file to include the "no image" filename in the gaps where no image filename is present.
4: Save the file and exit.... (DOUBLE CHECK THE FILE HAS SAVED CORRECTLY)
5: With all items in the database still selected, this time use delete to clear the database.
6: Import the modified database excel file back into the system
7: Tada! Your database now contains a "No Image" to represent those elements which do not have an image.
8: From then on if no picture is available..... upload the no-image file
I know it's a long way round but it is basic and a simple fix to the problem, if anyone does have a coding related fix, please post it here.
I accept no responsibility for anyone who fails to export or modify the data properly prior to deleting the contents of a database.