Support Forums

Display ALL active listings under category list

This is a discussion on Display ALL active listings under category list within the Technical Support forums, part of the Technical Support Forums category; Hi all, You would think that I would be able to do this myself, but having broken the clients installation ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 03-09-2009, 09:42 AM   #1
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 59
Rep Power: 20
marketingsolutions is on a distinguished road
Default Display ALL active listings under category list

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!
marketingsolutions is offline  
Old 03-09-2009, 09:47 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,366
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

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.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 03-09-2009, 09:53 AM   #3
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 59
Rep Power: 20
marketingsolutions is on a distinguished road
Default

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
marketingsolutions is offline  
Old 03-09-2009, 09:55 AM   #4
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,164
Rep Power: 64
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

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
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 03-09-2009, 10:05 AM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,366
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Mike-N-Tosh
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.
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

Quote:
Originally Posted by Mike-N-Tosh
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.
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.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 03-09-2009, 10:06 AM   #6
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 59
Rep Power: 20
marketingsolutions is on a distinguished road
Default 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
marketingsolutions is offline  
Old 03-09-2009, 10:16 AM   #7
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 133
Eric Barnes is just really nice Eric Barnes is just really nice
Default

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;
}
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 03-09-2009, 10:21 AM   #8
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 59
Rep Power: 20
marketingsolutions is on a distinguished road
Default Thanks!

Cheers Eric!

I think the other two went off on a bit of tagent there..
marketingsolutions is offline  
Old 03-09-2009, 10:26 AM   #9
curmudgeon
 
Join Date: Mar 2006
Posts: 5,366
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by marketingsolutions
I think the other two went off on a bit of tagent there..
Yeah, OK. I didnt realize trying to get specifics was a tangent, but hey its your project.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 03-09-2009, 10:33 AM   #10
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,164
Rep Power: 64
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

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
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Closed Thread

Tags
category , hack , listings , sub cats

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Listings in admin are active... but expired?? Tim_A Technical Support 1 03-03-2009 09:51 AM
Listings 'Not Active' tdisraeli Technical Support 6 10-03-2008 12:37 PM
Display Category name in Featured*listings hel68c Technical Support 0 08-06-2008 06:19 PM


All times are GMT -4. The time now is 09:56 PM.


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