SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Accredited Master scotty2260's Avatar
    Join Date
    Apr 2004
    Location
    California
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to calculate top site?

    Sorry if this is the wrong place, i don't know exactly where to put it.

    I am making a custom topsite. The sites are going to be placed based on a few things: incoming links, outgoing links, review score, and amount of reviews.

    How would I calculate that fairly? I mean, I can't place a site with 1 review of 100, on top of a site with 20 review with a average of 95, you know?

    I also want to place extra weight on incoming links, as that obviously helps me out more. You scratch my back ill scratch yours kinda thing.


    Thanks!!
    Scott

  2. #2
    Non-Member
    Join Date
    Apr 2006
    Location
    Scotland
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Only way I can think of for the 1st question is have different categories for number of reviews.
    "Sites in order of rating with 100+ reviews"
    "Sites in order of rating with 50+ reviews"
    "Sites in order of rating with less than 10 reviews"

    2nd part I think you would need to check the sites yourself. Have a field in the DB called 'is_linking' and in the php code have

    (after setting the database field 'is_linking' to $is_linking)
    if ($is_linking == true/yes/1/not void) {
    $ranking = ($ranking + 5)
    }

    That would give the $ranking 5 higher.

    But im a n00b at php so please dont laugh if im way off.


    EDIT: 100 posts, WOO!!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •