Results 1 to 10 of 10

Thread: Displaying by states?

  1. #1
    Thread Starter
    Newbie
    Not a Verified Customer
    acctman's Avatar
    Join Date
    Nov 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Displaying by states?

    Is there a theme or way to change the layout and add a main page feature that list states or maybe a drop down menu for a user to select his/her state.

  2. #2
    Senior Member herb_'s Avatar
    Join Date
    May 2009
    Posts
    230
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Displaying by states?

    I was able to do this by hacking the tagging function.

    Basically, instead of people typing in tags when posting an ad, people can choose a tag from a dropdown menu. And the dropdown menu is a list of all the states. So people tag their ad with their state.

    Then I made a page for each state, and a header section with links to each state's page.

    On each state's page is a list of category links with the tag appended.

    For example, on the page for Alaska is a list of links like this:

    http://www.example.com/category/blue-shoes/?tag=alaska
    http://www.example.com/category/pink-shoes/?tag=alaska
    http://www.example.com/category/red-shoes/?tag=alaska

  3. #3
    Thread Starter
    Newbie
    Not a Verified Customer
    acctman's Avatar
    Join Date
    Nov 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Displaying by states?

    did you post anywhere what files you edited this is all new to me

  4. #4
    Senior Member herb_'s Avatar
    Join Date
    May 2009
    Posts
    230
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Displaying by states?

    It was all new to me also, and it's been a while since i've dug into this code...

    I may have just altered post-form.php by commenting out the tag input section and adding the tag-select as below:

    <!-- <label for="post_tags"><?php _e('Tags','cp'); ?> <?php _e('(separate with commas)','cp'); ?></label>
    <input type="text" id="post_tags" class="adfields" name="post_tags" size="60" maxlength="100" value="<?php echo $_POST['post_tags']; ?>" />
    -->

    <label for="post_tags"><?php _e('Region','cp'); ?></label>
    <select size="10" id="post_tags" class="adfields" name="post_tags" >
    <option value=''>Select One</option>
    <option>Alaska</option>
    <option>California-Northern</option>
    <option>California-Southern</option>
    <option>Colorado</option>
    </select>

    -----------------------------

    and in header.php I included a section of links going to each state's page.

    i'm no coding expert so any code ive posted is "use at own risk"

  5. #5
    Rookie
    Not a Verified Customer
    rarepearldesign's Avatar
    Join Date
    Nov 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Displaying by states?

    I modified the ad post form to have them enter a more descriptive address including province or state. I then stored that as a custom field like the template does with the other fields. Next I added a way for them to select a province to filter on and placed it in a cookie. I modified each search to include the meta filter on that selected province.

    That's a very rough description but it's doable. I did it in my clients site www.kucha.ca

  6. #6
    groan's Avatar
    Join Date
    Nov 2009
    Location
    Ottawa, Canada
    Posts
    241
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Re: Displaying by states?

    Care to do a tutorial?
    I heard of someone incorporating subdomains to do something like this. I'll have to see if I can find it. It may have been on the Directorypress website.
    I'll want to do this for my upcoming classipress site. broken down into provinces/territories.
    I'll post back here if i find it.

  7. #7
    Rookie
    Not a Verified Customer
    rarepearldesign's Avatar
    Join Date
    Nov 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Displaying by states?

    I might be able to give a tutorial tomorrow on how to approach this.

  8. #8
    Senior Member bundyla's Avatar
    Join Date
    Oct 2010
    Posts
    132
    Thanks
    13
    Thanked 7 Times in 1 Post
    Can you post a tutorial please ? i am also interested in this modification. Thanks

  9. #9
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,008
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    Just take note that this is a very old post from an unverified user.
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  10. #10
    Senior Member bundyla's Avatar
    Join Date
    Oct 2010
    Posts
    132
    Thanks
    13
    Thanked 7 Times in 1 Post
    aaaaaaa it is true.

    But it would be nice to have something like this

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Displaying a Main Image or Large Image for listings
    By kwave12 in forum ClassiPress General Discussion
    Replies: 20
    Last Post: December 10th, 2010, 04:47 PM