Display ALL active listings under category list

Discussion in 'Technical Support' started by marketingsolutions, Mar 9, 2009.

Thread Status:
Not open for further replies.
  1. Hi all,

    You would think that I would be able to do this myself, but having broken the clients installation of 68 several times this morning, I will ask some people who may already know the answer instead...

    Our client has requested that ALL of the active listings are displayed underneath the category list. How could I achieve this?

    The client wants this so that they can have their Google maps modules display all available listings underneath the 'All Listings' section.

    If anyone can give me couple of pointers, they would be most appreciated!
  2. Lhotch curmudgeon

    I dont understand the question. Can you walk us through the user experience in a bit more detail? For example, after hitting your site and seeing the home page, what exactly do you want displayed where?

    Also, just because the ads are all displayed doesnt mean they will all be populated on a google map. All the addresses need to be sent to google and plotted.
  3. On category.php where the category names are displayed, the client requires that all listings are visiable on this page and paginated and with the map marrkers for each individual listing sowing on the google map
  4. Mike-N-Tosh Owner

    I haven't visited how to do this, however I think that you need to consider the implications of it.

    I would assume you are referring to the home page right under the categories list.

    First, as lhotch has already pointed out, the Google maps wouldn't work in this fashion.

    Second, to make the Goggle maps work like that would take some additional custom coding with several calls to the database as well as google for each individual ad being shown.

    Third, even though there may not be a lot of ads now, what happens as the site progresses and you have thousands of ads? This would make you home page a mile long and might not even render or could cause a time out of the server.

    Just some thoughts,
    -Mike
  5. Lhotch curmudgeon

    Ive already got the functionality of displaying a google map under a category listing plotting all the points for a current page on a map built into my google maps module.

    http://zygnet.net/41beta3/category.php?cat=canon

    He did say with pagination but what he didnt say was how to handle maincats,subcats etc. If someone hits browse are they supposed to see a list cats followed by ads, of just the first cat with its ads underneath it and as you paginate you see the subcats and its ads etc etc etc. This is what I was talking about when I said in more detail but apparently I am asking for too much.
  6. Client specification

    Ok, I think we have some wires crossed here...

    When you point your browser to category.php, you get a simple table with a list of categories underneath.

    Our client wants ALL active listings (paginated,not a massive list!) to display underneath this. Dont ask me why. Underneath the 'All Listing' table, they would like their Google Maps module to display markers for each listing that is currently on display (ie: 10 per page?).

    I am more than comfortable with editing / creating PHP code, but what does confuse me is how I might go about pulling all the listings using the 68 Database abstraction layer.

    I could do this with in place procedural functions, but this is a very poor way of doing things, I would rather use the internal methods such as Listings->getAllListings() for clarity of code and continuity.

    I am sory if I wasnt clear from the outset, and probably sorry again for making it even less clear with this post.

    Ben
  7. Eric Barnes Guest

    To show all listings open category.php and find:
    $showlistings='N';

    Change to:
    $showlistings='Y';

    Find:
    $options['section']=$sec;
    Change to:
    if(isset($sec)) {
    $options['section']=$sec;
    }
  8. Thanks!

    Cheers Eric!

    I think the other two went off on a bit of tagent there..
  9. Lhotch curmudgeon

    Yeah, OK. I didnt realize trying to get specifics was a tangent, but hey its your project.
  10. Mike-N-Tosh Owner

    My post was being written whilst the original poster replied to you, lhotch. I didn't see it till after I hit post.

    Timing is everything.

    -Mike
  11. Unhappy Moderators!

    I didnt mean to rub you guys the wrong way!!!

    Anyways, Thank you for the speedy resonses - I have never seen a forum that has answers returned so fast, LHotch managed to get a reply in before I had even viewed the first post!!

    I understand the implications of this, and they have been explained to the client. They still want it anyways, I'm sure you can understand how clients simply fail to see their requests from the eyes of the developer - they just want it done yesterday.

    So now, after editing the category.php as Eric suggested, we now have all listings being displayed underneath the category selection table, paginated and everything! Yipee!

    What do I have to do to enable Google Maps to display underneath these listings?

    I dont mind editing any files, and I dont mind that doing this may cause high server loads - this has all been explained to the client, as we were unhappy with extra server loads. But its not our money, so ours is not to reason why!

    Ben
  12. Lhotch curmudgeon

    I guess that all depends on how the maps are handled in the first place. Is your client using my google maps module or some other method?
  13. Google Maps Module

    Sorry, I should have mentioned that in the first post!

    It is your Google Maps Module ( LHotch).
  14. Mike-N-Tosh Owner

    Ben,

    You didn't rub me any way! lol. It's all good. No need for any type of concern. We are all here to help each other out, or at least I hope so!

    -Mike
  15. Lhotch curmudgeon

    The latest iteration of my module makes use of the category end hook and will loop through the list of ads and plot them on a map that is displayed on the page.

    Im not sure if it was you who originally purchased the module for your client or if you had you client do it, but if you PM me the client details and where to send the updated module I can get that to you.
  16. Module Purchaser

    Hi Larry

    My colleague ( Stuart ) has sent you an email. Could you please send the updated version to his email address?

    Will there be any changes required in the 68 core files to enable the updated module?

    I also noticed that your module (the older one we are working with here) required some editing to enable it to work locally - I use the Apache2Triad WAMP, and have PHP Short tags disabled. Several of the php files in your module used the PHP short tags , meaning that they were not parsed as PHP on my setup. If anyone else places the module inot a system that does not have short tags enabled they too will see a large block of PHP at the top of their pages that is not parsed until the tags are changed to full tags - just thought I should let you know

    Ben
  17. Lhotch curmudgeon

    Ben, the devil is in the details.

    Since this has all been posted in the V4.1 forum I assumed your client was running V4.1. However after my last post I was contacted by who I assume to be your client. They had contacted me in the past about this functionality for V4.0.9 and my module for that version does not currently have the category map functionality.

    So the question I have now is, exactly what version of 68C is your client running?
  18. 68 version

    Our version of 68 is reporting that it is v4.1.0 RC3.
  19. Lhotch curmudgeon

    That version has many known bugs, I suggest you actually upgrade to the latest release.
  20. Devil in the details

    I beg to differ -

    God is in the details, the devil is in the process...
Thread Status:
Not open for further replies.

Share This Page