Help Here Please

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help Here Please

    Ok, what i've done...

    Added this just under my logo on "main"
    Code:
    ///////////////////////////////////////////////////
      $daytm = 7*60;
    
      $reptime = time() - $daytm;
    
      $rminfo = mysql_fetch_array (mysql_query("SELECT id, name, ficon, fmsg FROM ibwf_users WHERE reputation>='50' AND ficon!='' AND fmsg!='' AND lastact>'".$reptime."' ORDER BY RAND() LIMIT 1"));
    
      //if(isbanned($rminfo[0]) $rminfo[0] = 0;
    
      if($rminfo[0]>0)
    
      {
    
        mysql_query("UPDATE ibwf_users SET ruse=ruse+1 WHERE id='".$rminfo[0]."' LIMIT 1");
    
        echo "<img src=\"$rminfo[2]\" alt=\"RI\"/><a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$rminfo[0]\"> $rminfo[1]</a> (".htmlspecialchars($rminfo[3]).")
    
    ";
    
    }
    
    ///////////////////////////////////////////////////
    Added this in "viewuser"

    Code:
      $nopl = mysql_fetch_array(mysql_query("SELECT reputation FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
    
      echo "Rep. Power: [b]$nopl[0][/b]
    ";
    
      $nopl = mysql_fetch_array(mysql_query("SELECT ruse FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
    
      echo "Rep. Usefulness: [b]$nopl[0][/b]
    ";
    And uploaded ricon.php file and insert the sqls but its not showing. why? did i perhaps miss something?

    Click here!!!

    #2
    mysql_query("UPDATE ibwf_users SET ruse=ruse+1 WHERE id=&#39;".$rminfo[0 ]."&#39; LIMIT 1");
    ---
    if you use mysql_error you would of seen that error... .

    R.M.C
    ----------
    PHP Adovocate B)

    Comment


      #3
      Ok, what i&#39;ve done...

      Added this just under my logo on "main"
      Code:
      ///////////////////////////////////////////////////
        $daytm = 7*60;
      
        $reptime = time() - $daytm;
      
        $rminfo = mysql_fetch_array (mysql_query("SELECT id, name, ficon, fmsg FROM ibwf_users WHERE reputation>=&#39;50&#39; AND ficon!=&#39;&#39; AND fmsg!=&#39;&#39; AND lastact>&#39;".$reptime."&#39; ORDER BY RAND() LIMIT 1"));
      
        //if(isbanned($rminfo[0]) $rminfo[0] = 0;
      
        if($rminfo[0]>0)
      
        {
      
          mysql_query("UPDATE ibwf_users SET ruse=ruse+1 WHERE id=&#39;".$rminfo[0]."&#39; LIMIT 1");
      
          echo "<img src=\"$rminfo[2]\" alt=\"RI\"/><a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$rminfo[0]\"> $rminfo[1]</a> (".htmlspecialchars($rminfo[3]).")
      
      ";
      
      }
      
      ///////////////////////////////////////////////////
      Added this in "viewuser"

      Code:
        $nopl = mysql_fetch_array(mysql_query("SELECT reputation FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
      
        echo "Rep. Power: [b]$nopl[0][/b]
      ";
      
        $nopl = mysql_fetch_array(mysql_query("SELECT ruse FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
      
        echo "Rep. Usefulness: [b]$nopl[0][/b]
      ";
      And uploaded ricon.php file and insert the sqls but its not showing. why? did i perhaps miss something?[/b]
      mine is little different from the original lavascript codes and it works ok
      its here http://bdfun.co.cc/wap

      Comment


        #4
        does this reputation coding works?
        Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

        <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

        Comment


          #5
          does this reputation coding works?
          Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

          <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

          Comment


            #6
            spiderbro please share rep coding
            Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

            <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

            Comment


              #7
              does this reputation coding works?[/b]
              a demo link was given by me to check if it works or does not

              Comment


                #8
                where bro? and where do i find the ricon.php?
                Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                Comment

                Working...
                X