Add Deduct Plusses How?

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

    Add Deduct Plusses How?

    how add and subctract plusses in action? anyone?
    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>


    #2
    Code:
    //////////////////////////plusses//////////////////////////
    
    else if($action=="plsopt")
    {
      $who = $_GET["who"];
      echo "<head>";
      echo "<title>Admin Tools</title>";
      echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo "</head>";
      echo "<body>";
      echo "<p align=\"center\">";
      if(!isadmin(getuid_sid($sid)))
      {
      echo "Permission Denied!
    ";
      }else{
      $unick = getnick_uid($who);
      echo "Add/Substract $unick&#39;s Plusses";
      echo "</p>";
      echo "
    
    ";
      echo "<form action=\"modproc.php?action=pls&amp;sid=$sid\" method=\"post\">";
      $pen[0]="Substract";
      $pen[1]="Add";
      echo "Action: <select name=\"pid\">";
      for($i=0;$i<count($pen);$i++)
      {
      echo "<option value=\"$i\">$pen[$i]</option>";
      }
      echo "</select>
    ";
      echo "Reason: <input name=\"pres\" maxlength=\"100\"/>
    ";
      echo "Plusses: <input name=\"pval\" style=\"-wap-input-format: &#39;*N&#39;\" maxlength=\"3\"/>
    ";
      echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
      echo "<input type=\"Submit\" value=\"Edit User\" Name=\"Submit\"/></form>";
      }
      echo "
    [b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../phpThumb/phpThumb.php?src=../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p></body>";
    exit()
    }
    Code:
    ////////////////////////////////////////plusses
    
    else if($action=="pls")
    {
        $pid = $_POST["pid"];
        $who = $_POST["who"];
        $pres = $_POST["pres"];
        $pval = $_POST["pval"];
          echo "<head>";
          echo "<title>Admin Tools</title>";
          echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
          echo "</head>";
          echo "<body>";
      echo "<p align=\"center\">";
      if(!isadmin(getuid_sid($sid)))
      {
      echo "Permission Denied!";
      }else{
    $unick = getnick_uid($who);
    $opl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
    
    if($pid==&#39;0&#39;)
    {
      $npl = $opl[0] - $pval;
    }else{
        $npl = $opl[0] + $pval;
    }
    if($npl<0)
    {
      $npl=0;
    }
      if(trim($pres)=="")
      {
        echo "<img src=\"../phpThumb/phpThumb.php?src=../images/notok.gif\" alt=\"X\"/>You must Specify a reson for updating $unick&#39;s Plusses";
      }else{
        
        $res = mysql_query("UPDATE ibwf_users SET lastplreas=&#39;".mysql_escape_string($pres)."&#39;, plusses=&#39;".$npl."&#39; WHERE id=&#39;".$who."&#39;");
        if($res)
              {
                mysql_query("INSERT INTO ibwf_mlog SET action=&#39;penalties&#39;, details=&#39;[b]".getnick_uid(getuid_sid($sid))."[/b] Updated [b]".$unick."[/b] plusses from ".$opl[0]." to $npl&#39;, actdt=&#39;".time()."&#39;");
                echo "<img src=\"../phpThumb/phpThumb.php?src=../images/ok.gif\" alt=\"O\"/>$unick&#39;s Plusses Updated From $opl[0] to $npl";
              }else{
                echo "<img src=\"../phpThumb/phpThumb.php?src=../images/notok.gif\" alt=\"X\"/>Database Error";
              }
      }
      }
      echo "
    
    [b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../phpThumb/phpThumb.php?src=../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p></body>";
    }
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      thanks brumi bru but i not wanted manual i wanted i wanted automic if user visit a page then pluss get deducted and if visit anothar page pluss get added. how to bru?
      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


        #4
        thanks brumi bru but i not wanted manual i wanted i wanted automic if user visit a page then pluss get deducted and if visit anothar page pluss get added. how to bru?[/b]

        a good idea! bro.. like this i have seen this from *****
        i downloaded from somewhere! search and search!


        <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
        // lets give him bonnus visting this page!
        if(enters==$lastlocation) {
        mysql_query("UPDATE ibwf_users SET plusses=plusses+&#39;5&#39; WHERE id=&#39;".$uid."&#39;");
        }

        or use this..........................


        if($action=="main")
        {
        addvisitor();
        addonline(getuid_sid($sid),"Forum Index","index.php?action=$action");
        add_place_detected(getuid_sid($sid),"index.php?act ion=main","");
        mysql_query("UPDATE ibwf_users SET plusses=plusses+&#39;5&#39; WHERE id=&#39;".uid."&#39;"); //just add this + or -

        </div>
        Services

        Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

        Below is a list of services I offer:

        Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

        Rates

        General consulting – My current hourly rate is $100 / hour.
        Custom Wapsite Community - My current rate is $500 / Wap Community Development.

        Comment


          #5
          inet bru its not work
          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
            what things are working for you so far?

            Comment


              #7
              inet bru its not work [/b]
              just add this

              this works...

              <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>mysql_query("UPDATE ibwf_users SET plusses=plusses+&#39;5&#39; WHERE id=&#39;".uid."&#39;");

              or this

              mysql_query("UPDATE ibwf_users SET plusses=plusses-&#39;5&#39; WHERE id=&#39;".uid."&#39;");


              in



              Example:
              if($action=="main"){

              mysql_query("UPDATE ibwf_users SET plusses=plusses-&#39;5&#39; WHERE id=&#39;".uid."&#39;");

              //add the other codes below


              }</div>
              Services

              Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

              Below is a list of services I offer:

              Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

              Rates

              General consulting – My current hourly rate is $100 / hour.
              Custom Wapsite Community - My current rate is $500 / Wap Community Development.

              Comment


                #8
                what things are working for you so far?[/b]
                the probelm i have with form and captcha work for me so far and i mkae it to work myself bru
                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


                  #9
                  i add bru same way but no action happening
                  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


                    #10
                    sorry inet bru i do it wrong it is working but its sets the plusses its not upadting if u have 500 plusses and u put this code to -5 then all ur plusses gets disappeared and it becomes -5 :o
                    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


                      #11
                      sorry inet bru i do it wrong it is working but its sets the plusses its not upadting if u have 500 plusses and u put this code to -5 then all ur plusses gets disappeared and it becomes -5 :o[/b]

                      the previous script works with my 3rd domain site...


                      you must use this one... this works with wapdesire!

                      <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
                      $facedown = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                      $facedown= $facedown[0];
                      $ugpl2 = $facedown - "50";
                      mysql_query("UPDATE ibwf_users SET plusses=&#39;".$ugpl2."&#39; WHERE id=&#39;".$uid."&#39;");
                      </div>
                      Services

                      Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

                      Below is a list of services I offer:

                      Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

                      Rates

                      General consulting – My current hourly rate is $100 / hour.
                      Custom Wapsite Community - My current rate is $500 / Wap Community Development.

                      Comment


                        #12
                        this works bru yay thank you inet bru
                        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


                          #13
                          this works bru yay thank you inet bru[/b]
                          welcome bro...

                          yay yes! i had made it again..

                          i will help you again next time...
                          Services

                          Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

                          Below is a list of services I offer:

                          Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

                          Rates

                          General consulting – My current hourly rate is $100 / hour.
                          Custom Wapsite Community - My current rate is $500 / Wap Community Development.

                          Comment


                            #14
                            thankx bru u wiz rukiya helped me all the time u guys are great
                            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


                              #15
                              this above topic will give you chance to charge plusses per visit of a certain page... add or deduct.. hehehehehe bye for now i have to go....
                              Services

                              Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

                              Below is a list of services I offer:

                              Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

                              Rates

                              General consulting – My current hourly rate is $100 / hour.
                              Custom Wapsite Community - My current rate is $500 / Wap Community Development.

                              Comment

                              Working...
                              X