Give plusses for lavalair

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

14 replies · 950 views · started 17 years ago · 1 min read

4 participants
doriann Developer · 94 posts #1

Hello i would like the code for a user donate plusses to another through the user profile. If possible post the code and complete tables in the database

DoRiAnN DaMoN

coder programmer http://www.plugadoz.net

riderz Lead · 975 posts #2

ill share the code when im on my pc have it for u


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

riderz Lead · 975 posts #4

u want the plusses share code there only a place in profile for text then u type in the amount u wona share what u mean url


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

alesh Lead · 604 posts #5

just copy the code for share game plusses.... change the sql query (gplus to plusses) and thats it

eeeeerrr....

riderz Lead · 975 posts #6

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 "<br/>";
  echo "<b>Give Plusses To ".getnick_uid($who)."</b><br/><br/>";
  $ps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
  echo "You have $ps[0] Plusses<br/><br/>";
  echo "Plusses to give<br/>";
  echo "<input name=\"tfgp\" format=\"*N\" maxlength=\"2\"/>";
  echo "<br/><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 "<br/><br/><a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p>";
  echo "</card>";
}

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

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<br/>";
        }else{
          echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
        }
      }else{
          echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You don't have enough Plusses to give<br/>";
        }
echo " script by rukiya";
        echo "<br/>";
  
     echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
  echo "</card>";
}

Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

alesh Lead · 604 posts #7

as i said.... lol

eeeeerrr....

riderz Lead · 975 posts #8

haha yea alesh just making it easy for them


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

alesh Lead · 604 posts #9

they'll never learn this way....

eeeeerrr....

riderz Lead · 975 posts #10

Mmm i guess so i agree with u but still like to make this place a community if u request u get help


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

alesh Lead · 604 posts #11

thts okay but... still if u only give, they'll just ask/want/need.... theres no end...

i was the same lol but i was boooooooored 2 do tht and wait to sum1 make it for me.... sooooo i visited php.net....

eeeeerrr....

capofret Developer · 225 posts #12

plusses are not updated..😕

now i got it working.. i used codes from wap.net.ph

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

doriann Developer · 94 posts #13

no wml

Hello test the code for it is more like a version wml xhtml version set to go in this version of wml not give the option to acces

DoRiAnN DaMoN

coder programmer http://www.plugadoz.net

capofret Developer · 225 posts #14

doriann wrote: Hello test the code for it is more like a version wml xhtml version set to go in this version of wml not give the option to acces

which version u want? wml or xhtml? so i can post here. but i was only able to get it work in xhtml..havent tried wml. u can also check my site to see. i called it "share coins" in user's profile:D

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

doriann Developer · 94 posts #15

capofret wrote: which version u want? wml or xhtml? so i can post here. but i was only able to get it work in xhtml..havent tried wml. u can also check my site to see. i called it "share coins" in user's profile:D

This same code that I want. Xhtml version

DoRiAnN DaMoN

coder programmer http://www.plugadoz.net

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