PtokaX forum

Archive => Archived 5.1 boards => Finished Scripts => Topic started by: Yahoo on 07 April, 2007, 15:57:59

Title: self registration
Post by: Yahoo on 07 April, 2007, 15:57:59
i think i have search the whole forum but was not able to found regme script for lua 5.1 so i will like to have regme script for lua 5.1 i am also using RegLog_1.0f_L5.1.lua by mutor so the reg user must also be added to tht script also

thanks in advance
Title: Re: self registration
Post by: Yahoo on 07 April, 2007, 18:15:21
but i had use search button only and not search box dude
Title: Re: self registration
Post by: bastya_elvtars on 07 April, 2007, 19:20:59
http://forum.ptokax.org/index.php?action=search
Title: Re: self registration
Post by: Yahoo on 07 April, 2007, 19:44:02
i had use that search option and not search box and i had put the keyword as regme i got various script but all the scripts were for lua 5 and not for lua 5.1. ... can someone give me the link of self registration script for lua 5.1
Title: Re: self registration
Post by: bastya_elvtars on 07 April, 2007, 20:05:04
Why don't you request conversion for the one that fits you best?
Title: Re: self registration
Post by: Yahoo on 08 April, 2007, 20:36:04
I will like to have some modification in this script they are as follows
1)The unregistered user must not be able to chat in main as well as pm .when he will try to chat in the main or in pm some message should appear for eg:
"You are not registered user of this hub So you will have to register first for using all the features of the hub .You can registered yourself by using right click menu or command !regme <password> or you can pm operators " and the unreg user can pm ops.

2)When a user reg himself then all ops should get some message for eg:
"User Mutor has reg him self following are his details
        ? Nick: Mutor
   ? Password: xxxxx
   ? Share: 29.54 GB
   ? IP: 201.40.45.46
   ? Mode: Active
   ? Slots: 3

3)The enter for self registered user does not come in RegLog_1.0f_L5.1 . I will like to have his entry in RegLog_1.0f_5.1

4)The unreg user must not be able to get any users filelist unless he is registered.
Title: Re: self registration
Post by: Yahoo on 13 April, 2007, 19:15:35
thanks dude it is great script.. gud work keept it up
i will like 2 have a small change in the script qwhen a unreg user login then a specific op must get a message
"The UnRegistered User Mutor has Logged"
Title: Re: self registration
Post by: Yahoo on 14 April, 2007, 10:29:08
thanks sir , the script is working get
mutor this script made my RegisteredUsers.xml file blank
Title: Re: self registration
Post by: Yahoo on 14 April, 2007, 14:41:51
is there any bug or error in tht script as it has deleted my user database (RegisteredUsers.xml) can u plzz check it once again
Title: Re: self registration
Post by: Yahoo on 14 April, 2007, 15:09:23
When i restarted the hub all this mess happened
Title: Re: self registration
Post by: Yahoo on 14 April, 2007, 15:53:27
 [ 1 ]  BirthdayMan.v4.07.lua
- [ 1 ]  chatstat(work).lua
- [ 1 ]  Hubtime.lua
- [ 1 ]  postman_0.7.lua
- [ 1 ]  Rincewind's LastSeen.lua
- [ 1 ]  block registration.lua
- [ 1 ]  graph.lua
- [ 1 ]  userlist.lua
- [ 1 ]  regstats.lua
- [ 1 ]  vote.lua
- [ 1 ]  password recovery.lua
- [ 1 ]  message bot.lua
- [ 0 ]  Message_Board_1.08_L5.1.lua
- [ 1 ]  chatrooms.v4.15.lua
- [ 1 ]  mutor socks5.lua
- [ 1 ]  RegLog_1.0f_L5.1.lua
- [ 1 ]  right click .lua
- [ 1 ]  settings_v1.0.lua
- [ 1 ]  zztime bot.lua
- [ 1 ]  User_Alert_1.0e_L5.1.lua
- [ 1 ]  HelP_BoT_1.0_by_6Marilyn6Manson6.lua
- [ 1 ]  Rincewind's HubInfo.lua
- [ 1 ]  Message_Board_1.09_L5.1.lua
- [ 1 ]  membercount nit.lua
- [ 1 ]  record bot.lua
- [ 1 ]  oprules.lua
- [ 1 ]  self registration.lua
- [ 1 ]  life time.lua
- [ 1 ]  Dump_Board_1.09_L5.1.lua
- [ 1 ]  server_Board_1.08_L5.1.lua
- [ 1 ]  onjoin.lua
this all scripts were running. and i did not checked the script table
Title: Re: self registration
Post by: achiever on 14 April, 2007, 16:44:09
hi,

