Gossamer Forum
Home : Products : Links 2.0 : Customization :

Top Rated marked as cool (or not)?

Quote Reply
Top Rated marked as cool (or not)?
This may be fairly simple - or maybe not.

Does anyone know how to make the Top Rated list show whether the links are "cool" or not?

I'm stumped.

Warwick Evans

------------------
HumorLinks Comedy Search, Humor DVD and Video Store

humorlinks.com

humorlinks@humorlinks.com
Quote Reply
Re: Top Rated marked as cool (or not)? In reply to
Yep...You will have to edit the sub build_rate_page in the nph-build.cgi file:

1) Add the following codes:

Code:
if ($link{'isPopular'} eq "Yes") {
$cool .= qq~Cool~;
}


2) Find the line of codes that starts with $top_votes .=...

3) Add the following codes in this line of codes:

Code:
$cool

Do the same thing for the $top_rated .= line of codes.

Regards,


------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Top Rated marked as cool (or not)? In reply to
It works. Thank you Eliot, you are extremely helpful.

We just added
Code:
$cool = '';

before the
Code:
if ($link{'isPopular'} eq "Yes") {
$cool .= qq~Cool~;
}

to make it work perfectly.

Thanks again.

Warwick


------------------
HumorLinks Comedy Search, Humor DVD and Video Store

humorlinks.com

humorlinks@humorlinks.com
Quote Reply
Re: Top Rated marked as cool (or not)? In reply to
Opps...forgot about the variable definition...

But glad you figured it out.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums