Webmastersite.net
Register Log In

related categories from search results.

Comments on related categories from search results.

Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
Posted Aug 08, 2005 - 2:12 PM:

Hey, haven't used wsnlinks in a while.

Let's say I do a search for "pork". For all the results that show up, how can I display a vertical list of all the categories that are in the search result?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 08, 2005 - 4:23 PM:

Perhaps you need an example or illustration, because what it sounds like you're saying doesn't make much sense to me. Why not do a category search if all you want to list is categories?
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
Posted Aug 08, 2005 - 7:18 PM:

Yea, I need to further explain it.

Let's say the person searchers for "animals" and the search results looks something like this:

---Example---

Pork & Beans
Shop here for great pork and beans plus animals.
Main / Shopping / Food

Turtle Town
Nothing but great animals, like turtles.
Main / Animals / Turtles

BirdHouse Watch
Great bird houses for sale for you animal lovers.
Main / Outdoor / Products / Birds


Now, on the left-hand side of that search result, I would like to have a vertical list of all the categories that are in that search result. Which would be:

Shopping
Food
Animals
Turtles
Outdoor
Birds
Products


Having the list display alphanumerically would be nice.
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
Posted Aug 08, 2005 - 7:23 PM:

So the search results page would end up looking like this:


|Shopping | Pork & Beans
|Food | Shop here for great pork and beans plus animals.
|Animals | Main / Shopping / Food
|Turtles |
|OutDoors | Turtle Town
|Birds | Nothing but great animals, like turtles.
|Products | Main / Animals / Turtles
| |
| | BirdHouse Watch
| | Great bird houses for sale for you animal lovers.
| | Main / Outdoor / Products / Birds

Page: 1 2 3 4 5 etc


Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
Posted Aug 08, 2005 - 7:31 PM:

for some reason, that didn't turn out right, but it's supposed to look like this: http://www.adultluxury.com/result.htm
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
Posted Aug 09, 2005 - 12:54 PM:

So, any clue on how to do this?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 09, 2005 - 1:36 PM:

That's not possible in any way I can think of. Maybe a javascript that writes it to the left hand div as it appears in the right hand div.
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
Posted Aug 09, 2005 - 6:02 PM:

damn, Well... anyone have any ideas on how to do it in javascript or even php?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 10, 2005 - 11:55 PM:

Making considerable changes to search.php to build a list of involved categories and then display them could do it too of course.
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
#10 - Quote - Permalink
Posted Aug 11, 2005 - 11:40 AM:

Do you think you could hack search.php for me? I'll give you a cookie!nod
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#11 - Quote - Permalink
Posted Aug 11, 2005 - 5:53 PM:

That kind of custom work costs considerably more than a cookie: http://www.wsnlinks.com/?section=customcoding
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.