how add and subctract plusses in action? anyone?
Add Deduct Plusses How?
Collapse
X
-
Add Deduct Plusses How?
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>
Tags: None
-
Code://////////////////////////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() }
Code:////////////////////////////////////////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>"; }
-
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!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>
Comment
-
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?[/b]
a good idea! bro.. like this i have seen this from *****
i downloaded from somewhere! search and search!
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
// 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?act ion=main","");
mysql_query("UPDATE ibwf_users SET plusses=plusses+'5' WHERE id='".uid."'"); //just add this + or -
</div>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.
Comment
-
inet bru its not workFailure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>
Comment
-
inet bru its not work [/b]
this works...
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>mysql_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
}</div>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.
Comment
-
what things are working for you so far?[/b]Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>
Comment
-
i add bru same way but no action happeningFailure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>
Comment
-
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 :oFailure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>
Comment
-
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[/b]
the previous script works with my 3rd domain site...
you must use this one... this works with wapdesire!
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
$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."'");
</div>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.
Comment
-
this works bru yay thank you inet bruFailure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>
Comment
-
this works bru yay thank you inet bru[/b]
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.
Comment
-
thankx bru u wiz rukiya helped me all the time u guys are greatFailure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>
Comment
-
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.
Comment
Comment