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
Started on the old forum in May 2009 · view the original in the archive · old links redirect here
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
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
your code are the downloads via upload or url? I want to go the url
DoRiAnN DaMoN
coder programmer http://www.plugadoz.net
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
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
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
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
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.
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
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.
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