mIRC Home    About    Download    Register    News    Help

Print Thread
#234601 04/11/11 01:57 PM
Joined: Jan 2010
Posts: 51
L
Lenooox Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Jan 2010
Posts: 51
anyone can help me ! i do not know what happend ! i dont get error message or something! but im not get answer frown

Code:
on *:TEXT:!insane:#: {
  alias insane
  sockClose insaneforum
  sockOpen insaneforum www.insanescripting.comze.com 80
  msg $chan [Wait Receiving data...]
}
on *:SockOpen:insaneforum: {
  sockwrite -nt insaneforum GET /infusions/who_is_online/who_is_online.php HTTP/1.0
  sockwrite -nt insaneforum Host: www.insanescripting.comze.com
  sockwrite -nt insaneforum $crlf
}
on *:SockRead:insaneforum: {
  var %read
  sockRead %read
  if (*Registered users and* iswm %read) { tokenize 32 %read | echo -a [InSane Site] $remove(%read,   <td class="catSides",colspan="3" height="28">,<span class="cattitle"><b>,</b></span></td>) }
  if ((*There are* iswm %read) && (*Guest users online* iswm %read)) { tokenize 32 %read | echo -a [InSane Site] $remove(%read,   <td class="catSides" colspan="3" height="28"><span class="cattitle"><b>,</b></span></td>) }
}


(\__/)
(='.'=)
(")_(")
Bunny Hopp

QuakeNet@ #Lenoox <> visit http://www.insaneboard.comeze.com
Lenooox #234602 04/11/11 02:57 PM
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
;try using this (NOT TESTED) :

Code:
ON *:TEXT:!insane:#: {
  if (%insane_nick) { msg $chan [4Error]: Cannot proceed, Please wait an other user  $+ $qt(%insane_nick) $+  is already using this feature! - 4FAILED | halt }
  sockclose insaneforum
  sockopen insaneforum www.insanescripting.comze.com 80
  set -eu60 %insane_chan $chan
  set -eu60 %insane_nick $nick
  set -eu60 %insane_ticks $ticks
  msg $chan [ $+ $nick $+ ]: Your command has been proceed, Please wait Receiving data...
}
ON *:SOCKOPEN:insaneforum: {
  if ($sockerr > 0) { $iif(%insane_chan,msg %insane_chan,echo -a) [4Error]: Connection problem, Cannot conect to read any information now from the $qt(Insane Site) server, check your internet connection, or maybe there is an server connection problem, try again later! - 4FAILED | sockclose $sockname | return }
  sockwrite -nt insaneforum GET /infusions/who_is_online/who_is_online.php HTTP/1.0
  sockwrite -nt insaneforum Host: www.insanescripting.comze.com
  sockwrite -nt insaneforum $crlf
}
ON *:SOCKREAD:insaneforum: {
  if ($sockerr > 0) { $iif(%insane_chan,msg %insane_chan,echo -a) [4Error]: Connection reading problem, Cannot read any information now from the $qt(Insane Site) server, try again later! - 4FAILED | sockclose $sockname | return }
  var %read
  sockread %read
  if (*Registered users and* iswm %read) { tokenize 32 %read | $iif(%insane_chan,msg %insane_chan,echo -a) [ $+ $iif(%insane_nick,$v1,WARNING) $+ ] REGISTERED USERS ARE: $remove(%read,<td class="catSides",colspan="3" height="28">,<span class="cattitle"><b>,</b></span></td>) - 3SUCCESSFULLY }
  if (*There are* iswm %read) && (*Guest users online* iswm %read) { tokenize 32 %read | $iif(%insane_chan,msg %insane_chan,echo -a) [ $+ $iif(%insane_nick,$v1,WARNING) $+ ] GUEST USERS ARE: $remove(%read,<td class="catSides" colspan="3" height="28"><span class="cattitle"><b>,</b></span></td>) - 3SUCCESSFULLY }
}
ON *:SOCKCLOSE:insaneforum: { $iif(%insane_chan,msg %insane_chan,echo -a) [ $+ $iif(%insane_nick,$v1,WARNING) $+ ] The reading progress has been finished! - TOOK: $calc(($ticks - %ticks) / 1000) second(s) - 3SUCCESSFULLY }

Last edited by westor; 04/11/11 03:01 PM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #234611 04/11/11 06:21 PM
Joined: Jan 2010
Posts: 51
L
Lenooox Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Jan 2010
Posts: 51
yes it works!
but I still do not know how many people are online! or how many people are registered or whois the latest registered member :s
btw . i got this:
Code:
[Lenoox]: Your command has been proceed, Please wait Receiving data...
[Lenoox] The reading progress has been finished! - TOOK: 32329.328 second(s) - SUCCESSFULLY 

Last edited by Lenooox; 04/11/11 06:23 PM.

(\__/)
(='.'=)
(")_(")
Bunny Hopp

QuakeNet@ #Lenoox <> visit http://www.insaneboard.comeze.com
Lenooox #234613 04/11/11 07:35 PM
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Well, the problem was that the "/infusions/who_is_online/who_is_online.php" PHP file did not exists on the server. i has make it work with the "/news.php" PHP file. now it is working well and tested, also you can use /insane_check alias to echo the results!

NOTE: If you update the page news.php page this remote will not work!

Code:
alias insane_check {
  if (%insane_nick) { $iif(%insane_chan,msg %insane_chan,echo -a) [4Error]: Cannot proceed, Please wait an other user  $+ $qt(%insane_nick) $+  is already using this feature! - 4FAILED | halt }
  sockclose insaneforum
  sockopen insaneforum www.insanescripting.comze.com 80
  set -eu60 %insane_chan $chan
  set -eu60 %insane_nick $nick
  set -eu60 %insane_ticks $ticks
  $iif(%insane_chan,msg %insane_chan,echo -a) [ $+ $iif(%insane_nick,$v1,WARNING) $+ ] Your command has been proceed, Please wait Receiving data...
}

