how add and subctract plusses in action? anyone?
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
Started on the old forum in September 2008 · view the original in the archive · old links redirect here
how add and subctract plusses in action? anyone?
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
//////////////////////////plusses//////////////////////////
else if($action=="plsopt")
{
$who = $_GET["who"];
echo "<head>";
echo "<title>Admin Tools</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
if(!isadmin(getuid_sid($sid)))
{
echo "Permission Denied!
";
}else{
$unick = getnick_uid($who);
echo "Add/Substract $unick's Plusses";
echo "</p>";
echo "
";
echo "<form action=\"modproc.php?action=pls&sid=$sid\" method=\"post\">";
$pen[0]="Substract";
$pen[1]="Add";
echo "Action: <select name=\"pid\">";
for($i=0;$i<count($pen);$i++)
{
echo "<option value=\"$i\">$pen[$i]</option>";
}
echo "</select>
";
echo "Reason: <input name=\"pres\" maxlength=\"100\"/>
";
echo "Plusses: <input name=\"pval\" style=\"-wap-input-format: '*N'\" maxlength=\"3\"/>
";
echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
echo "<input type=\"Submit\" value=\"Edit User\" Name=\"Submit\"/></form>";
}
echo "
[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../phpThumb/phpThumb.php?src=../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p></body>";
exit()
}
////////////////////////////////////////plusses
else if($action=="pls")
{
$pid = $_POST["pid"];
$who = $_POST["who"];
$pres = $_POST["pres"];
$pval = $_POST["pval"];
echo "<head>";
echo "<title>Admin Tools</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
if(!isadmin(getuid_sid($sid)))
{
echo "Permission Denied!";
}else{
$unick = getnick_uid($who);
$opl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
if($pid=='0')
{
$npl = $opl[0] - $pval;
}else{
$npl = $opl[0] + $pval;
}
if($npl<0)
{
$npl=0;
}
if(trim($pres)=="")
{
echo "<img src=\"../phpThumb/phpThumb.php?src=../images/notok.gif\" alt=\"X\"/>You must Specify a reson for updating $unick's Plusses";
}else{
$res = mysql_query("UPDATE ibwf_users SET lastplreas='".mysql_escape_string($pres)."', plusses='".$npl."' WHERE id='".$who."'");
if($res)
{
mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='[b]".getnick_uid(getuid_sid($sid))."[/b] Updated [b]".$unick."[/b] plusses from ".$opl[0]." to $npl', actdt='".time()."'");
echo "<img src=\"../phpThumb/phpThumb.php?src=../images/ok.gif\" alt=\"O\"/>$unick's Plusses Updated From $opl[0] to $npl";
}else{
echo "<img src=\"../phpThumb/phpThumb.php?src=../images/notok.gif\" alt=\"X\"/>Database Error";
}
}
}
echo "
[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../phpThumb/phpThumb.php?src=../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p></body>";
}
Want something coded email me at sales@webnwaphost.com for a prices.
thanks brumi bru but i not wanted manual i wanted i wanted automic if user visit a page then pluss get deducted and if visit anothar page pluss get added. how to bru?
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
thanks brumi bru but i not wanted manual i wanted i wanted automic if user visit a page then pluss get deducted and if visit anothar page pluss get added. how to bru?
a good idea! bro.. like this i have seen this from ***** i downloaded from somewhere! search and search!
CODE // lets give him bonnus visting this page! if(enters==$lastlocation) { mysql_query("UPDATE ibwf_users SET plusses=plusses+'5' WHERE id='".$uid."'"); }
or use this..........................
if($action=="main") { addvisitor(); addonline(getuid_sid($sid),"Forum Index","index.php?action=$action"); add_place_detected(getuid_sid($sid),"index.php?action=main",""); mysql_query("UPDATE ibwf_users SET plusses=plusses+'5' WHERE id='".uid."'"); //just add this + or -
Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.
inet bru its not work 😢
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
what things are working for you so far?
inet bru its not work 😢
just add this
this works...
CODEmysql_query("UPDATE ibwf_users SET plusses=plusses+'5' WHERE id='".uid."'");
or this
mysql_query("UPDATE ibwf_users SET plusses=plusses-'5' WHERE id='".uid."'");
in
Example: if($action=="main"){
mysql_query("UPDATE ibwf_users SET plusses=plusses-'5' WHERE id='".uid."'");
//add the other codes below
}
Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.
what things are working for you so far?
the probelm i have with form and captcha work for me so far and i mkae it to work myself bru
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
i add bru same way but no action happening
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
sorry inet bru i do it wrong it is working but its sets the plusses its not upadting if u have 500 plusses and u put this code to -5 then all ur plusses gets disappeared and it becomes -5 :o
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
sorry inet bru i do it wrong it is working but its sets the plusses its not upadting if u have 500 plusses and u put this code to -5 then all ur plusses gets disappeared and it becomes -5 :o
the previous script works with my 3rd domain site...
you must use this one... this works with wapdesire!
CODE $facedown = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); $facedown= $facedown[0]; $ugpl2 = $facedown - "50"; mysql_query("UPDATE ibwf_users SET plusses='".$ugpl2."' WHERE id='".$uid."'");
Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.
this works bru yay thank you inet bru
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
this works bru yay thank you inet bru
welcome bro...
yay yes! i had made it again..
i will help you again next time...
Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.
thankx bru u wiz rukiya helped me all the time u guys are great 👏
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
this above topic will give you chance to charge plusses per visit of a certain page... add or deduct.. hehehehehe 🙄 bye for now i have to go....
Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.
thank you very much bro
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)