Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I am also wondering if you have plans to port to D7. (And I changed the issue title to distinguish it from other "port to D7" issues on people's dashboards.)
Thanks for applying the patches. Could you please rollback your last changeset? You introduced syntax errors (missing semicolons) and SelectQuery::join does not work like one might expect: #1147950: SelectQuery->addJoin method is not chainable.
Another series of patches fixing the voucher tab on user profiles. It would probably be wise to refactor the code-field into an element because i've just duplicated the validation code from the signup form element... Might do that later.
Another one for regcode_dynamic. Touched up the UI for drupal 7, use machine_name instead of rule_id and use only one variable to store settings in it. I've not worked out yet if the code-validation really works.
Comments
Comment #1
brightboldI am also wondering if you have plans to port to D7. (And I changed the issue title to distinguish it from other "port to D7" issues on people's dashboards.)
Comment #2
davycw commentedsubscribe
Comment #3
sw3b commentedsubscribe
Comment #4
scthomps312 commentedsubscribe
Comment #5
aidanlis commentedI will be porting this to D7 but not in the next few weeks unfortunately.
Comment #6
rpsusubcribe
Comment #7
verynic commented+1
Comment #8
Anonymous (not verified) commentedsubscribe
Comment #9
aidanlis commentedThe regcode core module is now D7 enabled, though I've only tested the generation and viewing of codes.
Comment #10
chertzogI created a new code, and tried to register with that code, but i get this error:
Fatal error: Call to undefined function dvm() in /sites/all/modules/regcode/regcode.module on line 312
After looking at api.drupal.org, it seems that dvm was exclided from drupal 7.
http://api.drupal.org/api/devel/devel.module/function/dvm/6
I will be glad to help with the process of porting and testing, but i have no idea what to do here.
Comment #11
aidanlis commentedJust delete the line with
dvmon it, it shouldn't be there ... also making empty promises to help port when you don't know whatdvmis is not helpful.Comment #12
chertzogim just learning php, and drupal. i have helped port a couple things already. most of what i can do is help test. which is what i said.
Comment #13
znerol commentedAttached is a serie of patches fixing validation on user registration form as well as on the regcode_load function.
Comment #14
znerol commentedFix property assignement in regcode_load.
Comment #15
aidanlis commentedznerol you are a star. I will review and apply these patches the second I get back (in two days).
Comment #16
modoq commentedsubscribing
Comment #17
sw3b commentedany news ?
Comment #18
aidanlis commentedPatches have been applied. znerol gets a gold star - thank you for the contribution.
There's still a few critical pieces missing before I can release a beta:
#1146132: Registration code field doesn't show up on User Profile Edit page or on a tab for the profile
#1146150: Call to function that doesn't exist: db_fetch_object()
#1145230: Database error when trying to enable "Code mailer" option
I don't have time to work on this module and don't expect to have any time in the next six months, so community contributions are welcome.
Comment #19
znerol commentedThanks for applying the patches. Could you please rollback your last changeset? You introduced syntax errors (missing semicolons) and SelectQuery::join does not work like one might expect: #1147950: SelectQuery->addJoin method is not chainable.
Comment #20
aidanlis commentedJesus I'm not sure how that escaped testing - apologies for the late night refactoring.
Comment #21
znerol commentedAnother series of patches attacking regcode_mailer fixing #1145230: Database error when trying to enable "Code mailer" option and porting the token-stuff to the drupal 7 token api.
Comment #22
znerol commented@aidanlis: Use
git amfor applying patches to the git repository. Like this you don't have to copy-paste commit messages etc.Comment #23
znerol commentedAnother series of patches fixing the voucher tab on user profiles. It would probably be wise to refactor the code-field into an element because i've just duplicated the validation code from the signup form element... Might do that later.
Comment #24
znerol commentedFix regcode field on user profile page #1146132: Registration code field doesn't show up on User Profile Edit page or on a tab for the profile
Comment #25
znerol commentedAnother one for regcode_dynamic. Touched up the UI for drupal 7, use machine_name instead of rule_id and use only one variable to store settings in it. I've not worked out yet if the code-validation really works.
Comment #26
aidanlis commentedThanks largely to znerol, regcode has been ported to Drupal 7. I've just released a 1.0-beta1!
If there's any bugs please open them as separate issues.