vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   IRC Manager (for mIRC) (https://vborg.vbsupport.ru/showthread.php?t=102771)

TyleR 01-13-2006 02:57 AM

Quote:

Originally Posted by Codeman05
just reinstalled. Dosen't appear to have helped, still not updating.
Working for anyone else?

did you make sure the irckey was the one you had pre-set in mIRC, after overwriting irconline.php?

Codeman05 01-13-2006 02:59 AM

yep sure did

meissenation 01-13-2006 03:10 AM

hrm, still works great for me. not sure what the dealio is. :(

Man1c M0g 01-13-2006 09:59 PM

I still get the same error too, about the 'vbusers socket in use'. Any update on an eggdrop version of the script? It'd solve these issues in a snap... ;)

meissenation 01-13-2006 11:35 PM

Is it updating, though? The socket in use I would try to guess is a good thing, as it would hopefully mean that it's infact communicating with the website... that's just a pure guess though. Unfortunately, I don't understand the concept of sockets at all, and I've tried quite a few IRC servers asking for help on the socket scripting and they all said it's way too advanced for much of anyone to understand.

ozzy10 01-13-2006 11:57 PM

to get it working
in irconline.php
find
PHP Code:

$vbulletin->clean_gpc_array 

and change to
PHP Code:

/* 
$vbulletin->clean_gpc_array
*/ 

then upload the file again

then in the mirc file ircon_rm.txt find this
Code:

on *:sockopen:vbusers:{
  sockwrite -n $sockname POST %vbfilepath HTTP/1.1
  sockwrite -n $sockname User-Agent: mIRC $+ / $+ $version (compatible; MTS Downloader 1.1; Windows $os $+ )
  sockwrite -n $sockname Host: %vbserver
  sockwrite -n $sockname Connection: close
  sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
  sockwrite -n $sockname Content-Length: %socksize
  sockwrite -n $sockname $crlf
  sockwrite -t $sockname %sockstring

  if (%ops) sockwrite -t $sockname %ops
  if (%halfops) sockwrite -t $sockname %halfops
  if (%voiced) sockwrite -t $sockname %voiced
  if (%users) sockwrite -t $sockname %users
}

and change to this
Code:

on *:sockopen:vbusers:{
  sockwrite -n $sockname POST %vbfilepath HTTP/1.1
  sockwrite -n $sockname User-Agent: mIRC $+ / $+ $version (compatible; MTS Downloader 1.1; Windows $os $+ )
  sockwrite -n $sockname Host: %vbserver
  sockwrite -n $sockname Connection: close
  sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
  sockwrite -n $sockname Content-Length: %socksize
  sockwrite -n $sockname $crlf
  sockwrite -t $sockname %sockstring

  if (%ops) sockwrite -t $sockname %ops
  if (%halfops) sockwrite -t $sockname %halfops
  if (%voiced) sockwrite -t $sockname %voiced
  if (%users) sockwrite -t $sockname %users
  sockclose $sockname
}

then find this
Code:

on *:sockopen:vbmisc:{
  sockwrite -n $sockname POST %vbfilepath HTTP/1.1
  sockwrite -n $sockname User-Agent: mIRC $+ / $+ $version (compatible; MTS Downloader 1.1; Windows $os $+ )
  sockwrite -n $sockname Host: %vbserver
  sockwrite -n $sockname Connection: close
  sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
  sockwrite -n $sockname Content-Length: $len(%sockstring)
  sockwrite -n $sockname $crlf
  sockwrite -t $sockname %sockstring
}

and change to this
Code:

on *:sockopen:vbmisc:{
  sockwrite -n $sockname POST %vbfilepath HTTP/1.1
  sockwrite -n $sockname User-Agent: mIRC $+ / $+ $version (compatible; MTS Downloader 1.1; Windows $os $+ )
  sockwrite -n $sockname Host: %vbserver
  sockwrite -n $sockname Connection: close
  sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
  sockwrite -n $sockname Content-Length: $len(%sockstring)
  sockwrite -n $sockname $crlf
  sockwrite -t $sockname %sockstring
  sockclose $sockname
}

and save
and all should work fine again and stop the sock errors
I hope this helps everyone as it fixed it for me

you can view it working HERE

what was happening is the sock was staying open for some reason so adding the sockclose after stops the error
because its after all the rest it does the sock open and sends the info then closes the sock straight away
If you need any more info on sockets give me a shout

Codeman05 01-14-2006 02:14 AM

nice, gonna try that now

Codeman05 01-14-2006 02:22 AM

ok, I'm getting this error now:
/sockopen: 'vbusers' socket in use (line 131, ircon_al.txt)

TyleR 01-14-2006 02:49 AM

Quote:

Originally Posted by ozzy10
to get it working
in irconline.php
find
PHP Code:

$vbulletin->clean_gpc_array 

and change to
PHP Code:

/* 
$vbulletin->clean_gpc_array
*/ 

then upload the file again

Highly un-recommended unless you want your site open to vulnerability, plus it will cease the use of the information being put into the tables.

TyleR 01-14-2006 03:21 AM

Okay, i've reverted my change using the $vbulletin->input->clean_array_gpc() stuff, going back to normal _POST variables, since it uses the irckey, and hopefully no-one knows it, you're file should be safe from vulnerability.

Thanks ozzy for the ircon_rm.txt fix. ( i have not personally tested it, sorry)

- Tyler


All times are GMT. The time now is 12:32 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01098 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete