Query to subscribe a single user to a thread

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nick
    Senior Member
    • Feb 2008
    • 3507
    • 3.8.x

    Query to subscribe a single user to a thread

    I am looking for a query to subscribe a single user to a single thread.

    Any help is appreciated
    Regards,
    Nick
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Code:
    INSERT INTO subscribethread
    (userid, threadid, emailupdate, folderid, canview)
    VALUES ('[color=red]X[/color]', '[color=red]Y[/color]', '[color=red]Z[/color]', '0', '1')
    Where X is the userid of the user, Y is the threadid of the thread, and Z is the number 0 (no email updates), 1 (instant email), 2 (daily updates), or 3 (weekly updates).

    Backup first and test it.

    Comment

    • Nick
      Senior Member
      • Feb 2008
      • 3507
      • 3.8.x

      #3
      Awesome, thanks Jake!
      Regards,
      Nick

      Comment

      • Nick
        Senior Member
        • Feb 2008
        • 3507
        • 3.8.x

        #4
        I just want to confirm that this does in fact work
        Regards,
        Nick

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...