Auto Plusses System

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

15 replies · 1,278 views · started 17 years ago · 1 min read

6 participants
anderson Developer · 146 posts #1

Hi, I am thinking a new system for lavalair script is that users get plusses automatically according to his/her online time. When he spends 1 hour online time he will get 20 plusses. Per hour online time = 20 plusses. When he completes another 1 hour, he will get 20 plusses. This will happen automatically.

Hope my coder friends will think on it and share here. Thanks.

Wait...

capofret Developer · 225 posts #2

its already in wapnetph site..

this is from core.php file.. u can get idea here how to do it

function addonline($uid,$place,$plclink)
{
  $tm = time();
  $timeout = $tm - 420; //time out = 5 minutes
  $deloff = mysql_query("DELETE FROM ibwf_online WHERE actvtime <'".$timeout."'");
  ///now try to add user to online list
 $lastactive2 = mysql_fetch_array(mysql_query("SELECT resetime FROM ibwf_users WHERE id='".$uid."'"));
$tolsla2 = time() - $lastactive2[0];
$totaltimeonline2 = mysql_fetch_array(mysql_query("SELECT onlinetime FROM ibwf_users WHERE id='".$uid."'"));
$totaltimeonline2 = $totaltimeonline2[0] + $tolsla2;
$onlinetime = mysql_fetch_array(mysql_query("SELECT onlinetime FROM ibwf_users WHERE id='".$uid."'"));
$num = $onlinetime[0]/86400;
$days = intval($num);
$num2 = ($num - $days)*24;
$hours = intval($num2);
$num3 = ($num2 - $hours)*60;
$mins = intval($num3);
$num4 = ($num3 - $mins)*60;
$secs = intval($num4);
if(!onlinetime($uid))
    {
if($hours==5)
    {
$kano ="100";
$msg = "".getnick_uid(getuid_sid($sid))."Congratulation! You are lucky, coz even if you did not reach 5 hours. Youve got 100plusses n 100bp."."[br/][small]Note: This is an automated PM[/small]";
                        autopm($msg, $uid);
$res = mysql_query("UPDATE ibwf_users SET plusses=plusses+'$kano' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET onlinedone='1' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET battlep=battlep+'$kano' WHERE id='".$uid."'");
}

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.

External image (may be gone)

anderson Developer · 146 posts #3

capofret wrote: its already in wapnetph site..

this is from core.php file.. u can get idea here how to do it

function addonline($uid,$place,$plclink)
{
  $tm = time();
  $timeout = $tm - 420; //time out = 5 minutes
  $deloff = mysql_query("DELETE FROM ibwf_online WHERE actvtime <'".$timeout."'");
  ///now try to add user to online list
 $lastactive2 = mysql_fetch_array(mysql_query("SELECT resetime FROM ibwf_users WHERE id='".$uid."'"));
$tolsla2 = time() - $lastactive2[0];
$totaltimeonline2 = mysql_fetch_array(mysql_query("SELECT onlinetime FROM ibwf_users WHERE id='".$uid."'"));
$totaltimeonline2 = $totaltimeonline2[0] + $tolsla2;
$onlinetime = mysql_fetch_array(mysql_query("SELECT onlinetime FROM ibwf_users WHERE id='".$uid."'"));
$num = $onlinetime[0]/86400;
$days = intval($num);
$num2 = ($num - $days)*24;
$hours = intval($num2);
$num3 = ($num2 - $hours)*60;
$mins = intval($num3);
$num4 = ($num3 - $mins)*60;
$secs = intval($num4);
if(!onlinetime($uid))
    {
if($hours==5)
    {
$kano ="100";
$msg = "".getnick_uid(getuid_sid($sid))."Congratulation! You are lucky, coz even if you did not reach 5 hours. Youve got 100plusses n 100bp."."[br/][small]Note: This is an automated PM[/small]";
                        autopm($msg, $uid);
$res = mysql_query("UPDATE ibwf_users SET plusses=plusses+'$kano' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET onlinedone='1' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET battlep=battlep+'$kano' WHERE id='".$uid."'");
}

Thanks but hard to understand. undefined function onlinetime() . explain plz or anybody try this.

Wait...

anderson Developer · 146 posts #4

I am not successful. That is not working. I am failed. The PM cant be sent automatically. Plz anybody help me.

Wait...

reven Newbie · 2 posts #5

wap.net.ph is good but with lots of bgs like auto plusses updated, i make bank sql, also articles sql in my site

godzilla Developer · 119 posts #6

i got error while adding

if(!onlinetime($uid))
    {
if($hours==5)
    {
$kano ="100";
$msg = "".getnick_uid(getuid_sid($sid))."Congratulation! You are lucky, coz even if you did not reach 5 hours. Youve got 100plusses n 100bp."."[br/][small]Note: This is an automated PM[/small]";
                        autopm($msg, $uid);
$res = mysql_query("UPDATE ibwf_users SET plusses=plusses+'$kano' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET onlinedone='1' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET battlep=battlep+'$kano' WHERE id='".$uid."'");
}}

Fatal error: Call to undefined function onlinetime() in /home/godzilla/public_html/youngzwap/core.php on line 1461

anybody please help me in this error

metulj Super moderator Principal · 1,726 posts #7

godzilla wrote: i got error while adding

if(!onlinetime($uid))
    {
if($hours==5)
    {
$kano ="100";
$msg = "".getnick_uid(getuid_sid($sid))."Congratulation! You are lucky, coz even if you did not reach 5 hours. Youve got 100plusses n 100bp."."[br/][small]Note: This is an automated PM[/small]";
                        autopm($msg, $uid);
$res = mysql_query("UPDATE ibwf_users SET plusses=plusses+'$kano' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET onlinedone='1' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET battlep=battlep+'$kano' WHERE id='".$uid."'");
}}

Fatal error: Call to undefined function onlinetime() in /home/godzilla/public_html/youngzwap/core.php on line 1461

anybody please help me in this error

error says all... you haven't define

function onlinetime($xxxxx)
{
what function does
}

in core.php😊

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

godzilla Developer · 119 posts #8

yes i want its function

so can u please give me its function to add in core.

capofret Developer · 225 posts #9

godzilla wrote: yes i want its function

so can u please give me its function to add in core.

Just download the whole script in scripts forum. You can see the full codes of this.

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.

External image (may be gone)

godzilla Developer · 119 posts #10

capofret wrote: Just download the whole script in scripts forum. You can see the full codes of this.

i cant download that script bcoz its 12mb and its so heavy that my internet not able to download that script. I just need that auto pluses system function.Can u give that please.

godzilla Developer · 119 posts #11

anybody please give me itz core coding.

thanks

capofret Developer · 225 posts #12

godzilla wrote: anybody please give me itz core coding.

thanks

here it is core.php. its for xhtml.hope this helps.😊

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.

External image (may be gone)

Attachments: core.rar
godzilla Developer · 119 posts #13

ok thanks bro

i got error

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/godzilla/public_html/wapfone/core.php on line 1443

i think it need sql.

do have sql for this bro.

if(!onlinetime($uid))
    {
if($hours==5)
    {
$kano ="100";
$msg = "".getnick_uid(getuid_sid($sid))."Congratulation! You are lucky, coz even if you did not reach 5 hours. Youve got 100plusses n 100bp."."[br/][small]Note: This is an automated PM. [/small]";
          autopm($msg, $uid);
$res = mysql_query("UPDATE ibwf_users SET plusses=plusses+'$kano' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET onlinedone='1' WHERE id='".$uid."'");
$res = mysql_query("UPDATE ibwf_users SET battlep=battlep+'$kano' WHERE id='".$uid."'");
}
}

thanks

capofret Developer · 225 posts #14

dont call me bro coz i am n0t lol. dont have sql for this but i think u can make one..u just have to add rows in ibwf_users table.look at the script what it needs.

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.

External image (may be gone)

godzilla Developer · 119 posts #15

it need new row onlinedone

is this correct i maked

`onlinedone` int(100) NOT NULL default '0',

and do i have to add anything in login.php like

mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='".$idn."'");
robzky Developer · 205 posts #16

Ok i've got it! I already fixed this Function hehe..

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

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