Activity Stream
48,167 MEMBERS
62191 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1.     
    #11
    Member
    TEST IN AN SAFE PLACE

    The query to update table are incomplete

    PHP Code: 
    $found mysql_query("SELECT distinct sid FROM wcddl_downloads");
    //$srank="";
    while($updaterank mysql_fetch_assoc($found)) {
       
    $getnumdownloads mysql_query("SELECT title FROM wcddl_downloads WHERE sid= ".$updaterank['sid']);
       
    $result mysql_num_rows($getnumdownloads);
       if(
    strlen($result) >= || $result >= 500) {
      
    $srank ="5"; }
       if(
    strlen($result) === && $result >= 200 && $result <= 499) {
       
    $srank substr($result01);
     }
     if(isset(
    $srank)) {
     
    //mysql_query("UPDATE BLABLABLA"); //continue whit the query and uncomment after the test if everyhing are ok
    echo "Site id ".$updaterank['sid']." - white ".$result." downloads will be rank ".$srank."<br />";
    unset(
    $srank);
    }



  2.   Sponsored Links

  3.     
    #12
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org
    Ok thanks for your help. I'm just going to use a modified version of the first code. My problem was that I missunderstood how it worked in the first place

  4.     
    #13
    Member
    in fact i didn't see your ratings values

    but are easy to change the code above to be whit that values.

    wat i posted do

    200->299 Rank2
    300->399 R3
    400->499 R4
    500+ R5


    if($result >= 200 && $result <= 599) {
    $srank ="2"; }
    if($result >= 600 && $result <= 2999) {
    $srank ="3"; }
    //theres no rank4?
    if($result >= 5000) {
    $srank ="5"; }


  5.     
    #14
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org
    I actually prefer you first code but I missunderstood how it worked, now I just changed it a bit to suit my needs. Thanks for your help

  6.     
    #15
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    i am trying to add this to my auto queue accept mod, which is run 4 - 5x day via cron.

    here my code:

    PHP Code: 
        $get100 mysql_query("SELECT COUNT(title) AS 'number' , sid FROM wcddl_downloads GROUP BY sid ORDER BY number DESC LIMIT 120");
        while (
    $row mysql_fetch_array($get100)) {
        
    mysql_query("UPDATE wcddl_sites SET rating=2 where id = '".$row['sid']."'"); }

        
    $get600 mysql_query("SELECT COUNT(title) AS 'number' , sid FROM wcddl_downloads GROUP BY sid ORDER BY number DESC LIMIT 600");
        while (
    $row mysql_fetch_array($get600)) {
        
    mysql_query("UPDATE wcddl_sites SET rating=3 where id = '".$row['sid']."'"); }

        
    $get2800 mysql_query("SELECT COUNT(title) AS 'number' , sid FROM wcddl_downloads GROUP BY sid ORDER BY number DESC LIMIT 2800");
        while (
    $row mysql_fetch_array($get2800)) {
        
    mysql_query("UPDATE wcddl_sites SET rating=4 where id = '".$row['sid']."'"); }

        echo 
    '<div align="center" style="color:green;">Sites Rated</div>'

    it sees to not be rating si tes.

    any heelp

  7.     
    #16
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    here's my working modified code:

    PHP Code: 
            mysql_query("UPDATE wcddl_sites SET rate=1");

            
    $get1600 mysql_query("SELECT COUNT(title) AS 'number' , sid FROM wcddl_downloads GROUP BY sid ORDER BY number DESC LIMIT 1600");
            while (
    $row mysql_fetch_array($get1600)) {
            
    mysql_query("UPDATE wcddl_sites SET rate=4 where id = '".$row['sid']."'"); }
            
            
    $get420 mysql_query("SELECT COUNT(title) AS 'number' , sid FROM wcddl_downloads GROUP BY sid ORDER BY number DESC LIMIT 420");
            while (
    $row mysql_fetch_array($get420)) {
            
    mysql_query("UPDATE wcddl_sites SET rate=3 where id = '".$row['sid']."'"); }
            
            
    $get120 mysql_query("SELECT COUNT(title) AS 'number' , sid FROM wcddl_downloads GROUP BY sid ORDER BY number DESC LIMIT 120");
            while (
    $row mysql_fetch_array($get120)) {
            
    mysql_query("UPDATE wcddl_sites SET rate=2 where id = '".$row['sid']."'"); }

        echo 
    '<div align="center" style="color:green;">All eligible sites rated</div>'
    problem is, its rating all sites 2* as if they have 420 downloads. and they dont.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. AtomicWarez Site Rating
    By Ccucu in forum Forum and DDL Discussion
    Replies: 7
    Last Post: 24th Mar 2011, 12:03 PM
  2. WCDDL Site Rating
    By CyberHacK in forum Web Application/Script Support
    Replies: 22
    Last Post: 8th Apr 2010, 11:09 PM
  3. joeschatterbox 3* site rating
    By leaky_joe in forum Site Reviews
    Replies: 8
    Last Post: 14th Feb 2010, 02:25 PM
  4. WCDDL Site Rating Mod
    By DDLwarez in forum Web Application/Script Support
    Replies: 5
    Last Post: 3rd Feb 2010, 03:11 AM
  5. Site rating of x-sharezone??
    By djay in forum Site Reviews
    Replies: 2
    Last Post: 19th Sep 2008, 08:37 PM

Tags for this Thread

BE SOCIAL