MOD to 3.0.2 and 3.03 to Hold Selected DROPDOWN LIST VALUES
In either ClassiPress 3.0.2 or in 3.0.3 you will find this function in theme-functions.php...maybe it is more technically a class, but anyway, I really don't know much about PHP technically.
line 1040
// builds the edit ad form on the tpl-edit-item.php page template
function cp_edit_ad_formbuilder($results, $getad) {
when you find this keep going and look for the Case named "Dropdown"
case 'drop-down':
in the new 3.0.3 you will find the following on line 1084
<option style="min-width:177px" <?php if ($post_meta_val == $option) { echo 'selected="selected"';} ?> value="<?php echo $option; ?>"><?php echo $option; ?></option>
I see what it wants to do by matching the $post_meta_val to one of the options but it is apparently needing some PHP help to make it happen.
If you replace that code in theme-functions.php in either 3.0.2 or 3.0.3 with this it will work. At least it is working for me.
When I come back to an ad in the user edit mode the dropdowns are sitting in my previously selected value with all the other values available for re-selection.
If I selected "Afghanistan" for Country when I created the ad and "Hawaii" as the State the dropdowns are sitting with just those values showing.
If I click on the dropdowns I can re-select other Countries and states and SAVE(modify) the ad. The next page view shows my new selections sitting already selected in the dropdown.
Substitute this code with a select and paste over the previous code which makes the Dropdowns-- The following code completes the task of matching the $post_meta_value with the relevant $option and saves just that one option field as "Selected".
Working Dropdown Lists Code:
<option style="min-width:177px" <?php if (in_array($post_meta_val, array($option), true)) echo 'selected="selected"'; ?> value="<?php echo $option; ?>"><?php echo $option; ?></option>