vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Auto-Subscribe New User to Forum (https://vborg.vbsupport.ru/showthread.php?t=269137)

kh99 08-24-2011 10:00 PM

Auto-Subscribe New User to Forum
 
1 Attachment(s)
What is it?
----------------------------
This mod automatically subscribes new users to one or more forums. The forums and type of notification can be set under "User Registration Options" in the adminCP. (Works on vb4 or vb3 versions).

(This was created in response to this request: https://vborg.vbsupport.ru/showthread.php?t=260225).


Installation:
----------------------------
1) In the Product Manager in AdminCP, import the product XML file (product-kh99_autosubscribeforum.xml).

2) Go to vBulletin Option -> User Registration Options to set the comma-separated list of forum ids, and type of notification.


Uninstalling:
----------------------------
1) Uninstall the product from the Product Manager in the AdminCP. (Doing so will not remove any existing subscriptions).


Notes:
----------------------------
1) Tested on vb4.1.5 and vb3.8.3.


History:
----------------------------
1.1 (Aug 26, 2011) - Added support for multiple forums
1.0 (Aug 25, 2011) - Initial Release

ProFifaLeagues 08-25-2011 02:32 PM

Nice one Idea thank you!

Adem GEN? 08-25-2011 07:31 PM

Thank you very much
I'm looking for a long-time mode

I suggest options
Each new topic
Each new reply
New topics and new reply

What should I do if the current registered members to subscribe?

FReeSTER 08-26-2011 03:09 AM

can we make multi forums as choices?
for sample forum id 1,2?

kh99 08-26-2011 06:23 PM

Quote:

Originally Posted by FReeSTER (Post 2238174)
can we make multi forums as choices?
for sample forum id 1,2?

Yes. I updated the mod to allow more than one forum to be listed.

(If you only need to subscribe users to one forum, there's no reason to update).

TheHack3r 09-03-2011 01:57 AM

Is there any advice on how to auto-subscribe current users? or can you put this feature on this MOD, please? :D

nacaruncr 09-03-2011 03:30 AM

It would be a good idea to auto-subscribe to older users :D

Sforums 09-03-2011 03:43 AM

Agreed.

lild100 09-03-2011 10:34 AM

Isnt this illegal... dont users have to say yes or no to subscribing to a forum?

kh99 09-03-2011 10:54 AM

Quote:

Originally Posted by lild100 (Post 2241476)
Isnt this illegal... dont users have to say yes or no to subscribing to a forum?

I don't know, I'm not a lawyer or anything. But I know I get subscribed to newsletters all the time. My understanding is that (in the US anyway) the email needs to include instructions for unsubscribing, and the vb subscription emails do.

But that's a good point - anyone who chooses to use this should make sure it's not breaking any laws where they live or host their site.


Quote:

Originally Posted by nacaruncr (Post 2241403)
It would be a good idea to auto-subscribe to older users :D

Quote:

Originally Posted by Sforums (Post 2241408)
Agreed.


Is this a joke about the way something's worded? I don't get it.

kh99 09-03-2011 11:25 AM

1 Attachment(s)
Quote:

Originally Posted by TheHack3r (Post 2241388)
Is there any advice on how to auto-subscribe current users? or can you put this feature on this MOD, please? :D

I don't want to add it to this mod, but I'm attaching a script you can use to add forum subscriptions for all users. You need to edit the script to set the forums and type of notification, upload it to your forum directory, run it, then remove it.

As someone mentioned above, I have no idea if subscribing someone to a mailing list is legal everywhere or not. But I do know that it's annoying, and doing it too often (or doing it after someone has chosen to unsubscribe) may well be illegal, so use with caution.

TheHack3r 09-03-2011 11:50 AM

Quote:

Originally Posted by kh99 (Post 2241489)
I don't want to add it to this mod, but I'm attaching a script you can use to add forum subscriptions for all users. You need to edit the script to set the forums and type of notification, upload it to your forum directory, run it, then remove it.

As someone mentioned above, I have no idea if subscribing someone to a mailing list is legal everywhere or not. But I do know that it's annoying, and doing it too often (or doing it after someone has chosen to unsubscribe) may well be illegal, so use with caution.

Thx, i'll try ur script ASAP.. :p

About illegal or not is depend on members,,, on my forum members always ask how to subscribe some thread on the first they register... :rolleyes:

nacaruncr 09-03-2011 02:28 PM

Quote:

Originally Posted by kh99 (Post 2241479)
I don't know, I'm not a lawyer or anything. But I know I get subscribed to newsletters all the time. My understanding is that (in the US anyway) the email needs to include instructions for unsubscribing, and the vb subscription emails do.

But that's a good point - anyone who chooses to use this should make sure it's not breaking any laws where they live or host their site.

Is this a joke about the way something's worded? I don't get it.

excuse me for my english man...... well. ... using a translator...

"It would be a good idea to also run the auto-subscribe for registered users"

kh99 09-03-2011 02:41 PM

Quote:

Originally Posted by nacaruncr (Post 2241543)
excuse me for my english man...... well. ... using a translator...

"It would be a good idea to also run the auto-subscribe for registered users"

Oh..OK, sorry. I guess the smilie made me think you were joking. :)