ON *:TEXT:!insane:#: { insane_check }
ON *:SOCKOPEN:insaneforum: {
  if ($sockerr > 0) { $iif(%insane_chan,msg %insane_chan,echo -a) [4Error]: Connection problem, Cannot conect to read any information now from the $qt(Insane Site) server, check your internet connection, or maybe there is an server connection problem, try again later! - 4FAILED | sockclose $sockname | return }
  sockwrite -n $sockname GET /news.php HTTP/1.0
  sockwrite -n $sockname Host: www.insanescripting.comze.com
  sockwrite -n $sockname User-Agent: */* 
  sockwrite -n $sockname Connection: Close
  sockwrite -n $sockname $crlf
}
ON *:SOCKREAD:insaneforum: {
  if ($sockerr > 0) { $iif(%insane_chan,msg %insane_chan,echo -a) [4Error]: Connection reading problem, Cannot read any information now from the $qt(Insane Site) server, try again later! - 4FAILED | sockclose $sockname | return }
  var %read
  sockread %read
  if (*Guests Online:* iswm %read) { set -e %insane_guests $gettok($remove(%read,<br),9,32) }
  if (*Members Online:* iswm %read) { set -e %insane_members $gettok($remove(%read,<br),9,32) }
  if (*Total Members:* iswm %read) { set -e %insane_total $gettok($remove(%read,<br),9,32) }
  if (*Newest Member:* iswm %read) { set -e %insane_new_member $gettok($remove(%read,class='side'>,</a>),11,32) }
}
ON *:SOCKCLOSE:insaneforum: {
  $iif(%insane_chan,msg %insane_chan,echo -a) [ $+ $iif(%insane_nick,$v1,WARNING) $+ ] The reading progress has been finished! - GUESTS ONLINE:  $+ $iif(%insane_guests,$v1,N/A) $+  - MEMBERS ONLINE:  $+ $iif(%insane_members,$v1,N/A) $+  - TOTAL ONLINE USERS:  $+ $iif(%insane_total,$v1,N/A) $+  - NEWEST MEMBER:  $+ $iif(%insane_new_member,$v1,N/A) $+  - TOOK:  $+ $calc(($ticks - %insane_ticks) / 1000) $+  second(s) - 3SUCCESSFULLY 
  unset %insane_*
}


- Enjoy!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #234615 04/11/11 08:32 PM
Joined: Jan 2010
Posts: 51
L
Lenooox Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Jan 2010
Posts: 51
very nice :P thank you very much <3
amm i have a question laugh
can you creat one which can read the last forum post or comment ? or maybe this possible how the last forum posts to appear in our mirc channel topic? comment and the sender name? :$
Can you help me if you have a little time?


(\__/)
(='.'=)
(")_(")
Bunny Hopp

QuakeNet@ #Lenoox <> visit http://www.insaneboard.comeze.com
Lenooox #234617 04/11/11 08:41 PM
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
I can but now i do not have the time, and the time that i have spend to rebuild your remote was too much, if anyone else can helps you ok! otherwise visit scripting channels (#scripting or /list script) and ask for help.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #234618 04/11/11 08:50 PM
Joined: Jan 2010
Posts: 51
L
Lenooox Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Jan 2010
Posts: 51
okey ! thank you very much ! smile
amm btw. #scripting in Quakenet?
i think this QN :P
have a nice day m8


(\__/)
(='.'=)
(")_(")
Bunny Hopp

QuakeNet@ #Lenoox <> visit http://www.insaneboard.comeze.com
Lenooox #235943 21/01/12 01:39 PM
Joined: Jan 2010
Posts: 51
L
Lenooox Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Jan 2010
Posts: 51
hello
I reinstalled my website , because something has gone wrong!
i tried to use my online user info mirc script but not work! frown
someone can help me?
the code shown above
i got this again

The reading progress has been finished! - GUESTS ONLINE: N/A - MEMBERS ONLINE: N/A - TOTAL ONLINE USERS: N/A - NEWEST MEMBER: N/A - TOOK: 1 second(s) - SUCCESSFULLY

Last edited by Lenooox; 21/01/12 01:40 PM.

(\__/)
(='.'=)
(")_(")
Bunny Hopp

QuakeNet@ #Lenoox <> visit http://www.insaneboard.comeze.com
Lenooox #235946 21/01/12 07:59 PM
Joined: Jan 2012
Posts: 3
I
Self-satisified door
Offline
Self-satisified door
I
Joined: Jan 2012
Posts: 3
Originally Posted By: Lenooox
hello
I reinstalled my website , because something has gone wrong!
i tried to use my online user info mirc script but not work! frown
someone can help me?
the code shown above
i got this again

The reading progress has been finished! - GUESTS ONLINE: N/A - MEMBERS ONLINE: N/A - TOTAL ONLINE USERS: N/A - NEWEST MEMBER: N/A - TOOK: 1 second(s) - SUCCESSFULLY

It's not the script, it's the website
The site, http://www.insanescripting.comze.com/news.php does not list in numbers Guests, members or total users online (For guests)

Correct me if I am wrong, it could also only show up for logged in users. You would have to allow for a user login for the script then. Not even sure how to do that.

Joined: Jan 2010
Posts: 51
L
Lenooox Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Jan 2010
Posts: 51
nobody cant help me? :s


(\__/)
(='.'=)
(")_(")
Bunny Hopp

QuakeNet@ #Lenoox <> visit http://www.insaneboard.comeze.com
Lenooox #236108 04/02/12 07:11 AM
Joined: Jan 2010
Posts: 51
L
Lenooox Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Jan 2010
Posts: 51
i have this code how i can use this? :$

Code:
<td class='border-left'></td><td colspan='2' class='side-body'>Guests online: 0<br />Members online:<br>no members online<br />
<br /><hr />registered members: 4<br />newest member: <a href='profile.php?lookup=4' class='side'>KinKinnyKith</a><br /><hr /><table cellspacing='0' cellpadding='0' width='100%'><tr><td>user today: </td><td align='right'>1</td></tr><tr><td>user online: </td><td align='right'>0</td></tr><tr><td>Max. onlinerecord: </td><td align='right'>3</td></tr><tr><td>Max. per day: </td><td align='right'>92</td></tr><tr><td>user yesterday: </td><td align='right'>4</td></tr><tr><td>user month: </td><td align='right'>5</td></tr><tr><td>Entire users: </td><td align='right'>202</td></tr></table><hr />last 24h: <br /><center><table cellspacing="0" cellpadding="0"><tr><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='41px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='41px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='1px' width='4px' alt='' /><br /></td><td align='center' valign='bottom'><img src='infusions/pd_stats_panel/images/poll.gif' height='21px' width='4px' alt='' /><br /></td></tr></table></center></td>

<td class='border-right'></td></tr>


(\__/)
(='.'=)
(")_(")
Bunny Hopp

QuakeNet@ #Lenoox <> visit http://www.insaneboard.comeze.com

Link Copied to Clipboard