Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Custom Fields, Future Feature Roadmap

  1. #1
    Thread Starter
    Junior Member lhd333's Avatar
    Join Date
    Mar 2009
    Location
    United States
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Custom Fields, Future Feature Roadmap

    New features in 2.8 look great.

    The ability to edit/delete is important, but custom fields are crucial for me. The ability to search by those fields of course would be presumed.

    Tags would be helpful, but in many cases a tag search is not enough of a filter.

    I know you just released 2.8, but what do you have planned for 3.0? Do you have a roadmap for upcoming updates? Timetable? I know I sound spoiled, but classipress is just a few features short of being perfect!

    Thanks for the hard work.

    ps. I assume you'll give us fair warning before you increase the price?

  2. #2
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Custom Fields, Future Feature Roadmap

    2.8 now uses custom fields for all ads. It also includes a search function which includes those custom fields in search results. Try searching for names or phone numbers in the demo to see how it works.

    2.9 will be released in the next few months and 3.0 will follow suit. Lots of the requested features will be added to 2.9 and in 3.0 ClassiPress will break out into a couple new products. More details will come later. I still have a 2.8 headache.

    Regarding the price, yes some sort of warning will be given.

  3. #3
    Thread Starter
    Junior Member lhd333's Avatar
    Join Date
    Mar 2009
    Location
    United States
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Custom Fields, Future Feature Roadmap

    Really? So if I wanted to add a custom field such as "condition" (used or new), where would it appear?

  4. #4
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Custom Fields, Future Feature Roadmap

    Yes. That's why v2.8 was important in making this move to using custom fields. So you would have to edit a couple files in order to get that working. For example in v2.8:

    Edit post-form.php and create your new field. Make sure the field "name" is unique such as "condition".

    Next edit the form_process.php file in two places and paste the following code below line #33 and #157:

    Code:
    // this captures the form submitted value and sets it equal to a variable. Does some general data scrubbing too. Add below line 33
    $condition = cp_filter($_POST['condition']);
    
    // this line saves the new custom field to the ad you just created. Add below line 157
    add_post_meta($post_id, 'condition', $condition, true);
    Now that should take care of adding a new custom field and data to the ad in WordPress. Next you need to pull back that field on the single.php page. Below line #103, paste in the following code:

    Code:
    <div id="condition"><?php _e('Condition:');?><?php echo get_post_meta($post->ID, "condition", true); ?></div>
    Now go look at the classified ad you just saved this to and you should see it show up on your site. You can of course put the results in a different location on single.php but that should generally do it. That should get you at least started in the right direction.

    This should actually work for any version of ClassiPress but the line numbers will be different depending on the version you have. This is based on v2.8.

  5. #5
    Thread Starter
    Junior Member lhd333's Avatar
    Join Date
    Mar 2009
    Location
    United States
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Custom Fields, Future Feature Roadmap

    Seems simple enough to follow.

    So, it's not just a matter of adding a field on this page: http://wpclassipress.com/wp-content/...tom-fields.gif

    Even still, this is fantastic.

    Thanks!

  6. #6
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Custom Fields, Future Feature Roadmap

    No, I wish it was that easy but the truth is you need to map those fields in a couple of spots.

  7. #7
    Member
    Not a Verified Customer
    redsoxmaniac's Avatar
    Join Date
    Apr 2009
    Posts
    63
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Custom Fields, Future Feature Roadmap

    So, my next question is:

    Where do I add the custom field values? So I created a new field called "exact location", but I want it to be specific values ( such as just four cities ). Where do I type in these cities? Do I just add the values through the post page? I would want them to drop down in the form.

  8. #8
    Junior Member
    Not a Verified Customer
    mememe's Avatar
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Custom Fields, Future Feature Roadmap

    Still on the googlemap integration trail and have tried the above.

    All works well in that the tags that I need wrapped around the custom field load fine BUT not the contents of the field.
    When I check the test ad in the admin the extra field is listed but without the contents.

    post-form.php
    Code:
    <label for="location"><?php _e('Google Map','cp'); ?> <span>*</span></label>
    	<input type="text" id="gmap" name="gmap" maxlength="100000" value="<?php echo $gmap; ?>" />
    form-process.php
    Code:
    add_post_meta($post_id, 'gmap', $gmap, true);
    single.php
    Code:
     <div id="gmap"><?php echo get_post_meta($post->ID, "gmap", true); ?></div>
    My feeling is that post-form.php is disallowing html to be posted (even though it is turned on in the settings) but I could be wrong.

    Any ideas will be welcome.

    test site is:
    http://spacespare.com/new - (using v2.8)

  9. #9
    thomman's Avatar
    Join Date
    Apr 2009
    Location
    Cochin, Kerala, India
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Custom Fields, Future Feature Roadmap

    Quote Originally Posted by redsoxmaniac
    So, my next question is:

    Where do I add the custom field values? So I created a new field called "exact location", but I want it to be specific values ( such as just four cities ). Where do I type in these cities? Do I just add the values through the post page? I would want them to drop down in the form.
    I am also looking for such a feature so that we can add custom drop down fields. For example I have a category called Real Estate I would then want it to be a drop down with values "Property, Estate, Apartment, Villa, Commercial etc" or for Cars I would want "BMW, Ferrari etc." In short when a custom field is added we should be able to specify if its going to be a drop down in which case we should also be able to enter the relevant drop down options for the field while creating the same.

    The suggestion above is so that it upholds the ability of classipress to be ported to any classified requirement.

  10. #10
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Custom Fields, Future Feature Roadmap

    I've got custom field additions on the roadmap for later this summer but for now, you'll need to manually create the new fields. Dropdowns or text fields are easy. Just view the source on the form to see how categories are being done. I do plan on writing a more detailed tutorial on this later but I've been heads down the last several weeks trying to finish up v2.9 which is going to be an amazing release.

    btw, it includes google maps integration.

    [attachment=0:15abr788]gmaps-teaser.gif[/attachment:15abr788]

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)