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; Ok, I have installed the new version of your Google Maps module as you suggested. At present, we are not ...


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, 01:28 PM   #21
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 59
Rep Power: 15
marketingsolutions is on a distinguished road
Send a message via Skype? to marketingsolutions
Default GMaps module v3 installed - next step

Ok, I have installed the new version of your Google Maps module as you suggested.

At present, we are not going to upgrade to the later version of 68 as there is a lot of custom coding hidden deep within the core 68 files. I will have to check my versioning history, and see if the changes we made to RC3 can be applyed to RC4.

As per previous posts, the category.php now displays (paginated) all of the listings underneath the category selection table.

How might I go about loading the GoogleMap? I am guessing that only initialises when either a category or a listing is selected. Is there a way to get it to load on the category.php page? Or will I have to modify the module and add a function to do that for me?

Ben
marketingsolutions is offline  
Old 03-09-2009, 01:34 PM   #22
Coder
 
Join Date: Mar 2006
Posts: 4,915
Rep Power: 120
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Did you look at the readme file? It has a section descibing this new functionality and tells you what template changes ned to be made.

Also not there are additional database configuration fields with the latest version of the module, so it should be uninstalled, new files uploaded and then reinstalled via admin to make sure theese new database changes are made. Just uploading the new files over the old ones wont accomplish a complete upgrade of the module.


Also, RC 4 was not the latest version of v4.1. It was the last RELEASE CANDIDATE before V4.1 went into regular release so you are actually a couple versions behind. Its generally bad practice to base a production site on a beta product.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 03-09-2009, 01:43 PM   #23
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 59
Rep Power: 15
marketingsolutions is on a distinguished road
Send a message via Skype? to marketingsolutions
Default Category & Template changes

We had already made these changes, Google Maps was already displaying when a category had been selected...

We want the Google Maps to display when just category.php is being viewed - when we are not actually IN a category. Is this possible, or will I have to modify your module to cope with this?

So, A user clicks into a category. Google Maps was already displaying underneath the category listings. The user then clicks on the 'categories' link in the breadcrumb. This will take them to 'category.php' with no cat selection. We have now got ALL listings, broken into pages, displaying underneath the categories list. But Google maps is NOT present when you are at the top, on category.php (parent, root, whatever you want to call it).

Is this possible?
marketingsolutions is offline  
Old 03-09-2009, 02:05 PM   #24
Coder
 
Join Date: Mar 2006
Posts: 4,915
Rep Power: 120
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

There is actually a check in the code to prevent the map from isplaying in a category that doesnt allow ads or it would just appear as a gray box. Since you are overridding that, go into the module folder and open the file hooks.php.

Then locate the function called "function google_maps_cat_map()" and a few lines down from the top you should see this line....

Code:
if($settings[DisplayGoogle]=="Y" && $settings[DisplayGoogleCatMap]=="Y" && $cat['allowads'] == "Y"){
Remove the variable check on the end so it looks like this....

Code:
if($settings[DisplayGoogle]=="Y" && $settings[DisplayGoogleCatMap]=="Y"){
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 03-10-2009, 11:31 AM   #25
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 59
Rep Power: 15
marketingsolutions is on a distinguished road
Send a message via Skype? to marketingsolutions
Default Many Thanks

Thats fantastic! Works exactly like our client was requesting.

Thank you very much for the time you took to help us out with this, it is very much appreciated.

I hope that i can return the favour and help you out sometime

Ben
marketingsolutions is offline  
Old 03-10-2009, 11:33 AM   #26
Coder
 
Join Date: Mar 2006
Posts: 4,915
Rep Power: 120
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
Thats fantastic! Works exactly like our client was requesting.
Excellent, glad it worked for you/your client.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 03-15-2009, 06:37 AM   #27
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 935
Rep Power: 25
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by Eric Barnes
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;
}
Hi,
I have done this but the listings only show up if you are on the category.php page, is it possible to to show the listings if i was on truckandmachinery.com.au/category.php?cat=buses how can i show all items in buses? as there are deeper categories it just shows the sub cats.
Cheers,
Nick
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline  
Old 04-12-2009, 03:03 PM   #28
Member
 
Join Date: Mar 2009
Posts: 82
Rep Power: 11
wabugi is a glorious beacon of light wabugi is a glorious beacon of light wabugi is a glorious beacon of light
Default

I have the same question as bowers01 (above me).
__________________
v4.15 - Developer Edition - custom template
wabugi is offline  
Old 04-13-2009, 11:01 AM   #29
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,303
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

I just had a look and that would not be an easy change. From what I seen you would have to edit the query in the listings class and some how pass an array of section ids to it.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-31-2009, 03:21 PM   #30
Junior Member
 
Join Date: Apr 2009
Posts: 17
Rep Power: 4
redking is on a distinguished road
Default

Quote:
Originally Posted by Eric Barnes
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;
}
Hi! this isn't working for me. I modified category.php, and it only shows all ads when click on browse categories.

e-Oglasnik � Informatika

as you can see there are ads in PC Računla (1) PC Komponente (1) but no ads are showin below from those subcategories.

please help!
__________________
68 Classifieds Developer @ v4.1.x + Nu Style Template
redking 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 10:51 AM
Listings 'Not Active' tdisraeli Technical Support 6 10-03-2008 01:37 PM
Display Category name in Featured*listings hel68c Technical Support 0 08-06-2008 07:19 PM
Adding 'category' to 'new listings' display Chaslie v3.1 Modules & Modifications 5 01-31-2008 04:31 PM
How to display category total listings? dankellaway v3.1 Questions & Support 2 03-13-2007 02:25 PM


All times are GMT -4. The time now is 08:11 AM.


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