Shoutb0x Dduct Plusses

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

7 replies · 628 views · started 19 years ago · 1 min read

2 participants
Guest #1

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

Guest #2

what script do u have?

Guest #3

Lavalair..

Guest #4

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

//////////////////////////////////////////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='".$shtxt."', shouter='".$uid."', shtime='".$shtm."'");
    if($res)
    {
    $shts = mysql_fetch_array(mysql_query("SELECT shouts from ibwf_users WHERE id='".$uid."'"));
    $shts = $shts[0]+1;
    $plus = getplusses(getuid_sid($sid));
    $plusses = $plus - 1;
    mysql_query("UPDATE ibwf_users SET shouts='".$shts."', plusses='".$plusses."' WHERE id='".$uid."'");
    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&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
    echo "</p>";
    echo "</card>";
}
Guest #5

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

alexism Developer · 136 posts #6

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

wizard Senior · 493 posts #7
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='".$uid."'"));
$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='".$shtxt."', shouter='".$uid."', shtime='".$shtm."'");
    if($res)
    {
    $shts = mysql_fetch_array(mysql_query("SELECT shouts from ibwf_users WHERE id='".$uid."'"));
    $shts = $shts[0]+1;
    mysql_query("UPDATE ibwf_users SET shouts='".$shts."', credits='".$credits."' WHERE id='".$uid."'");
    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&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='".$shtxt."', shouter='".$uid."', shtime='".$shtm."'");
    if($res)
    {
    $shts = mysql_fetch_array(mysql_query("SELECT shouts from ibwf_users WHERE id='".$uid."'"));
    $shts = $shts[0]+1;
    mysql_query("UPDATE ibwf_users SET shouts='".$shts."', credits='".$credits."' WHERE id='".$uid."'");
    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&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
    echo "</p>";
        echo wapfoot();

    }
}
alexism Developer · 136 posts #8

owh..thanks a lot wizard..

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close