The Opt-in module is currently not working correctly in the CVS version of Drupal.

Comments

njivy’s picture

How is it not working?

jasono’s picture

Component: User interface » Code

Well, there's no way of getting to the opt-in configuration screens.

allyak’s picture

#1 is right, there's no way to access admin/user/configure/optin. And when you try and go to admin/user/configure/optin by typing the URL directly, you get an error regarding the undefined "check_query" function.

raintonr’s picture

I have had success with this module using Drupal 4.6.3 and CVS optin.

There is a mismatch between the column names in the optin.mysql file and those used in the code though. Edit the optin.mysql file and change the name 'profile_field_id' to 'fid' as follows:

CREATE TABLE `optin` (
  `optin_id` int(10) NOT NULL default '0',
  `name` varchar(32) NOT NULL default '',
  `fid` varchar(32) NOT NULL default '',
  `role_granted` int(10) NOT NULL default '0',
  `role_required` int(10) NOT NULL default '0',
  KEY `optin_id` (`optin_id`)
) TYPE=MyISAM;

Then things should be OK.