nacaruncr 09-03-2011 02:57 PM

noooo... I didn't joking XD it was a simple idea. because, I'm searching something like this, the auto-subscribe for older users... no only for new XD :p XD

Richard Changes 10-10-2011 03:04 PM

Hi - I am having problems with this mod and just wanted to clarify that it does what I want it to do.

I want the forum to notify all members (I realize they have to be new members - but this isn't a problem as its a new forum); of all activity by daily digest - regardless as to whether they have posted in the thread. I.e if someone is completely inactive in posting on the forums they will get a digest of what is happening.

Have other users had success in using this mod to achieve the same ends.

Best Regards

Richard Pearce (Changes Mental Health Charity)

kh99 10-10-2011 03:32 PM

I'm not sure if it does what you want. This mod will allow you to specify one or more forum ids, and newly registering users will be subscribed to that forum. I'm not sure if it's what you want because when you say "new forum" do you mean that your entire vbulletin site is new? And you mention posting in a thread, but this works by forum (vbulletin's idea of a forum or sub-forum, as you see then in the forum manager). If you're creating a new site and you want to subscribe all newly registering members to one or more forums, then this should do what you want. (I actually am not sure if subscribing to a forum subscribes you to all subforums or not).

If you think this is what you're trying to do but it's not working, let me know.

thecore762 10-12-2011 01:07 AM

tagged, interesting mod.

Richard Changes 10-21-2011 03:02 PM

Hi thanks for your reply. It encourages me that I will be able to our forum to function for the Charity.

It would be useful to see if there are any active public forums that I might subscribe to that use this mod, just so I can see it working.

Best Regards

Richard

enginethatcan't 12-16-2011 03:24 PM

Any word on it working for 4.1.7?

Dakoom 01-23-2012 03:01 PM

does it works also for childforum?

kh99 01-23-2012 03:31 PM

Quote:

Originally Posted by Dakoom (Post 2291425)
does it works also for childforum?

No, it subscribes to exactly the forums you list. It might be possible to allow child forums as an option somehow, but then if you were to add a child forum later it wouldn't automatically be subscribed, so I thought that might be more confusing.

chazwick 04-10-2012 07:51 PM

Quote:

Originally Posted by kh99 (Post 2291436)
No, it subscribes to exactly the forums you list. It might be possible to allow child forums as an option somehow, but then if you were to add a child forum later it wouldn't automatically be subscribed, so I thought that might be more confusing.

Adding the child forum would be helpful. I would be happy using this function even if I had to re-run it somehow to capture new(er) child forums not present when it was initially set up.

kh99 04-15-2012 10:48 AM

Quote:

Originally Posted by chazwick (Post 2318804)
Adding the child forum would be helpful. I would be happy using this function even if I had to re-run it somehow to capture new(er) child forums not present when it was initially set up.

I'll consider it for a future release.

doubleclick 04-24-2012 08:05 AM

Hi kh99 -

While you're thinking about future releases, would you consider linking this with secondary usergroups, so when a user joins a usergroup, either by him/herself, or by an admin, they are then automatically subscribed to forums that the admin has associated with that usergroup?

For example, in a car forum, if a user adds himself to the group "Buicks", then he would automatically be subscribed to the GM forum, since the admin had made that group/forum connection using your mod.

Chimpie 04-24-2012 05:57 PM

Quote:

Originally Posted by kh99 (Post 2241489)
I don't want to add it to this mod, but I'm attaching a script you can use to add forum subscriptions for all users. You need to edit the script to set the forums and type of notification, upload it to your forum directory, run it, then remove it.

As someone mentioned above, I have no idea if subscribing someone to a mailing list is legal everywhere or not. But I do know that it's annoying, and doing it too often (or doing it after someone has chosen to unsubscribe) may well be illegal, so use with caution.

First, thank you for this mod and php script. It worked well for my community.

Is there a script that can be used to unsubscribe everyone from a single forum or multiple forums?

Thanks!

kh99 04-24-2012 06:13 PM

Quote:

Originally Posted by Chimpie (Post 2323148)
First, thank you for this mod and php script. It worked well for my community.

Is there a script that can be used to unsubscribe everyone from a single forum or multiple forums?

Thanks!


You can do a one-time unsubscribing from one or more forums by executing an sql query like:

Code:

DELETE FROM subscribeforum WHERE forumid IN (1, 2, 3)

You'd change (1, 2, 3) to the list you want to unsubscribe users from. Also, if you have a table prefix you'd have to add it before subscribeforum.

As always, be very careful when you modify the database. It would be wise to make sure you have a recent backup before you do anything.

Chimpie 04-26-2012 02:30 AM

Quote:

Originally Posted by kh99 (Post 2323151)
You can do a one-time unsubscribing from one or more forums by executing an sql query like:

Code:

DELETE FROM subscribeforum WHERE forumid IN (1, 2, 3)

You'd change (1, 2, 3) to the list you want to unsubscribe users from. Also, if you have a table prefix you'd have to add it before subscribeforum.

As always, be very careful when you modify the database. It would be wise to make sure you have a recent backup before you do anything.

Thanks. Worked perfectly.

Richard Changes 07-06-2012 02:53 PM

Hi - I have tried implementing this mod - everything seems to have gone OK - I selected the form ID, Selected daily digest and then added a new user - I logged in as them and checked the forum - but it wasn't subscribed - Have people found that this works with VBulliten 4.2 - or can anyone think of anything I have missed.

Any suggestions gratefully recieved.

kh99 07-06-2012 03:46 PM

I have to admit I've been lax in testing this when new versions of vb were released, [S]and in fact it seems like it doesn't work with vb4.2.0. I'll look in to it and release an update as soon as I figure it out.[/S]

I spoke too soon - it does seem to work with vb4.2.0.

Quote:

Originally Posted by Richard Changes (Post 2345531)
Hi - I have tried implementing this mod - everything seems to have gone OK - I selected the form ID, Selected daily digest and then added a new user - I logged in as them and checked the forum - but it wasn't subscribed - Have people found that this works with VBulliten 4.2 - or can anyone think of anything I have missed.

Any suggestions gratefully recieved.

When you say you added a user, did you go through registration or the adminCP? This mod will only work if you go through the registration page, and if you have "Verify Email address in Registration" set to yes, then the user won't be subscribed until they click on the verification link.

Lpspider 02-06-2013 09:07 PM

Does this subscribe "new users" or can I specify it to a different usergroup as well/instead?

dizzynation 02-06-2013 09:14 PM

As far as legality....

When users register they agree to the terms, just add it in the terms of service

"You acknowledge that you may be auto subscribed to certain forums"

Done...

kh99 02-06-2013 09:44 PM

Quote:

Originally Posted by Lpspider (Post 2402487)
Does this subscribe "new users" or can I specify it to a different usergroup as well/instead?

I'm not sure what you're asking. It doesn't have anything to do with usergroups really. What it does is, when a new user registers it automatically adds a subscription for them.

bstrydom 02-17-2014 11:59 AM

This is exactly what we need except that we need it instant email notifications and not only once a day. We have only about 400 users and our board is internal. Our company has an internal policy that all users must be notified of EVERY single new thread started and ANY updates to every thread thereafter. If the users wants to Opt-out, he can by clicking an "unsubscribe" link. But this only sends out the notifications once a day or once a week. We need it to be instant.

Is there a way to modify this addon to do just that?

kh99 02-17-2014 12:12 PM

Unfortunately there's no easy way to modify this addon to do that, because "instant email" isn't one of the choices when a user subscribes to a forum. I think you'd need to do something like create a plugin that runs when a thread is created and adds a subscription to that thread for every user in the database (or maybe every user who belongs to a certain user group).

bstrydom 02-17-2014 01:24 PM

Ok! Thanks for the reply...

Yes, a plugin would be needed then but the group option sounds perfect! I could just add all the users to a group but now to find someone to build the plugin :(

Rustneversleeps 05-27-2015 05:07 AM

Hi,
I know this thread is quite old, but maybe it comes back to life... For letting users choose "instant email notification" on forum subscriptions, I use this one: https://vborg.vbsupport.ru/showthread.php?t=248617
But users still have to subscribe to every single forum manually.

When using this addon and your addon at the same time, could it be possible to modify your addon so "instant email notification" would be available for automatic forum subscriptions as well? Or is it still the same problem concerning instant email notification you mentioned above?

Thanks for your help
Sam

kh99 05-27-2015 09:32 AM

1 Attachment(s)
OK, I'm attaching a version of the xml that just adds "Instant Email Notification" to the list of options for this mod. I looked at that other mod and it looks like if you have that installed and you choose "Instant Email Notification" in the options for this mod, users should get instant email notification of new threads (but I haven't tried it). You should just need to install this and choose "Overwrite" when installing.

Just to be clear (for everyone else), if you do not have this mod installed: https://vborg.vbsupport.ru/showthread.php?t=248617 and you choose "Instant Email Notification", the users won't get any notification of new threads.

Rustneversleeps 05-29-2015 07:02 AM

Thanks for your quick reply! I tested it on vb 4.2.2 and it seems to work. Also the update script for existing users works for me, choosing "1", which seems to be the value for instant email notification in your update, for notification method.
After hours of research how to solve this problem of combining autosubscribe and instant email notification you really made my day!!!

One last question, is there a way to notify users about replies without them having to subscribe manually to the thread?

friendlymela 10-06-2015 08:31 AM

nice move


All times are GMT. The time now is 08:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01478 seconds
  • Memory Usage 1,840KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete