Hi, to all coder's, since all my posted bout converter not working, i'll try to convert the wml to xhtml, as a newbie in php, will anyone help me or tell me if have a wrong syntax in my edit code,
here's the code:
for wml came from kaboom,
5 chatpost = 1 plusses
($hmany)userchatpost/5 = plusses
here my first mod in lava mod before ahehhe convert in xhtml ahehhe
{
echo "Converted Succesfully :)";
$convert = $hmany/5;
mysql_query("UPDATE ibwf_users SET chmsgs=chmsgs-'$hmany' WHERE id='".$uid."'");
mysql_query("UPDATE ibwf_users SET plusses=plusses+'$convert' WHERE id='".$uid."'");
}else{
echo "You have insufficient Chatpost go to chat and flood 🙂!";
}
echo "
echo "<do type="forums" label="forum Index"><go href="forum.php?action=main&sid=$sid"/></do>";
echo "<do type="my setting" label="my setting"><go href="index.php?action=cpanel&sid=$sid"/></do>";
echo "
";
echo "</card>";
}
sorry for posting, my phone have limit char.
This is wml, and i convert in xhtml, pls. Check if correct, heres the code:
$noi = mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$uid."'"));
if($noi[0]>=$hmany)
{
echo "Converted Succesfully :)";
$convert = $hmany/5;
mysql_query("UPDATE ibwf_users SET chmsgs=chmsgs-'$hmany' WHERE id='".$uid."'");
mysql_query("UPDATE ibwf_users SET plusses=plusses+'$convert' WHERE id='".$uid."'");
}else{
echo "You have insufficient Chatpost go to chat and flood 🙂!";
}
echo "
O.K bro, i have code for 5 hours online stat, like pwap later, but my problem is what code that i put in users profile, e.g 5 hrs stat: 2 hrs, 39 mins, 50 sec.
"Congratulations you have reach the 5 hours online. You received 100 Plusses. Note: This is an automatic pm";
mysql_query("INSERT INTO ibwf_private SET text='".$text."', byuid='332', touid='".$uid."', timesent='".time()."'");
$res = mysql_query("UPDATE ibwf_users SET plusses=plusses+100 WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET onlinedone='1' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET onlinetime='0' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET onlinedone='0' WHERE id='".$uid."'");
}
}
$ttime = time();
$res = mysql_query("UPDATE ibwf_users SET resetime='".$ttime."' WHERE id='".$uid."'");
$lastactive = mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id='".$uid."'"));
$tolsla = time() - $lastactive[0];
$totaltimeonline = mysql_fetch_array(mysql_query("SELECT onlinetime FROM ibwf_users WHERE id='".$uid."'"));
$totaltimeonline = $totaltimeonline[0] + $tolsla;
$res = mysql_query("UPDATE ibwf_users SET onlinetime='".$totaltimeonline."' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET lastseen='".$place."' WHERE id='".$uid."'");
$res = mysql_query("INSERT INTO ibwf_online SET userid='".$uid."', actvtime='".$tm."', place='".$place."', placedet='".$plclink."'");
if(!$res)
{
//most probably userid already in the online list
//so just update the place and time
$res = mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$place."', placedet='".$plclink."' WHERE userid='".$uid."'");
}
}
$maxmem=mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE id='2'"));
$result = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online"));
if($result[0]>=$maxmem[0])
{
$tnow = date("D d M Y - H:i");
mysql_query("UPDATE ibwf_settings set name='".$tnow."', value='".$result[0]."' WHERE id='2'");
}
$maxtoday = mysql_fetch_array(mysql_query("SELECT ppl FROM ibwf_mpot WHERE ddt='".date("d m y")."'"));
if($maxtoday[0]==0||$maxtoday=="")
{
mysql_query("INSERT INTO ibwf_mpot SET ddt='".date("d m y")."', ppl='1', dtm='".date("H:i:s")."'");
$maxtoday[0]=1;
}
if($result[0]>=$maxtoday[0])
{
mysql_query("UPDATE ibwf_mpot SET ppl='".$result[0]."', dtm='".date("H:i:s")."' WHERE ddt='".date("d m y")."'");
}
}
what code that i put in profile? Thanks bro!
arg0s12 wrote:
O.K bro, i have code for 5 hours online stat, like pwap later, but my problem is what code that i put in users profile, e.g 5 hrs stat: 2 hrs, 39 mins, 50 sec.
Thanks, bro, after a long time, your the only one who post this code, thanks, by the way, im visiting at zyclone, and thinking to use the script, a lot of stuff, ,