Results 1 to 7 of 7

Thread: virtual rating to make Indexu a quality index

  1. #1
    Join Date
    Jul 2002
    Posts
    189

    Default virtual rating to make Indexu a quality index

    Hello,

    so finally here are all steps to make Indexu a quality index which lists links by there ratings. This hack also includes a virtual rating of 2.5 (neutral - neither good nor bad link) for every link.

    Instruction:

    1. Search within browse.php and search.php for the word "bid" and ad to $query:
    PHP Code:
    $query .= " order by bid desc, rating desc"
    2. Now you need to add a neutral value to every link which has no votes. Execute the following query in phpmyadmin or Indexu query box:
    Code:
    UPDATE idx_link SET rating='2.50' WHERE votes='0';
    3. The default value of 2.50 shouln't be displayed as a vote caus it was automatically generated. Links with no votes (but a default rating) should be handeled like regular links.

    modify link.class.php (about line 1190):
    PHP Code:
    if(($avgr<1)or($votes==0)) { $rating_image $this->not_yet_rated$rating_image2 $rating_image; } 
    4. New added links must have a default rating value of 2.50 too!
    modify link.class.php (about line 1420):
    PHP Code:
    elseif($field=='rating'$custom_fields_value .= 2.50
    That's it!

    I also set my editor pick to a rating of 5.0. Can be easily done by executing the following sql-statement
    Code:
    UPDATE idx_link SET rating='5.0' WHERE pick ='1';
    greets

    Joerg
    --------- applying hacks require a knack ---------

  2. #2
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    has anyone tested this mod? tjoerg is there any known bugs?

  3. #3
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    it's not so much a question of bugs but philosophy on presenting the info

    see http://www.nicecoder.com/community/s...&threadid=1782
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  4. #4
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    but does it work?

  5. #5
    Join Date
    Jul 2002
    Posts
    189

    Default

    It works fine for my site!

    If you have any problems installing this hack, post here!
    --------- applying hacks require a knack ---------

  6. #6
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    Originally posted by tjoerg
    It works fine for my site!

    If you have any problems installing this hack, post here!
    can I see your site?
    Polo

    --------------------------------------
    Christian Website

  7. #7
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    This custom hack is awesome, I like it, excellent Job tjoerg
    Polo

    --------------------------------------
    Christian Website

Similar Threads

  1. Replies: 26
    Last Post: 06-25-2007, 09:45 PM
  2. Indexu 4 ???? or Indexu PPC?
    By nooralam in forum v5.x
    Replies: 15
    Last Post: 06-07-2004, 04:04 PM
  3. Need To Make Index Table Wider
    By Compdoctor in forum v5.x
    Replies: 4
    Last Post: 05-13-2004, 02:54 AM
  4. importance of link rating
    By tjoerg in forum v5.x
    Replies: 13
    Last Post: 01-03-2004, 09:51 PM
  5. Replies: 1
    Last Post: 03-03-2003, 09:01 AM

Posting Permissions

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