Webmastersite.net
Register Log In

Toplist Question
Toplist for custom ratings

Comments on Toplist Question

azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 32
Total Comments: 114
azteca
Posted Jun 27, 2007 - 4:44 PM:

Paul I was wondering how I would do a toplist with custom ratings. What I am looking for is, I have have 10 custom ratings and wanting add all ten of them together and giving me a top rating from that. How would I do that?

Liz
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 28, 2007 - 11:53 AM:

Sounds like you need to make a link importance formula (Admin -> Settings -> Links).
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 32
Total Comments: 114
azteca
Posted Jun 28, 2007 - 9:21 PM:

Paul I'm not sure on what to do here can't seem to get it to work this what I have so far.

$importance = ($this->hitsoutpermonth() + $this->numcomments) + 6


That's what was there already and this what I did.


$importance = ($this->hitsoutpermonth() + $this->numcomments) + 6
$overallscore = ($this->linkrating + $this->linkcustomrating1rating + $this->linkcustomrating2rating + $this->linkcustomrating3rating + $this->linkcustomrating4rating + $this->linkcustomrating5rating + $this->linkcustomrating6rating + $this->linkcustomrating7rating + $this->linkcustomrating8rating + $this->linkcustomrating9rating)


I know I'm doing something wrong here.

Liz
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 29, 2007 - 2:31 PM:

You want $importance = $this->rating + $this->linkcustomrating1rating + $this->linkcustomrating2rating + $this->linkcustomrating3rating + $this->linkcustomrating4rating + $this->linkcustomrating5rating + $this->linkcustomrating6rating + $this->linkcustomrating7rating + $this->linkcustomrating8rating + $this->linkcustomrating9rating
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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