Closed (fixed)
Project:
Registration codes
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Dec 2007 at 05:02 UTC
Updated:
17 Jun 2009 at 14:35 UTC
Jump to comment: Most recent file
Comments
Comment #1
colanMakes sense to me. Do you have any code for this? I don't see a patch anywhere.
Comment #2
prytzen commentedNo i wont even begin to think that i know what i am doing on the back end of drupal. Just a suggestion that i think would be VERY useful and not too difficult to implement.
Comment #3
colanAh, okay. You confused me when you set the status to "patch (code needs work)". Let's leave this open and see if anyone picks it up. I don't have time or funding to work on this right now.
Comment #4
bomarmonk commentedYou could probably appropriate some of the code from one of the existing "role promotion" modules...
Comment #5
jnraajan commentedDoes anyone have this module ported to work with D6
Comment #6
rajasekharan commentedI'm intersted in something like this too.
Comment #7
jorisx commentednice,
patch the last D5 release of this module and it works nice with D6.5 :-)
Any thoughts on releasing a real def. version of this module?
Comment #8
yraber commentedHere is a patch that should do the trick.
* Registration keys are set per role
* The same key can be set for several roles, all the roles will be assigned to the user
* Added also the following options : optional registration key, textfield title and description
Hope you enjoy it.
Comment #9
yraber commentedComment #10
cineasta commentedHI,
I tested the module and your provided patch. But as soon as there is more than one code provided it doesn't work anymore.
There is a problem with line breaks. For example if your codes look like this:
156887
458657
277758
So you have to change
$codes = explode("\n" , $codes);into
$codes = explode("\r\n" , $codes);Cause you need a carriage return (\r) and newline (\n) to separate text from a textarea.
Comment #11
cineasta commentedI changed your patch - please check.
Comment #12
danielnolde commentedHey regcode-users,
i just posted a ready-for-review proposal of a completely reworked new regcode.module (still D5, but soon to be upgraded to D6 & D7). This new to-become-release is solving a lot of feature-requests and issues (this one too!) on a completely new and flexible basis.
Check it out, test it and give feedback whether you think it solves your issues, and whether it's ready to be committed:
http://drupal.org/node/466630
cheers,
daniel
Comment #13
aidanlis commentedDupe of http://drupal.org/node/253627