vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   PLEASE HELP: add multimple FORUM subscriptions at once (https://vborg.vbsupport.ru/showthread.php?t=74139)

btappan 01-10-2005 01:45 PM

PLEASE HELP: add multimple FORUM subscriptions at once
 
is there anyway I can do either one of the following?

1. Make a link for my users that when clicked, will subscribe them to MULTIPLE forums that I specify = like X,Y,Z etc. etc.

or

2. quickly Manually subscribe ALL of my users to forums that I specify?

I need badly to somehow get all of my users subscribed to a few forums in particular. how might I go about this?

btappan 01-11-2005 11:56 AM

I am surprised no one else has interest in this, It is real pain to subsribe to 10 or 15 subforums in a row.

btappan 01-12-2005 05:35 PM

anybody?

Andreas 01-12-2005 05:45 PM

Well, all you have to do is create the apropriate records in table subscribeforum.

emailupdate: 0=No Update, 1=Immediate Update, 2=Daily Digest, 3=Weekly Digest

btappan 01-12-2005 05:54 PM

Quote:

Originally Posted by KirbyDE
Well, all you have to do is create the apropriate records in table subscribeforum.

emailupdate: 0=No Update, 1=Immediate Update, 2=Daily Digest, 3=Weekly Digest

How would I go about doing this? I need to subscribe them to forums so they get emailed new threads in that forum NOT subscribe them to individual thread replies. Your help is appreciated

Andreas 01-12-2005 06:04 PM

Examples
To subscribe UserID 12 to ForumID 34 using immediate updates:
[sql]INSERT INTO subscribeforum (userid, forumid, emailupdate) VALUES (12, 34, 1)[/sql]


To subscribe ALL your users to forum ID 34 using immediate updates:
[sql]INSERT IGNORE INTO subscribeforum (userid, forumid, emailupdate) SELECT userid, 34 AS forumid, 1 AS emailupdate FROM user[/sql]

btappan 01-12-2005 06:18 PM

Thank you.....one more thing
when you are subscribing to a forum as a user, there is no option for immediated updates, only daily and weekly, what is going to happen if i run this query and specify immediate updates?

Immediate updates to my knowledge are only available to specific THREAD subscriptions

Andreas 01-12-2005 06:31 PM

Hmm ... never tried that, as I don't use subscriptions much.
(And forum subscriptions not at all)
I thought this was also available for forums.

If it does not work just issue an UPDATE afterwards to set it to 2 or 3

btappan 01-12-2005 07:40 PM

well i ran the query:

I ran the query:
INSERT INTO subscribeforum (userid, forumid, emailupdate) VALUES (10, 13, 1)

This does not cause an error message, and does add a subsription. but if you use "1" for email notification, it does not send an email, however using 2 and 3 do send emails.

ALSO noticed: if any of VALUES (x, y, z) match what is already in the table I get the following error:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1062
error desc: Duplicate entry '13-10' for key 2

do i need a dump table command or something?

btappan 01-13-2005 07:26 PM

Quote:

Originally Posted by btappan
well i ran the query:

I ran the query:
INSERT INTO subscribeforum (userid, forumid, emailupdate) VALUES (10, 13, 1)

ALSO noticed: if any of VALUES (x, y, z) match what is already in the table I get the following error:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1062
error desc: Duplicate entry '13-10' for key 2

does anybody know how to make this query overwrite an existing subscription?


All times are GMT. The time now is 07:06 AM.

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.01012 seconds
  • Memory Usage 1,728KB
  • 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_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
  • (10)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