Topic: If Exist in a CMS Environment? (Read 1604 times)
Bill Gates is my home boy
Gender:
Posts: 710
4449 credits Members referred : 2
« on: May 08, 2008, 06:04:10 pm »
Not sure if this is a Smarty issue or a PHP issue so I put my question here. Anyway...
I've taken one of my directories and changed scripts and redid the layout. One of the new options in the script is to showcase 5 new and 5 random listings. I've changed the plugin to show only one of each of these. I've also changed it to show the picture associated with the listing. The problem is that those listings that I am adding myself do not have a picture ( screenshots as well as other images are copyrightable and I only want to use pictures with the permission of the site owners and it is also a way to slightly reward the folks who come to me vs the ones I seek out myself.)
It's fairly easy to figure out the record number of each listing so I've named the picture files xxx.jpg where xxx is the record number.
One of the programmers for the script has created this elaborate function and has tried twice now to get this to work. The function does not appear to be working right and I keep thinking that the programmer is doing something like the Hello program joke that Samiotis posted.
Any ideas or suggestions? It just seems like this should be something that could be done in a line or two of code rather than creating external functions.
If xxx.jpg exist then display else no display /if
Is it really as complicated as this programmer is making it? I'm beginning to wonder if the best thing to do at this point is to create a 1px jpg for the listings without pictures and use that to have an actual picture to display.
I crack Photoshop!
Posts: 3
18 credits Members referred : 0
well as other images are copyrightable
« Reply #4 on: Nov 10, 2008, 05:49:22 pm »
One of the new options in the script is to showcase 5 new and 5 random listings. I've changed the plugin to show only one of each of these. I've also changed it to show the picture associated with the listing. The problem is that those listings that I am adding myself do not have a picture ( screenshots as well as other images are copyrightable and I only want to use pictures with the permission of the site owners and it is also a way to slightly reward the folks who come to me vs the ones I seek out myself.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7731