1
Anonymous
Registration Keys!
  • 2004/1/31 14:05

  • Anonymous

  • Posts: 0

  • Since:


Hey everyone! If you remember a long while ago I came up with a little registration key hack to weed out certain people from accessing my site. Well, someone brought up the idea to expand it and i've done just that. I've written a complete system module that allows you to create multiple registration keys and link them to specific user groups. When a user registers to your site and gives a specific key, it will look up that key and then register them into the appropriate group or groups assigned to that key. You can also require that all registrants must enter a key, or no key must be entered. This should save on some basic maintenance and a few others things. If you find any errors or bugs, please let me know. I worked very hard and many hours to make sure there are none and that it works flawlessly, but nothing is perfect. I hope you all like it!

You can download it from http://www.jskaterspage.com/regkeys-v1.0.zip

Enjoy!

2
Stewdio
Re: Registration Keys!
  • 2004/1/31 15:42

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Now this is something usefull for those that want users to be registered to a specific group without all the fuss!

Great Job

3
Society
Re: Registration Keys!
  • 2004/1/31 17:17

  • Society

  • Not too shy to talk

  • Posts: 178

  • Since: 2002/1/10


thx you!!!
this is what i need...

i will code pocketpc programms in futher and want to give out a support key :)

->http://www.blitzengineers.de <- new update

4
Anonymous
Re: Registration Keys!
  • 2004/2/6 18:35

  • Anonymous

  • Posts: 0

  • Since:


I've made an update to Registration Keys with the following changes...

Release Notes 1.0.1:
- Added missing files modinfo.php and admin.php that were not
contained in original release. (woops)
- Removed restriction that did not allow the selection of
Anonymous group for a key (I don't think anyone will
use it, but just in case...)
- Changed size of groups field in MySQL table to hold larger
number of groups per key.

You can download the new version from
http://www.jskaterspage.com/regkeys-v1.0.1.zip

5
mentalis
Re: Registration Keys!
  • 2004/2/7 4:56

  • mentalis

  • Just popping in

  • Posts: 5

  • Since: 2004/2/7 4


Heya,

Great mod!

I just have a small problem. Dunno if it's on my end or not. Maybe someone can help.

-- When I click on "Submit" after filling out the Name, Code, Status, and Groups in the Registration Keys menu, I'm taken to the "Database Updated Succefully!" page, but no key is actually added (meaning there are none listed in the "Edit Registration Keys" section). I had thought maybe there was a glitch in the template and it just wasn't showing up, so I tested it by registering a "dummy" user... to no avail.

Are there permissions that I need to give that aren't given? I've tried updating the Systems module, and deleted the file in the "cache" folder, still with no change. I'm currently using version 1.0.1.

Anyway, thanks in advance!

Thoughts,
Mentalis

6
mentalis
Re: Registration Keys!
  • 2004/2/8 5:05

  • mentalis

  • Just popping in

  • Posts: 5

  • Since: 2004/2/7 4


Update.

After running debug, I'm getting the following errors:

SELECT * FROM (myprefix)_regkeys ORDER BY keyid
Error number: 1146
Error message: Table 'my_database.(myprefix)_regkeys' doesn't exist

Did the installation of Registration Keys and updating of the modules not create the database table (myprefix)_regkeys?

Is it supposed to create the table when you submit your first created registration key, and for reason not doing so for me?

If I had to setup the database table manually, what names and values do I need to give everything?

As I asked before, is there a CHMOD that needs to be done to some of the files and/or directories?

Again, thanks in advance.

Thoughts,
Mentalis

7
jasoonx
Re: Registration Keys!
  • 2004/2/8 14:41

  • jasoonx

  • Just popping in

  • Posts: 8

  • Since: 2004/1/3 2


Did you read the instructions included in the README.txt file?

Quote:

// Installation instructions //
Extract the 'html' folder into your root XOOPS directory.
Run the 'mysql.txt' file contained in this folder on your XOOPS database.
If your XOOPS prefix is NOT 'xoops_' make sure to edit the 'mysql.txt' file
and change 'xoops_config' to 'yourprefix_config' and 'xoops_regkeys' to
'yourprefix_regkeys'

Make sure to delete the adminmenu.php from the cache directory. This will make sure
Registration Keys shows up on the pop admin menu.


"Run the 'mysql.txt' file contained in this folder on your XOOPS database." This means you will have to create the table yourself with a tool like phpMyAdmin.

Also, keep in mind, this module is overwriting core XOOPS files. So if you upgrade XOOPS in the future, you may have to re-apply this module.

I haven't installed this yet, but it looks like a great idea that could use a bit more tweaking and refining.


8
mentalis
Re: Registration Keys!
  • 2004/2/9 20:15

  • mentalis

  • Just popping in

  • Posts: 5

  • Since: 2004/2/7 4


Hm. After searching thoroughly within the .zip file I downloaded for this module, I have found no "Readme.txt" file containing instructions.

Anyone know where I can get ahold of this file?

Login

Who's Online

155 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 155


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits