Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Users in IRC - with eggdrop. html access Details »»
Users in IRC - with eggdrop. html access
Version: 1.00, by Sasq Sasq is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-01-2002 Last Update: Never Installs: 23
Is in Beta Stage  
No support by the author.

################################################## #########
Users in IRC - with eggdrop. html access
Tested on vB 2.2.5 and 2.2.9
Hack Verson: 2.0.2 Beta
################################################## #########


This hack is an enhanced version of the one by sas1911 - details of which can be found here
https://vborg.vbsupport.ru/showthrea...threadid=40855

This hack uses an eggdrop bot to provide information to vB about who is online.
NEW IN BETA 2
This hack now comes in two main flavours on the bot side.
1) writes the user list to a local file, vB then can access it local (if the bot is on the vB server)
or the file can be access remotely via http
2) This is the new bit, the bot now has the ability to contact the server directly via http (using the http tcl library)
- more on the vB side later - it updates when someone joins the channel, changes nick and after a set period of time

On the vB side the two main choices are...
1) simple display of user names with the ability to hide certain users, ie the bot. also allows a '_' or whatever at the
end of a nick to show the user is offline
2) Accesses the user DB to try to match the user 1st by bot handle, then nick, user name (host) and link them the same way
as online forum users. it will also hide users if their forum invisible setting is turned on.
it provides the same overides as the first script as well as additional flags of [me] (overide the db lookup) and
[on](override the invisible flag)

The callhome script needs an access code that you set in both the bot and the script as well as the ip range for the bot.
if the access code and the ip range don't the script will give the user a 404 error - see instructions

The script for index.php has the two subsets for either a local file or remote file.
each different flavor for the index file i have placed in seperate files, so please read that file for install instructions


All files are included as well as the old ver 1 of this hack.

Known bugs:
None at the moment

Known quirks:
With using the db, online users number may display higher then the list of users displayed, but vB works the same way,
if this really bugs people I'll tweak it.
Sometimes the the script just doesn't get the user right - again db lookup, my solve for this is regular users I add to the bot, if there is enough interest I'll do a user cp hack or something
to either get vB to contact the bot and add the user, (and handle to the bot) or hack a way around so that the user can register
their nick and/or user name (host) into the db

TODO:
anything anyone suggests thats reasonable

Fixed Bugs:
Resolved the Excess db queries, now its only 1 query 2.0.1
Fixed a bug where it would hang if the server went offline or refused to answer, now set at a 7 second time out.
Fixed a small glitch where the script showed a warning if the file was unreachable.
- refixed this glitch should all be working now. 1.1.2
Multiple instances of the timer bug resolved. 1.1.1


Added functions:
See above for main changes to ver 2
Now strips all php and html tags from the file - just to be on the safe side.
Added commas after names

Modified files
2.0.2 index.php only
2.0.1 Both db access scripts have been updated
2.0.0 All files need to be updated
1.2.0 index.php only
1.1.2 index.php only
1.1.1 index.php only
1.1 usc.tcl only

You can see this hack in action at MURC
Thanks for you time, any questions/ideas/sugestions please don't hesitate to contact me via pm or email (email is in the file).

Dan

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 01-14-2003, 11:58 AM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I've been tied down with a host that decided to upgrade, and leave me a few fires to stamp out.

The bot itself provides the name list from its own internal list of who is online, the change thats needed is minor, but I'm flat out at the moment dealing with a db problem

I' promise I'll get to it as soon as possible

Dan
Reply With Quote
  #33  
Old 01-14-2003, 12:42 PM
streamzone streamzone is offline
 
Join Date: Nov 2001
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for you dedication Dan...

Very much appreciated...

Regards,
StreamZone
Reply With Quote
  #34  
Old 01-15-2003, 07:19 PM
StevenTN StevenTN is offline
 
Join Date: Mar 2002
Location: Nashville, TN
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Question... I just installed this hack (local without DB at the moment), and I have a couple of questions/concerns:

