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

Auto Follow on Registration 2.0

Set a number of users to be automatically followed when a new user registers

  1. Chris D

    Chris D XenForo Developer Staff Member

    Kings Hat, tajhay, erich37 and 3 others like this.
  2. Brandon Sheley

    Brandon Sheley Well-Known Member

    Nice idea, there was a vb mod I've used before that allowed us to auto follow new users as well. This seems to be the opposite of that?
    I'd like to have myself and my staff auto follow all new users, I'd like those users to get the standard alert as well that they are being followed.

    Any chance of adding that? :) :love:
     
    ashkir and ArnyVee like this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    Yep :)

    Chris Deeming updated Auto Follow on Registration with a new update entry:

    Rewritten - now includes ability for new user to be followed by existing users!

    Read the rest of this update entry...
     
    ArnyVee likes this.
  4. Sheldon

    Sheldon Well-Known Member

    Thanks Chris, finally got around to adding it!

    Appreciate your continued development of add-ons. (y)
     
    Chris D likes this.
  5. erich37

    erich37 Well-Known Member

    idea:

    so for a matchmaking (singles, dating) website, could you make it so that a new "male user" could follow for example 10 (or any defined number) "female users" ?
    Whereby users to follow are selected randomly ?
     
  6. Chris D

    Chris D XenForo Developer Staff Member

    It's not an option I'd like to include in this add-on, but it is possible.

    In my Listener.php file, you would simply get the users from a database query (that selects X number of users where the gender is male/female) instead of from the option.

    So something like:

    $followUsers = $this->_getDb()->fetchAll('
    SELECT *
    FROM xf_user
    WHERE gender = female
    ORDER BY RAND()
    LIMIT 10
    ');
     
  7. tajhay

    tajhay Well-Known Member

    maybe have an option where new users are followed by the admins until they reach a certain posting threshold? This way admins/mods can keep an eye on new users to ensure they are following forum rules etc?
     
  8. fredrikse

    fredrikse Active Member

    Is it compatible with Xenforo 1.2?
     
  9. Chris D

    Chris D XenForo Developer Staff Member

    I haven't tested it. Probably.
     
  10. nitai.tv

    nitai.tv Member

    @Chris Deeming, please update it for full 1.2 compatibility. Kindly oblige. I am posting the updates and news to my Forum via my status updates which I need all members to follow. Many thanks in advance.
     
  11. Chris D

    Chris D XenForo Developer Staff Member

    As far as I know it works fully with 1.2.
     
  12. nitai.tv

    nitai.tv Member

    Thanks @Chris Deeming. It does not work on my 1.2. I put my username in both fields but neither one worked. I tried to sign up twice. For the first time while adding the username, it shows the autocomplete name. If I click it, it adds my username, a comma and empty space. For the second time, I removed the comma and the empty space and just typed my name without using the autocomplete. In both cases it did not work when a new member registered. Please do help or fix it.
     
  13. oman

    oman Well-Known Member

    Hi Chris,

    I get the following error with the add on on 1.3:

    ErrorException: Undefined index: followers - library/AutoFollowOnReg/Listener.php:12
    Generated By: Unknown Account, 53 minutes ago
    Stack Trace
    #0 /home/airman28/public_html/hangar/library/AutoFollowOnReg/Listener.php(12): XenForo_Application::handlePhpError('register_proces...', '<div class="sys...', Array, Object(XenForo_Template_Public))
    #1 /home/airman28/public_html/hangar/library/XenForo/CodeEvent.php(58): AutoFollowOnReg_Listener::templatePostRender(Array, Array)
    #2 /home/airman28/public_html/hangar/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'register_proces...')
    #3 /home/airman28/public_html/hangar/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
    #4 /home/airman28/public_html/hangar/library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render()
    #5 /home/airman28/public_html/hangar/library/XenForo/FrontController.php(614): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
    #6 /home/airman28/public_html/hangar/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
    #7 /home/airman28/public_html/hangar/index.php(13): XenForo_FrontController->run()
    #8 {main}
    Request State
    array(3) {
    ["url"] => string(45) "http://airnation.net/hangar/register/register"
    ["_GET"] => array(0) {
    }
    ["_POST"] => array(17) {
    ["username"] => string(9) "RivemezEi"
    ["email"] => string(24) "oiklofedra07@hotmail.com"
    ["password"] => string(8) "********"
    ["password_confirm"] => string(8) "********"
    ["dob_month"] => string(1) "8"
    ["dob_day"] => string(2) "23"
    ["dob_year"] => string(4) "1981"
    ["gender"] => string(4) "male"
    ["custom_fields"] => array(1) {
    ["country"] => string(2) "ps"
    }
    ["custom_fields_shown"] => array(1) {
    [0] => string(7) "country"
    }
    ["timezone"] => string(11) "Asia/Almaty"
    ["captcha_question_answer"] => string(0) ""
    ["captcha_question_hash"] => string(40) "cbd1a2cd37f7ddd2b1d0e72705f6d4b4d2abc671"
    ["agree"] => string(1) "1"
    ["submit"] => string(7) "Sign up"
    ["_xfToken"] => string(8) "********"
    ["reg_key"] => string(32) "07d92e344954d3b588b50597c0339e6d"
    }
    }
     
  14. oman

    oman Well-Known Member

    It happens upon successful and unsuccessful registration and when a user registers.

    Would you be able to provide a fix?
     
  15. oman

    oman Well-Known Member

    And this one -

    XenForo_Exception: The requested user could not be found. - library/XenForo/DataWriter.php:1345
    Generated By: Unknown Account, 14 minutes ago
    Stack Trace
    #0 /home/airman28/public_html/hangar/library/XenForo/DataWriter.php(1387): XenForo_DataWriter->_haveErrorsPreventSave()
    #1 /home/airman28/public_html/hangar/library/XenForo/Model/User.php(72): XenForo_DataWriter->save()
    #2 /home/airman28/public_html/hangar/library/XenForo/Model/User.php(1976): XenForo_Model_User->update(0, 'following', '1')
    #3 /home/airman28/public_html/hangar/library/XenForo/Model/User.php(1754): XenForo_Model_User->updateFollowingDenormalizedValue(0)
    #4 /home/airman28/public_html/hangar/library/AutoFollowOnReg/Listener.php(26): XenForo_Model_User->follow(Array)
    #5 /home/airman28/public_html/hangar/library/XenForo/CodeEvent.php(58): AutoFollowOnReg_Listener::templatePostRender('register_proces...', '<div class="sys...', Array, Object(XenForo_Template_Public))
    #6 /home/airman28/public_html/hangar/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire(Array, Array)
    #7 /home/airman28/public_html/hangar/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render('template_post_r...', Array, 'register_proces...')
    #8 /home/airman28/public_html/hangar/library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render()
    #9 /home/airman28/public_html/hangar/library/XenForo/FrontController.php(614): XenForo_ViewRenderer_HtmlPublic->renderContainer()
    #10 /home/airman28/public_html/hangar/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_Template_Public), Array)
    #11 /home/airman28/public_html/hangar/index.php(13): XenForo_FrontController->run(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
    #12 {main}
    Request State
    array(3) {
    ["url"] => string(45) "http://airnation.net/hangar/register/register"
    ["_GET"] => array(0) {
    }
    ["_POST"] => array(17) {
    ["username"] => string(13) "Lealiainvoins"
    ["email"] => string(28) "boylipphodis1973.txy@aol.com"
    ["password"] => string(8) "********"
    ["password_confirm"] => string(8) "********"
    ["dob_month"] => string(1) "3"
    ["dob_day"] => string(1) "8"
    ["dob_year"] => string(4) "1987"
    ["gender"] => string(4) "male"
    ["custom_fields"] => array(1) {
    ["country"] => string(2) "dm"
    }
    ["custom_fields_shown"] => array(1) {
    [0] => string(7) "country"
    }
    ["timezone"] => string(14) "Asia/Singapore"
    ["captcha_question_answer"] => string(0) ""
    ["captcha_question_hash"] => string(40) "a408daf820d86940f2744888deebe02b8d86f471"
    ["agree"] => string(1) "1"
    ["submit"] => string(7) "Sign up"
    ["_xfToken"] => string(8) "********"
    ["reg_key"] => string(32) "507e6ffeb440e9d114b16176e83e640f"
    }
    }
     
  16. Biarritz64

    Biarritz64 Active Member

    does it work on 1.3.2?
    Thank you
     
  17. Chris D

    Chris D XenForo Developer Staff Member

    It might not do. I haven't gotten around to testing this one fully.
     
  18. Biarritz64

    Biarritz64 Active Member

    wait for this ;-)
     
  19. Pinn

    Pinn Active Member

    Last edited: Sep 4, 2014
  20. fredrikse

    fredrikse Active Member

    Does it work for 1.4?
     

Share This Page