Gossamer Forum
Home : Products : Links 2.0 : Discussions :

How I can use random link with category ID ??

Quote Reply
How I can use random link with category ID ??
Hi All !
Please help me
I want make random link from category
for sample /cgi-bin/links/jump.cgi?ID=random?CATID=2
open randoms links only from category 2
How I can do it ????
Quote Reply
Re: [Remix] How I can use random link with category ID ?? In reply to
Looks like you may be using LINKS SQL, since there are no column
names or references of CATID...if you are using LINKS SQL, please
re-post this question in the LINKS SQL Discussion Forum.

If you are using LINKS 2.0, you will need to reference the Category
field within the query string to randomize the links within each of the
categories.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [AnthroRules] How I can use random link with category ID ?? In reply to
I Using LINKS 2.0
Please write me sample link
I want from main page open random links from some categories
Quote Reply
Re: [Remix] How I can use random link with category ID ?? In reply to
Quote:
If you are using LINKS 2.0, you will need to reference the Category field within the query string to randomize the links within each of the categories.

I would also like to know how to make this work. How do you correctly reference the category field when doing ID=random?

Quote Reply
Re: [marinedesign] How I can use random link with category ID ?? In reply to
Look for $rec{'URL'}...You'll need to reference $rec{'Category'} in the jump.cgi script...using conditional statements, you can specify a category...like the following:

Quote:

<a href="<%db_cgi_url%>/jump.cgi?ID=random&Category=<%category_name%>">Random Link in Category</a>


Code:

if ($in{'Category'}) {
RANDOM CODES
}
else {
REGULAR RANDOM CODES
}

========================================
Buh Bye!

Cheers,
Me