Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Popuular Sites?

Quote Reply
Popuular Sites?
In administration, i selected a new site to be "Popular", yet when i do a search for this site, it still comes up as a normal listing.. Am i doing something wrong?

Please explain eactly how the "Popular" option works.. What i am working to do is be able to add a "HOT!" graphic next to any site i choose.. Is this possible?

Jeff

Quote Reply
Re: Popuular Sites? In reply to
hi conan,

look this in the links.cfg

# Build Options
# --------------------------------------------------------
# Setting for popular cutoff, can either be a percent (i.e. top 3%), or
# a fixed value (i.e. top 10). Enter 0.03 or 10 respectively.
$db_popular_cutoff = 10; # Top 3%

------------------
ciao
Nicky
mse.nicky.net



Quote Reply
Re: Popuular Sites? In reply to
But what is it based on? Hits or votes?
Quote Reply
Re: Popuular Sites? In reply to
Whats the easiest way, or easiest mod for me to do what im asking above?

Please refer this cgi dummy..


Quote Reply
Re: Popuular Sites? In reply to
well make a new field called isHot, and do all the stuff needed to make a field, as you should know already. Make it so its a pull down menu with the variables Yes and No, then if you don't have it, get the Enhanced Template.pm in the resource center.
then

in link.html put this
<%if isHot eq 'Yes'%>
<img src="/images/hot.gif">
<%endif%>

[This message has been edited by Bmxer (edited November 21, 1999).]
Quote Reply
Re: Popuular Sites? In reply to
Bmxer guy.. I have alot of respect for ya... Seen alot of your scripts throughout the site, and have already used a couple.. thanks..


Anyways (enuff ass kissing),,

Bare with this semi-literate cgi person..
What are the required things to create my fields.. Anything more than what was mentioned above? Bare with me, as i just want to get this right, and dont want to be playing guessing games..

Really appreciate the help..

Quote Reply
Re: Popuular Sites? In reply to
Ok, i have the ENHANCED TEMPLATES

installed..in link.html i put this (pointing to path of my images)

<%if isHot eq 'Yes'%>
<img src="/images/hot.gif">
<%endif%>

Now what?

Quote Reply
Re: Popuular Sites? In reply to
Popular (also known as cool) is based on hits. If you want to manually change it, I think you would have to adjust the number of hits, as the Yes|No is merely a flag in the database.

There are mods to include an editor's pick and/or review, which would accomplish what you want.

Dan
Quote Reply
Re: Popuular Sites? In reply to
 


[This message has been edited by Conan (edited November 21, 1999).]