PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Limit Ads in Upload and Edit product templates (http://www.photopost.com/forum/classifieds-how-do-i/125519-limit-ads-upload-edit-product-templates.html)

GateKeeper June 13th, 2006 12:59 PM

Limit Ads in Upload and Edit product templates
 
1 Attachment(s)
I have tried to restrict the number of photos per ad to 3 on each of the uploadproduct and editproduct templates. The uploadproduct restriction appears to work fine. The edit looks like it works ok, but if I ad a photo using edit ad instead of during the initial load, the process appears to work, but the image comes up empty when you look at the recent ads or the ad itself in showproduct.php.
I've attached my editproduct template in hopes someone can spot what I've done wrong.
Thank you in advance for any help that may be rendered.

GateKeeper June 13th, 2006 01:53 PM

Here's a link to the "Recent Ads".
http://www.timesharegateway.com/auctions/index.php
You can see that the link behaves as if an image is there, but there isn't one there to display.

GateKeeper June 13th, 2006 02:28 PM

Really bizzarre
 
This is weird. The image that is produced when uploaded using editproduct.php seems to produce an imgage alt tag with the entire URL to the image, but the same process in uploadproduct.php simply displays the alt image tag as the base filename.
To see what I mean, mouse over the missing image thumb on the Recent Ads link I sent. Note the URL. Now mouse over the thumb (it actaully has an image) of the image to the right. It shows as the alt tag the name of the file. The only difference between these two thumbs is the missing one was uploaded using the editproduct.php and the good one using uploadproduct.php.

GateKeeper June 14th, 2006 10:09 AM

Is this something you can help with. I used the standard editproduct.tmpl file as the basis for my template and simply trimmed the image section to allow for only three images. I don't understand the variance I noted between the alt tags, and of course the missing image. I suspect the alt tag will tell us something, if I could get a little help.
Thank you.

Chuck S June 14th, 2006 10:16 AM

honestly dont know what to tell you. However you can ask mod questions in our modifications forums

The base code definately allows you to replace photos so it would appear your issue is with your modification to the code.

GateKeeper June 14th, 2006 10:30 AM

Code?
 
Do you mean the template? I haven't touched the script. Just want to clarify this so I at least know where to look.
Thank you.

Chuck S June 14th, 2006 10:32 AM

Can't say as but as long as your only removing the image tags in the template you should be fine.


All times are GMT -5. The time now is 08:39 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97