Jump to content


- - - - -

Auto subscribe option for new topics and replies


  • Please log in to reply
10 replies to this topic

#1 marko2002

marko2002

    Advanced Member

  • Members
  • PipPipPipPip
  • 95 posts
  • Location:Scotland, UK
  • Real Name:Mark
  • IPB Version:v2.3.x

Posted 27 May 2009 - 12:34 PM

Hi, I was wondering if anyone knew how to change the option in users CP to make the email option Enable 'Email Notification' by default? set on ON and the method of "Daily Email Digest" instead of instant.  

I have already managed to make each new thread and reply set the email to ON but merely wish to change the default to "Daily Email Digest" as an email each time a subscriber receives a reply I think is a bit too much.

Here's hoping, thanks ;)
Marko
Posted Image

#2 marko2002

marko2002

    Advanced Member

  • Members
  • PipPipPipPip
  • 95 posts
  • Location:Scotland, UK
  • Real Name:Mark
  • IPB Version:v2.3.x

Posted 27 May 2009 - 01:17 PM

In hindsight, I've just disabled the edit I made as if I'm not able to change the default option from "instant" to "daily" then I guess this is potentially a whole load of emails our members could be faced with! .. Would still love to hear if it's possible to change the default subscription to 'ON' for 'daily' though ;)
Marko
Posted Image

#3 marko2002

marko2002

    Advanced Member

  • Members
  • PipPipPipPip
  • 95 posts
  • Location:Scotland, UK
  • Real Name:Mark
  • IPB Version:v2.3.x

Posted 28 May 2009 - 07:20 AM

OK, for anyone else interested in having this done on their site I managed to find the solution ...

In your SQL toolbox, run the following command: (This enables it for new members)
ALTER TABLE `ibf_members` CHANGE `auto_track` `auto_track` VARCHAR( 50 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT 'daily'

To enable email subscription for existing members:
update ibf_members set auto_track = 'daily' where auto_track = 0

Remember, you can change the 'daily' part to whatever you want, such as 'immediate' etc though I wouldn't personally as this could generate a lot of emails for your users - one a day with their activity I think would be more than enough!.

Now you will find that all new and existing members have the "Enable 'Email Notification' by default?" enabled in their CP and it should be set to "Daily Email Digest" which they can turn off or change in any way they want and you should also notice when they reply the "subscribe" option will be checked.   However, for 'quick replies' it won't be, to enable this do the following:

In Topic View==>quick_reply_box_open find: (may be slightly different depending on your version, I'm using 2.3.6)

<if="$this->ipsclass->member['auto_track'] == "" or $this->ipsclass->member['auto_track'] == '1'">
					<input type="checkbox" name="enabletrack" value="1" class="checkbox" />&nbsp;{$this->ipsclass->lang['qr_add_email']} |
				<else />
					<input type="checkbox" name="enabletrack" value="1" class="checkbox" $checked="checked" />&nbsp;{$this->ipsclass->lang['qr_add_email']} |
				</if>

and change it to:

				<if="$this->ipsclass->member['auto_track'] == "" or $this->ipsclass->member['auto_track'] == '1'">
					<input type="checkbox" name="enabletrack" value="1" class="checkbox" />&nbsp;{$this->ipsclass->lang['qr_add_email']} |
				<else />
					<input type="checkbox" name="enabletrack" value="1" class="checkbox" checked="checked" />&nbsp;{$this->ipsclass->lang['qr_add_email']} |
				</if>

Note we're only removing a "$" from the class="checkbox" $checked="checked"

Hope someone finds this useful ;)
Cheers
Marko

Edited by marko2002, 28 May 2009 - 07:22 AM.

Posted Image

#4 marko2002

marko2002

    Advanced Member

  • Members
  • PipPipPipPip
  • 95 posts
  • Location:Scotland, UK
  • Real Name:Mark
  • IPB Version:v2.3.x

Posted 06 June 2009 - 02:50 PM

Just a sidenote to the above instructions, it may actually be that the Quick Reply IS already checked to receive notifications as I just did the above edits on another board of ours and it looks as though simply running the queries makes all the necessary changes - could be wrong but thought it worth mentioning just in case anyone can't figure why there isn't a "$" in the last part of the edits ;)
Cheers
Marko
Posted Image

#5 cynicdave

cynicdave

    n00b

  • Members
  • Pip
  • 3 posts
  • Real Name:david oh
  • IPB Version:v2.3.x

Posted 15 December 2009 - 09:24 PM

Thank you SO MUCH. seriously. i think this will drastically improve retention rate.

#6 marko2002

marko2002

    Advanced Member

  • Members
  • PipPipPipPip
  • 95 posts
  • Location:Scotland, UK
  • Real Name:Mark
  • IPB Version:v2.3.x

Posted 15 December 2009 - 09:33 PM

Glad someone found this of use, I've been running it for a while now and it basically gives people notice when they start or reply to a topic, rather than leaving it up to them, if they want they can always unsubscribe - I had initially been worried it may cause issues with posters but no-one has complained yet, so far so good!.
Posted Image

#7 cynicdave

cynicdave

    n00b

  • Members
  • Pip
  • 3 posts
  • Real Name:david oh
  • IPB Version:v2.3.x

Posted 17 December 2009 - 05:37 PM

I explained why I did it to my community, I explained that it was needed to make sure new members are hooked. I then gave detailed instructions on shutting it off, and everyone took it quite well. I have over 20k members.

#8 cynicdave

cynicdave

    n00b

  • Members
  • Pip
  • 3 posts
  • Real Name:david oh
  • IPB Version:v2.3.x

Posted 17 December 2009 - 06:03 PM

One weakness is that my member post a lot, so there are 5-6 emails being sent to some members. i wonder if there is a mod that will summary them all into one post.

#9 marko2002

marko2002

    Advanced Member

  • Members
  • PipPipPipPip
  • 95 posts
  • Location:Scotland, UK
  • Real Name:Mark
  • IPB Version:v2.3.x

Posted 17 December 2009 - 07:58 PM

Not sure about that one, I initially thought the 'daily digest' was one email that included the active topics for that day that the member was subscribed to, soon learnt this was not the case but it works for us!.
Posted Image

#10 xstelios

xstelios

    Member

  • Members
  • PipPipPip
  • 21 posts
  • Real Name:Stelios
  • IPB Version:v3.1.x

Posted 24 June 2011 - 10:57 AM

Dear Marko,

Are these settings you mentioned above, working with the 3.1.4 version?

If Not, is it possible to give me some help with this version?

#11 xstelios

xstelios

    Member

  • Members
  • PipPipPip
  • 21 posts
  • Real Name:Stelios
  • IPB Version:v3.1.x

Posted 28 June 2011 - 09:02 AM

View Postxstelios, on 24 June 2011 - 10:57 AM, said:

Dear Marko,

Are these settings you mentioned above, working with the 3.1.4 version?

If Not, is it possible to give me some help with this version?

Ok. Finally i manage to put the code in my version (3.1.4) with a little changes, and all seems to work fine.

Now i have another question about the same modification. Is it possible the user who is "watching a topic", to receive ONLY ONE notification FOR EACH TOPIC "he is watching", in his email, UNTIL HIS NEXT VISIT TO EACH TOPCIS? I don't mean the "daily" option. I mean if there is a modification to the "immadiate" option for the above request.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users