User Bot

Started on the old forum in December 2008 · view the original in the archive · old links redirect here

10 replies · 1,672 views · started 17 years ago · 1 min read

8 participants
wolf77ar Developer · 51 posts #2

You can try to make something like this:

Add in ibwf_users table one row called online_from and make this row like lastact row

Add this line in login.php:

mysql_query("UPDATE ibwf_users SET online_from='".time()."' WHERE id='".$who."'");

after mysql_query UPDATE user logins data

And on profiles if you have function time for iddle on core.php put this code:

if(isonline($who))
{
$regd = mysql_fetch_array(mysql_query("SELECT regdate, lastvst, online_from FROM ibwf_users WHERE id='".$who."'"));
$sage = time()-$regd[2];
$rwage = gettimemsg($sage);
$lastact = time()-$regd[2];
$days=0;
$mins=0;
$hours=0;
if ($lastact>60)
{
$secs=$lastact%60;
$mins=$lastact/60;
$mins=(integer)$mins;
}
if ($mins>60)
{
$hours=$mins/60;
$hours=(integer)$hours;
$mins=$mins%60;
}
if ($hours>24)
{
$days=$hours/24;
$days=(integer)$days;
$hours=$hours%24;
}
echo "Online from: ";
if($days>0)
{
echo "[b]$days[/b] days, [b]$hours[/b] hours, [b]$mins[/b] minutes, [b]$secs[/b] secs";
}
if($days<1)
{
if($hours>0)
{
echo "[b]$hours[/b] hours, [b]$mins[/b] minutes, [b]$secs[/b] secs";
}
if($hours<1)
{
echo "[b]$mins[/b] minutes, [b]$secs[/b] secs";
}
}
echo "
";

I Think you want another type of code 😀 I read your post verry quick 😀

echo "<a href="http://wapcomunity.ro">[-Enter Here-]</a>";

valentin2br Junior · 47 posts #3

QUOTE (wolf77ar @ Dec 30 2008, 02:12 PM) <{POST_SNAPBACK}>

You can try to make something like this:

Add in ibwf_users table one row called online_from and make this row like lastact row

Add this line in login.php:

mysql_query("UPDATE ibwf_users SET online_from='".time()."' WHERE id='".$who."'");

after mysql_query UPDATE user logins data

And on profiles if you have function time for iddle on core.php put this code:

if(isonline($who))
{
$regd = mysql_fetch_array(mysql_query("SELECT regdate, lastvst, online_from FROM ibwf_users WHERE id='".$who."'"));
$sage = time()-$regd[2];
$rwage = gettimemsg($sage);
$lastact = time()-$regd[2];
$days=0;
$mins=0;
$hours=0;
if ($lastact>60)
{
$secs=$lastact%60;
$mins=$lastact/60;
$mins=(integer)$mins;
}
if ($mins>60)
{
$hours=$mins/60;
$hours=(integer)$hours;
$mins=$mins%60;
}
if ($hours>24)
{
$days=$hours/24;
$days=(integer)$days;
$hours=$hours%24;
}
echo "Online from: ";
if($days>0)
{
echo "$days days, $hours hours, $mins minutes, $secs secs";
}
if($days<1)
{
if($hours>0)
{
echo "$hours hours, $mins minutes, $secs secs";
}
if($hours<1)
{
echo "$mins minutes, $secs secs";
}
}
echo "
";

I Think you want another type of code 😀 I read your post verry quick :D

wolfy tnkx..(tu cati ai pe comunity 100 lol varza sunteti) bro

sweetangel Lead · 885 posts #4

I think user allways online on index page...like lavagirl on lavalair chat and spiderbabe on spiderwap chat 🙂 simple bot ... but allways online 🙂

if like my post click:

External image (may be gone)

rukiya Lead · 569 posts #5

QUOTE (wolf77ar @ Dec 30 2008, 02:12 PM) <{POST_SNAPBACK}>

You can try to make something like this:

Add in ibwf_users table one row called online_from and make this row like lastact row

Add this line in login.php:

mysql_query("UPDATE ibwf_users SET online_from='".time()."' WHERE id='".$who."'");

after mysql_query UPDATE user logins data

And on profiles if you have function time for iddle on core.php put this code:

if(isonline($who))
{
$regd = mysql_fetch_array(mysql_query("SELECT regdate, lastvst, online_from FROM ibwf_users WHERE id='".$who."'"));
$sage = time()-$regd[2];
$rwage = gettimemsg($sage);
$lastact = time()-$regd[2];
$days=0;
$mins=0;
$hours=0;
if ($lastact>60)
{
$secs=$lastact%60;
$mins=$lastact/60;
$mins=(integer)$mins;
}
if ($mins>60)
{
$hours=$mins/60;
$hours=(integer)$hours;
$mins=$mins%60;
}
if ($hours>24)
{
$days=$hours/24;
$days=(integer)$days;
$hours=$hours%24;
}
echo "Online from: ";
if($days>0)
{
echo "$days days, $hours hours, $mins minutes, $secs secs";
}
if($days<1)
{
if($hours>0)
{
echo "$hours hours, $mins minutes, $secs secs";
}
if($hours<1)
{
echo "$mins minutes, $secs secs";
}
}
echo "
";

I Think you want another type of code 😀 I read your post verry quick :D

lol what for what

mazalo Developer · 50 posts #6

What should I put in core.php ,because this thing don't work right?

Guest #8

ask spiderwap lol

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