Shoutb0x Dduct Plusses

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

    Shoutb0x Dduct Plusses

    Guys out there, hi.. I still new in coding,hope u guys cn guide me.. I wanna make my sh0utb0x juz like world.2wap whch is wheneva we sh0ut,it wud dduct our plusses..i need dat c0de..h0pe u guys wil help me..plzzz

    #2
    what script do u have?

    Comment


      #3
      Lavalair..

      Comment


        #4
        edit your genproc.php file, the shout area to this

        Code:
        //////////////////////////////////////////shout
        
        else if($action=="shout")
        {
          $shtxt = $_POST["shtxt"];
            addonline(getuid_sid($sid),"Shouting","");
        
            echo "<card id=\"main\" title=\"Shout\">";
            echo "<p align=\"center\">";
            if(getplusses(getuid_sid($sid))<75)
            {
                echo "<img src=\"images/notok.gif\" alt=\"X\"/>You should have at least 75 plusses to shout!";
            }else{
              $shtxt = $shtxt;
            //$uid = getuid_sid($sid);
            $shtm = time();
            $res = mysql_query("INSERT INTO ibwf_shouts SET shout=&#39;".$shtxt."&#39;, shouter=&#39;".$uid."&#39;, shtime=&#39;".$shtm."&#39;");
            if($res)
            {
            $shts = mysql_fetch_array(mysql_query("SELECT shouts from ibwf_users WHERE id=&#39;".$uid."&#39;"));
            $shts = $shts[0]+1;
            $plus = getplusses(getuid_sid($sid));
            $plusses = $plus - 1;
            mysql_query("UPDATE ibwf_users SET shouts=&#39;".$shts."&#39;, plusses=&#39;".$plusses."&#39; WHERE id=&#39;".$uid."&#39;");
            echo "<img src=\"images/ok.gif\" alt=\"O\"/>Shout added successfully";
            }else{
                echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
            }
                    }
                 echo "
        
        <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Home</a>";
            echo "</p>";
            echo "</card>";
        }

        Comment


          #5
          Thanx clevy,i wil try these c0ding when i fix my script..

          Comment


            #6
            clevy or anyone else can give me the shoutbox deducted plusses code for funmobile?thanks..

            Comment


              #7
              Code:
              else if($action=="shout")
              {
              $uid = getuid_ses($ses);
                $shtxt = $_POST["shtxt"];
                  addonline(getuid_ses($ses),"Shouting","");
              $wiz = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
              $credits = $wiz[0] - 1;
              
                     if($mime== WEB)
                  {
                      echo webhead($uthm,$stitle);
                  echo "<p align=\"center\">";
                  if(getcredits(getuid_ses($ses))<75)
                  {
                      echo "<img src=\"images/notok.gif\" alt=\"X\"/>You should have at least 75 credits to shout!";
                  }else{
                    $shtxt = $shtxt;
                  
                  $shtm = time();
                  $res = mysql_query("INSERT INTO ibwf_shouts SET shout=&#39;".$shtxt."&#39;, shouter=&#39;".$uid."&#39;, shtime=&#39;".$shtm."&#39;");
                  if($res)
                  {
                  $shts = mysql_fetch_array(mysql_query("SELECT shouts from ibwf_users WHERE id=&#39;".$uid."&#39;"));
                  $shts = $shts[0]+1;
                  mysql_query("UPDATE ibwf_users SET shouts=&#39;".$shts."&#39;, credits=&#39;".$credits."&#39; WHERE id=&#39;".$uid."&#39;");
                  echo "<img src=\"images/ok.gif\" alt=\"O\"/>Shout added successfully";
                  }else{
                      echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
                  }
                          }
                       echo "
              
              <a href=\"index.php?action=main&amp;ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>";
              echo "Home</a>";
                  echo "</p>";
                      echo webfoot();
              
                  }else{
                      echo waphead($stitle);
                  echo "<p align=\"center\">";
                  if(getcredits(getuid_ses($ses))<75)
                  {
                      echo "<img src=\"images/notok.gif\" alt=\"X\"/>You should have at least 75 credits to shout!";
                  }else{
                    $shtxt = $shtxt;
                  //$uid = getuid_ses($ses);
                  $shtm = time();
                  $res = mysql_query("INSERT INTO ibwf_shouts SET shout=&#39;".$shtxt."&#39;, shouter=&#39;".$uid."&#39;, shtime=&#39;".$shtm."&#39;");
                  if($res)
                  {
                  $shts = mysql_fetch_array(mysql_query("SELECT shouts from ibwf_users WHERE id=&#39;".$uid."&#39;"));
                  $shts = $shts[0]+1;
                  mysql_query("UPDATE ibwf_users SET shouts=&#39;".$shts."&#39;, credits=&#39;".$credits."&#39; WHERE id=&#39;".$uid."&#39;");
                  echo "<img src=\"images/ok.gif\" alt=\"O\"/>Shout added successfully";
                  }else{
                      echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
                  }
                          }
                       echo "
              
              <a href=\"index.php?action=main&amp;ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>";
              echo "Home</a>";
                  echo "</p>";
                      echo wapfoot();
              
                  }
              }

              Comment


                #8
                owh..thanks a lot wizard..

                Comment

                Working...
                X