1) Why can't I get commas separating the usernames like you guys seem to? It just shows up as "Steven Marc Bob..."
2) When I tried the DB, "at j4" popped up at the top, and only when a user had a "_" in it (it didn't match the DB. If users have a space in their name it's automatically replaced with a "_").
Reply With Quote
  #35  
Old 01-15-2003, 10:27 PM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well all of my small (and large) fires are stamped out, I'll get to that fix in a day or two.

StevenTN: In the series 2 of the code I don't have commas being placed in, I can add them if you really want..

As far as I know, IRC doesn't allow spaces in user names, hence the "_" replacement.

Did the users nick's match their user name on the board when you tried to use the db.

When using the DB it tries to match the users registered handle on the bot first, if it doesn't match, then it tries the users nick, then the users name via the host mask. if it all fails it just prints the users nick without any links.

So it really depends on the correct information being available. I run a private IRC server so there is not a problem with nicks being unavailable.

If you can show me some examles of the whosonline output, what it displays and what the real name in the user db is, I'll see if I can find a fix

Dan
Reply With Quote
  #36  
Old 01-16-2003, 02:45 PM
StevenTN StevenTN is offline
 
Join Date: Mar 2002
Location: Nashville, TN
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As far as the commas... it's really not me that wants them... it's the owner (for consistency with members online, staff online (another hack we added), and birthdays, so it would be nice

As far as the "_" in nicknames... I am very well aware that IRC doesn't allow spaces (hence the reason our IRC client automatically replaces those spaces with underscores). Like yours, it is a private IRC server (hybrid server and JPilot for the client), and I was basically wondering if there was something that allows us to check to see if they do or don't have the underscore (since there are some members with them in their nickname), and if they don't have their underscore in their board nick, switch it back.

For example, many of our moderators/admin have spaces in their name as well as members (Like Alex Westerman, Erik Johnson, or PKI MAN). There are also some members with nicknames like MST3K_FREAK6666, so somehow it's gotta be able to catch it.

If you need any more info, let me know and I'll get it.
Reply With Quote
  #37  
Old 01-20-2003, 03:38 PM
Deathdealer Deathdealer is offline
 
Join Date: Jul 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok im sorry but im a bit lost i can user a bot either local or remote which i have tried both ways...lets start by going remote first... ok i have choosen :
Bot remote, file access remote, no db lookup:
usc.tcl
nodbremote.txt

ok in the index.php file i have it set like this :$onlinefile = "http://www.myweburl.com/forums/chat/user.txt"; //path to online users file
now in the usc.tcl i have it set like this set i2h_htmlfile "http://www.myweburlcom/forums/chat/user.txt".

which does not work....Im not understanding how the bot can write to a file on a diffrent server.
also i have tried to make the bot write to a file that i put in the bots main dir /home/bot/user.txt
either way the bot gets a error on startup and will not load.
----
Now on using the bot local and the vbb server local

I have a bot on the same server as the vbb but it has a diffrent login...how does that work ?
Reply With Quote
  #38  
Old 01-21-2003, 12:57 AM
Deathdealer Deathdealer is offline
 
Join Date: Jul 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nm i got it working
Reply With Quote
  #39  
Old 01-21-2003, 11:01 PM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do appologise for my delay in modding this, I've been snowed under with work..
Promise to get to it soon.

Evil job, Evil job

Dan
Reply With Quote
  #40  
Old 02-05-2003, 03:02 PM
streamzone streamzone is offline
 
Join Date: Nov 2001
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still never got my issue fixed....

Been about a month now...
Reply With Quote
  #41  
Old 02-05-2003, 10:33 PM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very sorry streamzone, been caught up with work (I'm quiting so they have an extra load on me atm) and some personal problems. If the wife allows me to have some play time this weekend I'll be able to get to it then.

Dan
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:45 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.07872 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete