Hi Dan,
I have tried that option. Problem with changing it to 'true' or '1' is that the checkbox functionality gets messed up.
If an user unchecks autosubscribe in his user settings and 'saves'..the next time he clicks on edit profile it shows as checked . this is bound to confuse users.
The functionality Im looking for is , when a new user account is created ..auto subscribe is checked by default. But ofcourse, since we are giving him an option to uncheck it..it should remain unchecked once he unchecks it.
This is why I wanted to know which database table column stores this information.
I am also confused what $user->subscriptions_auto offers since there is no subscriptions_auto column anywhere .
Regards,
V
On 4/4/06, Dan Ziemecki dan@ziemecki.com wrote:
I never made that a configurable option, but you can fix it in the code, if you want to. Find this line in subscriptions.module:
return array(array('title' => t('Subscription settings'), 'data' => form_checkbox(t('Automatically subscribe to threads in which you post.'), 'subscriptions_auto', 1, isset($edit->subscriptions_auto) ? $edit->subscriptions_auto : $user->subscriptions_auto, t('Checking this box allows you to be automatically subscribe to any thread you create or post a comment to.'))));
Look at this section: isset($edit->subscriptions_auto) ? $edit->subscriptions_auto : $user->subscriptions_auto
I think you can change ...
: $user->subscriptions_auto
to
: true
That's someone else's edit, so I'm not sure what "$user->subscriptions_auto" is supposed to offer, thut that whole block is the "checked: value of the checkbox.
I should probably add this as an option - I've had people ask about it before.
-- Dan Ziemecki
On 4/4/06, VJ Rao cmsconsultant@gmail.com wrote:
Hi,
Im using subscriptions module for 4.6
How do I make 'auto subscribe' feature default? I couldnt find a way through settings.
If I have to do this in code, which table/column stores this information?
Thanks,
V