Webmastersite.net
Register Log In

Custom template
Return a list of links from multiple IDs

Comments on Custom template

rw
Experienced

Usergroup: Customer
Joined: Jul 29, 2005

Total Topics: 30
Total Comments: 65
rw
Posted May 20, 2006 - 6:57 PM:

Hi Paul,

We are looking for a easy way to (display) present a group of links, where we get link ID from a separate database. We want to pass the ID of multiple listings in a single string and get back listing info (similar to what displaylinks.tpl displays but without the categories).

So for example we would like to use a string like:
www.mysite.com/displaylinks.php/?action=linksonly& linkids=3,12,22,24,27,30,32

And this would result in a display of links 3 12 22 24 27 30 and 32.

Any suggestions for an easy way to achieve this?

Thanks.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted May 22, 2006 - 9:30 AM:

The only possible way I see without code modifications to pass the condition for a toplist in the URL, and make it be id=3 OR id=12 etc.
rw
Experienced

Usergroup: Customer
Joined: Jul 29, 2005

Total Topics: 30
Total Comments: 65
rw
Posted May 26, 2006 - 4:23 PM:

Couldn't figure it out in toplist, but would something like this work using search?

In English first.
Find all links where linkid is exactly this (id#) and this (id#) and this (id#)

Not sure how to string.
site.com/search.php?whichty...12,14,15&condition=and

Thanks,

rw
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted May 27, 2006 - 6:08 PM:

A link can never have two ids so you want or, not and.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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