the script is showing
Quote[19:46:20] <Fusion>

   A user has self-registered
   with the the following details:
   ??????????????????????
   Nick:   siddharth
   Pass:   studio
   Share:   16.41 GB
   I.P.:   172.19.1.202
   Mode:   Active
   Slots:   4

well can u plzz stop it to show pass in main chat.

thks,
achiever.
Title: Re: self registration
Post by: Yahoo on 14 April, 2007, 18:22:38
thanks for all your help .. thank u
Title: Re: self registration
Post by: achiever on 15 April, 2007, 16:14:41
hi,

i needed to send the notification to user that they r not regged in pm so i chage line 147 to this
return user:SendPm(Bot,BlockMsg..RegCmds["rmhelp"](user,data,cmd)),
script stoped working, so what should it be...
Title: Re: self registration
Post by: achiever on 16 April, 2007, 18:43:52
working fine, thank u.
Title: Re: self registration
Post by: achiever on 01 May, 2007, 17:49:27
mutor can u plzz add something that stores the nick of all the unregs that logined and did not register and can be seen with some command by ops.

thks,
Title: Re: self registration
Post by: achiever on 02 May, 2007, 16:42:13
scripts giving me error when i try to c the log
[20:03] Syntax attempt to compare two table values
Title: Re: self registration
Post by: achiever on 08 May, 2007, 12:02:47
no i m not getting ne a line number with that error,the script stops on the command of !rmlog and gives
[17:03] Syntax attempt to compare two table values
well a 2rd person testing would definately be helpful here, if they r getting the same error if they r getting at all?
thks,
well has ne 1 else other than me tested this script? i m still getting the same error :(

p.s:- r there ne testers here,they would be a lot helpful ;).
mutor plzzzz check the script once again and test it too, as none other is ready to test it :(

thks for the help.
Title: Re: self registration
Post by: achiever on 14 May, 2007, 13:36:34
thanks a lot, going to give this a try now. will report progress. thks a lot
hi mutor,

the script is working gr8.
can u plzz make it such that when the log of unregs is seen then the connected user r show first and then the disconnected 1s.
and also can it show the total number of users logged like
QuoteXX Unregistered Users Logged

thks,
Title: Re: self registration
Post by: achiever on 15 May, 2007, 08:17:57
sorry for bugging u, but was in need of this changes.

thanks a lot for help :)
Title: Re: self registration
Post by: Kevatril on 18 May, 2007, 18:32:01
Hello, i really like your scripts.I tried this script but if a user reg his self, he gets OP status. I didnt found where to change it. Maybe you can help me .

Thanks in advance

Kevatril
Title: Re: self registration
Post by: Kevatril on 19 May, 2007, 19:51:19
it works, Thx a lot

Kevatril
Title: Re: self registration
Post by: Naithif on 19 May, 2007, 20:39:27
Quote from: Mutor on 19 May, 2007, 00:32:02
If that's the case then you're not using default profiles.

At ~line 270 find:
AddRegUser(nick, pwd, 3)

Change the 3 in that line to reflect the profile number for Reg user.
Save the file, restart the script.

Note: PtokaX lists profiles [in the profile mgr] in numerical order
starting with profile 0, although the numbers are not displayed.


Wouldn't AddRegUser(nick, pwd, GetProfileIdx(reg)) help if profiles aren't default?
Title: Re: self registration
Post by: Naithif on 19 May, 2007, 20:59:55
Quote from: Mutor on 19 May, 2007, 20:46:35
If not default then who is to say what profile is 'reg' which btw would be Reg.
O asked him to use the profile number that 'equates' for his profiles the equivalent
of the default Reg profile [standard registered user]. You might expect to work
these things out if you choose to use non-default or additional profiles.

I've just said if it's not 3 then there's still chance that it's still called 'Reg' (you're right, with capital first), that's another possibility if the profile num is not 3 - of course, you're right, if the index isn't 3 than it's possibly renamed too, so this solution is only if the admin changed the numbers.

How about AddRegUser(nick, pwd, GetProfileIdx(Reg) or 3) that would work if number or name is changed, of course, it's still not working if both, but at least it not relies on just a number which should be 3 in default

Is it possible in any way to find out if both changed?
Just asking because it would be good to have a solution to make the possibility of using non-default profiles in any case