PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old December 13th, 2005, 12:36 PM   #1 (permalink)
Registered User
 
Join Date: Jan 2004
Posts: 8
Category Browse ZIP entry bug(FIXED)

There is a bug in the "browse category" section of the classifieds about ZIP entry. ZIP entries work fine if you enter them inside product pages. But if you enter it inside the category page, the ZIP code you sent is not accepted and the script asks for your ZIP code again.

I tracked the roots of it and here is where the problem lays:

showcat.tmpl has a html form starting inside cathead.tmpl (= <form method="get" action="{$Globals['maindir']}/showcat.php">) (which is included by via include( "{$Globals['PP_PATH']}/templates/cathead.tmpl" );) and this form ends at the end of showcat.tmpl. So the entire template is wrapped with a form with a GET action. Then inside this form, you insert another form with POST action to query the ZIP code

Code:
Content visible to verified customers only.
First form which is wrapping the second form overrules and forces browser to send the information with GET method. This causes your line (typecast($_POST, array('myzipcode' => STRING));) in showcat.php fail as myzipcode variable never comes with a POST method.

My temp fix for this was to change this code like this:

Code:
Content visible to verified customers only.
This solved the problem until you come up with a more elegant solution.
Logican is offline   Reply With Quote
Old December 13th, 2005, 01:17 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
Well at the bottom of cathead.tmpl you can add </form> after $ppclose but I dont think thats the cause of the issue as zipcode cookie is created its just not being processed.

In showcat.php find this

if ( $long1 > 0 && $lat1 > 0 ) {

replace with

if ( $long1 != 0 && $lat1 != 0 ) {
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 14th, 2005, 01:44 AM   #3 (permalink)
Registered User
 
Join Date: Jan 2004
Posts: 8
I'm not sure if cookie is created. It is not created in my tests. I debugged and $_POST[myzipcode] is coming empty if I don't put the closing </form> tag. (Firefox) My solution solves the problem for me even without the change you suggested. But I also understand your change is required to fix another bug as some lats in DB is below 0
Logican is offline   Reply With Quote
Old December 14th, 2005, 06:58 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
The closing form tag is placed where I suggest. The cookie is created but not read. Thus my posted fix aside from the closing tag you reported.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble uploading ZIP FILES....(NOT A BUG) infinityxxx Photopost Pro Bug Reports 1 December 17th, 2005 09:27 AM
Upload Category is weird. (my last bug report I swear!)(NOTA BUG) rcsmith ReviewPost Bug Reports 1 October 25th, 2005 09:25 PM
Zip Code feature not working...(FIXED) ludachris Classifieds Bug Reports 5 July 18th, 2005 01:38 PM
5.13: ZIP Info (text) not shown(NOT A BUG) kturby Photopost Pro Bug Reports 3 July 15th, 2005 12:45 PM
BUG IN 1.0.0-Please choose a category-parent category / structure not being displayed vissa Installs and Upgrade - vBulletin 3.0.X 13 July 14th, 2005 07:44 PM


All times are GMT -5. The time now is 03:24 PM.

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