View Full Version : Show ALL ads across specific categories
February 17th, 2009, 10:56 AM
I thought this should work:
But it doesn't. Is there a way to create a link (or button) which will show all active ads across a certain selection of categories? I'm happy to do a bit of code hacking if you have any suggestions? Or perhaps Chuck knows? :)
February 17th, 2009, 11:01 AM
All Ads - PhotoPost Classifieds (http://www.reeftalk.com/classifieds/showcat.php?mcats=2,22)
works for me.
February 17th, 2009, 11:07 AM
Thanks but you need to test it with more ads, it seems to cut off at two pages, even if you try and increase the limit.
February 17th, 2009, 11:10 AM
Here's an example, use 3 IDs
ViperAlley Classifieds - All Ads - Powered by PhotoPost Classifieds (http://www.viperalley.com/classifieds/showcat.php?mcats=2,5,3)
...and result has 36 pages.
Then take off an ID, so just 2 IDs
ViperAlley Classifieds - All Ads - Powered by PhotoPost Classifieds (http://www.viperalley.com/classifieds/showcat.php?mcats=2,5)
...and still 36 pages.
February 17th, 2009, 11:11 AM
Not sure what you mean by cut off. You would actually have to show an example as this is discussion on possibly code modification. The search script is meant to actually be used through the site so circumventing the program operation may produce undesired results.
February 17th, 2009, 11:33 AM
Please refer to the example above your post, as you can see it's ignoring the IDs after the first one, as removing/adding one has no effect on the results.
February 17th, 2009, 12:11 PM
Like states try using the search script as it was designed. You need to have a search criteria. Enter a search word.
there is no way really within the program to show multi categories of ads.
Otherwise all your doing is tweaking certain aspects hoping for the result you want but thats not how it really works.
February 17th, 2009, 02:25 PM
Sure, but in your post above you said it worked and you gave a link to your site. But the reality is that it doesn't work via a link only?
February 17th, 2009, 02:30 PM
It works to a degree meaning you can call all ads.
I am merely saying that there is no real function in the program for what you want. Your calling one variable in a search function which is why your not able to really change it. The showcat script is used to display search results and to display results from a category.
Essentially what your doing is calling this script variable which shows all ads.
ViperAlley Classifieds - All Ads - Powered by PhotoPost Classifieds (http://www.viperalley.com/classifieds/showcat.php?cat=all)
mcats is only used on a search which is done from our search page.
February 17th, 2009, 02:44 PM
Ok thanks for the reply.
In terms of coding, would it be easy to write something that says
cat=all&exc=1,4,7 (i.e. show all ads, apart from those in cat 1, 4 and 7)
Any pointers ideas? Thanks Chuck :)
February 17th, 2009, 03:03 PM
I guess you would have to dive in and take a look at the code to see what would be involved. Me personally this has not been something I have looked at.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.