 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
February 17th, 2009, 09:56 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jan 2009
Posts: 46
| Show ALL ads across specific categories
I thought this should work:
mysite.com/showcat.php?mcats=2,3,4,5
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, 10:01 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
| |
| |
February 17th, 2009, 10:07 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jan 2009
Posts: 46
|
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, 10:10 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Jan 2009
Posts: 46
| |
| |
February 17th, 2009, 10:11 AM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
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, 10:33 AM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Jan 2009
Posts: 46
|
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, 11:11 AM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
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, 01:25 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Jan 2009
Posts: 46
|
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, 01:30 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
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
mcats is only used on a search which is done from our search page.
|
| |
February 17th, 2009, 01:44 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Jan 2009
Posts: 46
|
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, 02:03 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,069
|
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 04:30 AM. | |