forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: torkio on September 18, 2007, 07:40:30 pm

Title: automatic notify off
Post by: torkio on September 18, 2007, 07:40:30 pm
hi stramm et all ...

sorry my english is very bad

is it possible to set for default "notify mail" comments to OFF forever?
To do in manner that it is the user to activate it with the click on "get notify"? 

thank you
Antonio
Title: Re: automatic notify off
Post by: Stramm on September 18, 2007, 08:06:46 pm
You'll have to use a tool like phpmydmin for that.
Open the coppermine db and click on the users table (tablöe list on the left side)... now click the edit button next to enable_admin_email (the pencil) and set default to '0' (from a '1')
Do the same for auto_subscribe_post and auto_subscribe_comment

Before messing around with the db a backup is recommended. That wont change already existing user settings but has just an effect for users that register after the edit
Title: Re: automatic notify off
Post by: torkio on September 18, 2007, 09:14:19 pm
and per old users nothing?
Title: Re: automatic notify off
Post by: Stramm on September 18, 2007, 09:21:08 pm
for that you'd need to run some queries
Title: Re: automatic notify off
Post by: torkio on September 18, 2007, 09:23:13 pm
many complicated?
Title: Re: automatic notify off
Post by: Stramm on September 18, 2007, 09:43:42 pm
not really... something like
UPDATE CPG_users SET enable_admin_email= '0'

backup your stuff, change CPG to the prefix you're actually using (like cpg1413) and paste that query into phpmyadmins sql box

do the same for the two other fields

But it's not recommended at all. It's not good to change user settings after they signed up. At least I'd lose trust into your site and you as admin when I'd recognize changes in my profile.
Title: Re: automatic notify off
Post by: torkio on September 19, 2007, 09:59:23 am
thanks Stramm

 now I think about it before to do the change

best regards
Antonio