PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds Bug Reports (http://www.photopost.com/forum/classifieds-bug-reports/)
-   -   Can't edit price(FIXED) (http://www.photopost.com/forum/classifieds-bug-reports/114902-cant-edit-price-fixed.html)

prodigy July 17th, 2005 07:22 AM

Can't edit price(FIXED)
 
I encounter a problem.

When I post an ad and edit it after that, the price becomes ZERO (Best Offer). I can't seem to change the price at all!!

I also notice that once I go into editproduct.php, the price will become ZERO.

At first I thought my modified templates are causing the problem, but after I use the original files the problem persist.

Any Idea????

http://www.singaporeexpats.com/classifieds

It will be great if someone go into my site and place an ad then edit it and see .............

Please note that all template files and language files are original from 2.41.

Chuck S July 17th, 2005 10:03 AM

In editproduct.php find this line and add the text in bold

typecast($_POST, array('price' => STRING, 'rating' => STRING, 'title' => STRING, 'keywords' => STRING, 'desc' => STRING, 'extra1' => STRING,

prodigy July 17th, 2005 10:31 AM

Thanks alot! That solves the problem :)

Another observation, I find that if I do not include this line:

<input type="file" name="theimage[]">

in the uploadproduct.tmpl, after I submit the ad, instead of seeing Successful uploading the ad", it will go back to:

Step 1 of 3
Choose the type of ad you want to place:

Any tips ?

prodigy July 17th, 2005 11:04 AM

Sorry ... another issue ...

In http://www.singaporeexpats.com/class...howmembers.php

"Views", "Comments" and "Space Used" does not show anything ....

Chuck S July 17th, 2005 11:14 AM

showmembers.tmpl should only contain member name and number of ads that I see so the template should be this

Code:

Content visible to verified customers only.

prodigy July 17th, 2005 06:17 PM

Thanks!!!!

How about this:

I find that if I do not include this line:

<input type="file" name="theimage[]">

in the uploadproduct.tmpl, after I submit the ad, instead of seeing Successful uploading the ad", it will go back to:

Step 1 of 3
Choose the type of ad you want to place:

Chuck S July 17th, 2005 08:45 PM

I dont quite follow here nor would I think this be a bug cause in uploadproduct.tmpl there is this

if ( $Globals['usegd'] != -1 ) {
echo<<<PPPRINT
</td>
</tr>
<tr>
<td class="{$Style['tddetails']}">{$Globals['pp_lang']['productname']}:</span></td>
<td class="{$Style['tddetails']}"><input type="file" name="theimage[]"><br />
<input type="file" name="theimage[]"><br />
<input type="file" name="theimage[]"></td>
</tr>
PPPRINT;
}

prodigy July 18th, 2005 01:55 AM

If I remove this code:
if ( $Globals['usegd'] != -1 ) {
echo<<<PPPRINT
</td>
</tr>
<tr>
<td class="{$Style['tddetails']}">{$Globals['pp_lang']['productname']}:</span></td>
<td class="{$Style['tddetails']}"><input type="file" name="theimage[]"><br />
<input type="file" name="theimage[]"><br />
<input type="file" name="theimage[]"></td>
</tr>
PPPRINT;
}

It wouldn't work any more ...

Chuck S July 18th, 2005 09:50 AM

Of course it wont. Look at the other uploadproduct files to see how it works. You still need to have an input tag in there for theimage just hidden

<input type="hidden" name="theimage" value="" />


All times are GMT -5. The time now is 04:26 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