Share Plusses Script

Started on the old forum in January 2008 · view the original in the archive · old links redirect here

37 replies · 2,194 views · started 18 years ago · 1 min read

6 participants
rukiya Lead · 569 posts #2

in index.php

//////////////////////////////////////////Share Plusses

else if($action=="sharepl")
{
  $who = $_GET["who"];
  addonline(getuid_sid($sid),"Sharring Plusses","");
    echo "<card id=\"main\" title=\"$sitename\">";
    echo "<onevent type=\"onenterforward\">";
    echo "<refresh>
        <setvar name=\"tfgp\" value=\"0\"/>";
    echo "</refresh></onevent>";
  echo "<p align=\"center\">";
echo "script by Rukiya";
echo "
";
  echo "[b]Give Plusses To ".getnick_uid($who)."[/b]

";
  $ps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
  echo "You have $ps[0] Plusses

";
  echo "Plusses to give
";
  echo "<input name=\"tfgp\" format=\"*N\" maxlength=\"2\"/>";
  echo "
<anchor>Give";
  echo "<go href=\"genproc.php?action=sharepl&sid=$sid&who=$who\" method=\"post\">";
  echo "<postfield name=\"ptg\" value=\"$(tfgp)\"/>";
  echo "</go></anchor>";
  echo "

<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p>";
  echo "</card>";
}

usage

echo "<a href=\"index.php?action=sharepl&who=$who&sid=$sid\">Share Plusses</a>
";

in genproc.php

//////////////////////////////////////////Share plusses
else if($action=="sharepl")
{
    addonline(getuid_sid($sid),"Sharring Plusses","");
    $who = $_GET["who"];
    $ptg = $_POST["ptg"];
    echo "<card id=\"main\" title=\"$sitename\">";
  echo "<p align=\"center\">";
  //$uid = getuid_sid($sid);
  $psf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
  $pst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
  if($psf[0]>=$ptg){
    $psf = $psf[0]-$ptg;
    $pst = $pst[0]+$ptg;
    $res = mysql_query("UPDATE ibwf_users SET plusses='".$pst."' WHERE id='".$who."'");
  if($res)
        {
          $res = mysql_query("UPDATE ibwf_users SET plusses='".$psf."' WHERE id='".$uid."'");
            echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Plusses Updated Successfully
";
        }else{
          echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!
";
        }
      }else{
          echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You don't have enough Plusses to give
";
        }
echo " script by rukiya";
        echo "
";
  
     echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
  echo "</card>";
}
alexism Developer · 136 posts #3

its always say that i have not enough credit to share...y??

WhiteWarrior Principal · 1,419 posts #5

i need share plusses script n im using lavalair script so plz help me out!!!!!!! External image (may be gone)

or just look for the share game plusses part andcopy that and just change the gplus to plusses ...

alexism Developer · 136 posts #6

i am owner of my site n i have 2147483622 but its still view "u don't have enough Plusses to give"

alexism Developer · 136 posts #7

give me the html version for this coding plz..

rukiya Lead · 569 posts #8
//////////////////////////////////////////Share Plusses

else if($action=="sharepl")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Sharring Plusses","");
 echo "<head>";
  echo "<title>$sitename</title>";
  echo "</head>";
  echo "<body>";
echo "<onevent type=\"onenterforward\">";
echo "<refresh>
<setvar name=\"tfgp\" value=\"0\"/>";
echo "</refresh></onevent>";
echo "<p align=\"center\">";
echo "script by Rukiya";
echo "
";
echo "[b]Give Plusses To ".getnick_uid($who)."[/b]

";
$ps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
echo "You have $ps[0] Plusses

";
echo "Plusses to give
";
echo "<input name=\"tfgp\" format=\"*N\" maxlength=\"2\"/>";
echo "
<form action="genproc.php?action=sharepl&sid=$sid&who=$who\" method=\"post\">";
echo "<input name=\"ptg\" value=\"$(tfgp)\"/>";

echo"<input type = "submit" value"GO"/>";
echo"</form>";
echo "

<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</body>";
}
/////////////////////////////

do the rest yourself

alexism Developer · 136 posts #9

i have u this code but i cannot click give cos i has became a word not a link.i think mybe cos u use anchor..fix it plz..

alexism Developer · 136 posts #11

its show the same result friend..GIVE became a word n i cant click it...fix it plz..

alexism Developer · 136 posts #13

u didnt even fix it..but u make it worst..check it by urself my friend..

rukiya Lead · 569 posts #14

in index.php

//////////////////////////////////////////Give Plusses

else if($action=="givep")
{
  $who = $_GET["who"];
  addonline(getuid_sid($sid),"Giving Plusses","");
    echo "<head>";
    echo "<title>Give Plusses</title>";
    echo "</head>";
    echo "<body>";
  echo "<p align=\"center\">";
  echo "[b]Give GPs To ".getnick_uid($who)."[/b]

";
  $gps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
  echo "You have $gps[0] GP's

";
  echo "plusses to give
";
  echo "<form action=\"genproc.php?action=givep&sid=$sid&who=$who\" method=\"post\">";
  echo "<input name=\"ptg\" style=\"-wap-input-format: '*N'\" maxlength=\"2\">";
  echo "
<input type=\"Submit\" Value=\"Give\" name=\"Give\"></form>";
  echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}

usage in index.php

echo "<a href=\"index.php?action=givep&who=$who&sid=$sid\">Share Plusses</a>
";

in genproc.php

else if($action=="givep")
{
    addonline(getuid_sid($sid),"Giving Plusses","");
    $who = $_GET["who"];
    $ptg = $_POST["ptg"];
      echo "<head>";
      echo "<title>$sitename</title>";
      echo "</head>";
      echo "<body>";
  echo "<p align=\"center\">";
  //$uid = getuid_sid($sid);
  $gpsf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
  $gpst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
  if($gpsf[0]>=$ptg){
    $gpsf = $gpsf[0]-$ptg;
    $gpst = $gpst[0]+$ptg;
    $res = mysql_query("UPDATE ibwf_users SET plusses='".$gpst."' WHERE id='".$who."'");
  if($res)
        {
          $res = mysql_query("UPDATE ibwf_users SET plusses='".$gpsf."' WHERE id='".$uid."'");
            echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Plusses Updated Successfully
";
        }else{
          echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!
";
        }
      }else{
          echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You don't have enough plusses to give
";
        }

        echo "
";
  
echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
  echo "</body>";
}

and do copy and paste the only one work u can really do

alexism Developer · 136 posts #15

say wut ever u want coz u r clever than me..that coding work..a lot of thanks my friend..

alexism Developer · 136 posts #16

one more thing...i found that in this coding..user r able to share pluses to themself...this will make them get pluses easyly...huh?i need some solution...

mcKeny Developer · 130 posts #17

if($uid !==$who) { //link to share pluses here }

R.M.C

PHP Adovocate B)

alexism Developer · 136 posts #18

if($uid !==$who) { //link to share pluses here }

where must i put that code?

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