Go Back   FlashFXP Forums > > > >

NeoXed's scripts nxAutoNuke, nxTools, etc.

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-09-2005, 12:34 AM   #1
void4ever
Junior Member
 
Join Date: Nov 2005
Posts: 27
Default Help with invite

I hate looking like an idiot, but i could use some help getting the invite script to work correctly with alcobot. It's step 2 thats throwing me for a loop here.

2. Create an ODBC DSN connection to your database. Use the table schema
provided in invite.sql, which is located in the module's directory.

I don't know the first thing about SQL. I have mysql installed along with the ODBC driver, and i've looked over at least 10 sites found from a google search. But there are at least 3 different ways to do this from what i see. User, system, and file.

I'm not looking for a hand out, but if someone could point me at a certain article i can read. or even some quick steps (if there is such a thing) i'd appreciate it.

Void4ever
void4ever is offline   Reply With Quote
Old 11-09-2005, 07:03 AM   #2
hukker
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Jun 2004
Posts: 165
Default

youd have to import the invite.sql to your mysql, that step is fairly easy, you open up your administrator tool of mysql, and there should be an option of importing *.sql files.
This would create the database you need for invite.

About the ODBC connection between alcobot and mysql, do as followed...
start menu / run / odbcad32 "push enter"
choose the system DSN window, then Add... and select the ODBC driver "MYSQL ODBC DRIVER 5.1"
after that you input the info for your mysql Database, IP address, username / password.
Remeber to set the same Datasource Name as you have in your config settings of alcobot.

btw this invite script is only for the /msg _BOT_ !invite username pass feature when connected to IRC. You could use the internal one, the one for ioftpd only "site invite nick" this way a connection to any DB is not needed. Theres info about how you install the siteInvite.tcl in the readme.txt

"slap me if I have said anything wrong"
hukker is offline   Reply With Quote
Old 11-09-2005, 11:16 AM   #3
void4ever
Junior Member
 
Join Date: Nov 2005
Posts: 27
Default

i'm at work now, but i'll remote to my box and give this a try in a bit. One more question, Am i to assume any box that i want to use this invite function on needs to have mysql installed. Or once i create the database i'm good to go even if the box doesn't have mysql installed.

Void4ever
void4ever is offline   Reply With Quote
Old 11-15-2005, 10:23 PM   #4
ko0ky
Junior Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 28
Default

Quote:
Originally Posted by hukker
btw this invite script is only for the /msg _BOT_ !invite username pass feature when connected to IRC. You could use the internal one, the one for ioftpd only "site invite nick" this way a connection to any DB is not needed. Theres info about how you install the siteInvite.tcl in the readme.txt
Are you sure about this? I am trying to configure only site invite cmd via ftp site, the script errors while trying to connect to db and isn't inviting me.

0:24:04 PM > site invite ko0ky
10:24:04 PM 200-.-[Invite]-----------------------------------------------------.
10:24:04 PM 200-| Unable to connect to database "Alcoholicz". |
10:24:04 PM 200-'--------------------------------------------------------------'
10:24:04 PM 200 Command successful.

any suggestions?
ko0ky is offline   Reply With Quote
Old 11-09-2005, 11:31 AM   #5
PaRaNoiD_JaCK
Senior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Mar 2005
Posts: 101
Default

You have to the install the mySQL ODBC driver before you can select "MYSQL ODBC DRIVER 5.1"

http://www.mysql.com/products/connector/odbc/
PaRaNoiD_JaCK is offline   Reply With Quote
Old 11-09-2005, 11:46 AM   #6
void4ever
Junior Member
 
Join Date: Nov 2005
Posts: 27
Default

already have the connector installed, but it's actually 3.51 not 5.1. But anyways

I ran through your steps hukker, i had to go download an admin tool though

i created the database then imported the invite.sql, then went to the odcb connector page and followed those steps. using the test button it said it connected just fine. So i think i'm set there (i still need to test the bot though)

But as from my last question it looks like any computer i have this script setup on will have to have mysql installed is that correct? Say i have 3 different sites, each with there own user files, i'm going to have to get mysql installed on each box in order for the invite script to work is that correct?

Void4ever
void4ever is offline   Reply With Quote
Old 11-09-2005, 05:00 PM   #7
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Quote:
Originally Posted by void4ever
But as from my last question it looks like any computer i have this script setup on will have to have mysql installed is that correct? Say i have 3 different sites, each with there own user files, i'm going to have to get mysql installed on each box in order for the invite script to work is that correct?
No, the idea is that all sites would share a single invite database.

If you have multiple ioFTPD sites, with the same users and groups, why would you keep them independent? It would make a lot more sense to use a shared database, that way users and groups are consistent across all sites.
neoxed is offline   Reply With Quote
Old 11-09-2005, 05:51 PM   #8
void4ever
Junior Member
 
Join Date: Nov 2005
Posts: 27
Default

well in the past i had always had multiple sites and each site had it's own users and groups. Everything was seaprate.

What script would you recommend to setup a shared user database between all my sites?

Void4ever
void4ever is offline   Reply With Quote
Old 11-09-2005, 07:14 PM   #9
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Quote:
Originally Posted by void4ever
What script would you recommend to setup a shared user database between all my sites?
There is only one public module to do this - ioShareDb. However, the author no longer supports the module and has not reposted it. I uploaded the original ioShareDb package to my website (for those of you who need it).

http://www.alcoholicz.com/scripts/ot...redb-0.9.0.zip
neoxed is offline   Reply With Quote
Old 12-02-2005, 07:52 AM   #10
hukker
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Jun 2004
Posts: 165
Default

As I understood it, a DB of somekind was required for the /MSG !invite cmd but not for the "site invite nick" cmd, thats what I thought neoxed.

kooky sorry for missleading.
hukker is offline   Reply With Quote
Old 01-19-2006, 10:41 PM   #11
eger
Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Mar 2003
Posts: 40
Default

I read this thread many times and I am still unclear if it is possible to use only site invite WITHOUT a dsn. Is this possible or not?
eger is offline   Reply With Quote
Old 01-20-2006, 02:07 PM   #12
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Quote:
Originally Posted by eger
I read this thread many times and I am still unclear if it is possible to use only site invite WITHOUT a dsn. Is this possible or not?
You obviously didn't read anything. http://www.inicom.net/forum/showpost...3&postcount=15
neoxed is offline   Reply With Quote
Old 01-20-2006, 11:01 PM   #13
eger
Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Mar 2003
Posts: 40
Default

Sorry, don't know why I didn't understand what I was reading.

I modified the code to make a seperate module that allows for non-db setups with site invite only.

EDIT: I now realize that the use of the invite DB is NOT just for invites. It allows for other modules to depend on it and it's DB for other functions (like nxtools request system). So now I will probably go back and actually create the DB and use it as designed instead of hacking it up to now use it.

I also found this tool which should aid in the building of the sqlite db for the sqlite odbc driver should anyone be using it: http://sqlitebrowser.sourceforge.net/

Neoxed, any plans to have an option to use an sqlite db in the config and have easy to create sqlite db like nxtools? The nxtools setup of the db is much nicer than the one for Alcobot currently. Just a thought.
eger is offline   Reply With Quote
Old 02-20-2006, 05:15 PM   #14
hukker
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Jun 2004
Posts: 165
Default

I must say that sounds like a greate idee, keeping the DB localy...
downside I guess is youd have to add each host/user to each site db

you could use the !site cmd for that then hehe, executeing it on all sites at once
hukker is offline   Reply With Quote
Reply

Tags
invite, odbc, search, thing, ways


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 Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:15 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)