1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatic Watch Thread and Watch Forum on Registration [Paid] 1.0.2

Force users to automatically watch a forum/forums and/or watch a thread/threads upon registering

  1. Chris D

    Chris D XenForo Developer Staff Member

    Chris Deeming submitted a new resource:

    Automatic Watch Thread and Watch Forum on Registration - Force users to automatically watch a forum/forums and/or watch a thread/threads upon registering

    Read more about this resource...
     
    Digital Doctor, erich37 and Shelley like this.
  2. Shelley

    Shelley Well-Known Member

    Nice work Chris. Always enjoy these add-ons. (y)

    If you ever think about creating a x amount of posts to down per forum & usergroup I'd happily purchase that. :)
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    I don't understand what you're asking for :)
     
  4. surfsup

    surfsup Well-Known Member

    Chris.....this is AWESOME!!!

    Perfect for automatically sending notifications for important announcements! Awesome man just awesome! I will be buying this soon ;)
     
  5. RobParker

    RobParker Well-Known Member

    That's great. What might be useful is a one-off admin option (or even just the SQL) to also force all current users to have the same setting as otherwise this will only apply to new registrations.
     
    0ptima and surfsup like this.
  6. Chris D

    Chris D XenForo Developer Staff Member

    Yeah maybe. That kind of thing doesn't really scale well to large boards unless I use the cache rebuilder to do it. But, the add-on was never designed to be anything more than for new registrations so it would be a custom job if you wanted it doing (but my schedule is tight now until August and beyond)
     
  7. RobParker

    RobParker Well-Known Member

    Fair enough. I didn't so much mean this for us, rather that it might help others and I thought it'd be straightforward.

    What would happen with a simple SQL statement to select all users and set watched forum? Or would that be horrible performance-wise?
     
  8. Chris D

    Chris D XenForo Developer Staff Member

    That would be horrible performance wise :)

    It would need the help of a PHP script as well to grab the users as well, loop through them, run a query for each one etc.

    This is some example code based on a much earlier version of this add-on which I wrote for [bd] Forum Watch:

    PHP:
            $userModel XenForo_Model::create('XenForo_Model_User');
            
    $users $userModel->getAllUsers();
          
            
    $db XenForo_Application::getDb();
            
    XenForo_Db::beginTransaction($db);
          
            foreach (
    $users AS $user)
            {          
                
    $db->insert('xf_forum_watch', array(
                    
    'user_id' => $user['user_id'],
                    
    'forum_id' => 7)
                );
            }
          
            
    XenForo_Db::commit($db);
    So that won't work for this add-on, but the premise is still the same.
     
    RobParker likes this.
  9. erich37

    erich37 Well-Known Member

    great feature (y)

    would it be possible to do the same for the users own "User Profile Page" ?
    So that user will be able to receive a "Notification by Email" when there is a new post at their own "Profile Page".....

    :coffee:
     
  10. Chris D

    Chris D XenForo Developer Staff Member

    Nope. Watching forums and threads with email alerts functionality is default in XenForo. What you've suggested isn't. So that would be require custom development.
     
  11. MattW

    MattW Well-Known Member

    I think Shelley missed half a word from that sentence. I think that she is after a modification where you can limit who can download something on a per forum basis, based on the number of posts they have
     
  12. Chris D

    Chris D XenForo Developer Staff Member

    Not sure. Because if it was download then the post suggests posts to be downloaded so I'm still confused.

    @Shelley can you clarify your suggestion please? :)
     
    Shelley likes this.
  13. Shelley

    Shelley Well-Known Member

    I'll pc you in a little while chris as it will cause this thread to go off-topic. :)
     
    Chris D likes this.
  14. MattW

    MattW Well-Known Member

    And to bring it back on topic, I'll be buying this when I'm back off holiday on Tuesday
     
    Chris D likes this.
  15. Chris D

    Chris D XenForo Developer Staff Member

    Slacker.
     
    MattW likes this.
  16. MattW

    MattW Well-Known Member

    I've had a buy wifi just so I can log in on here, I'm in a tent in a field in Cornwall ;)
     
    Shelley likes this.
  17. Chris D

    Chris D XenForo Developer Staff Member

    You have my deepest condolences.
     
  18. The Forum Heroes

    The Forum Heroes Well-Known Member

    What about a per usergroup option? Then I could force a watched forum based on services the client has using each service offered as it's own usergroup.
     
  19. Chris D

    Chris D XenForo Developer Staff Member

    How can it be per usergroup when this operates during registration?
     
  20. The Forum Heroes

    The Forum Heroes Well-Known Member

    I ment could you consider creating one like this but per usergroup...
     

Share This Page