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

XF 1.2 How to change default user group id

Discussion in 'XenForo Questions and Support' started by delikassap, Nov 25, 2013.

  1. delikassap

    delikassap New Member

    Hi all,

    We converted our vbulletin forum to xenforo recently.
    So far so good.

    Is there anyway to change default registered users group id ?

    some forum users say that there
    is a static variable in upload\library\XenForo\Model\User.php
    public static $defaultRegisteredGroupId = 2;

    I changed this value to a new value but nothing has happened.

    Is there any other place that i need to update.

    Thankx for your reply.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Why do you want to change the ID?
    For what purpose?

    There are four hard coded user groups in XenForo, Registered being one of them.

    I would not recommend editing the code in this way.
  3. delikassap

    delikassap New Member

    Actually we want to disable new users to post.
    After 3 days of registration, we want to enable them for posting.

    We think we can make this real by using user groups and trophies.

    1 - After user signs up, add this user a user group with less priviledge. (can not post) - thats why we need to change the default user group.
    2- After 3 days, promote him to a new group which can

    This is our scenerio. Is there any simple way to make this happen ?

  4. Brogan

    Brogan XenForo Moderator Staff Member

  5. delikassap

    delikassap New Member

    Is trophies work for previos users ?
    We actually try this but older users are not promoted to new group.

    Can you summarize how cron jobs work for user promotions ?
  6. Brogan

    Brogan XenForo Moderator Staff Member

    It is based on recent activity.

    If members have not logged in for a while, there is a code edit posted somewhere to apply the cron to all users.
  7. Mike

    Mike XenForo Developer Staff Member

    There's a rebuild cache tool to run promotions on all users.
    Brogan likes this.
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Oh yeah, forgot that was added recently :D
  9. AndyB

    AndyB Well-Known Member

    Are you having problems wit spammers? If so you might like to fix that issue and the need to restrict new registrations from posting would not be required.
  10. Mian Shahid

    Mian Shahid Well-Known Member

    Instead to change user group ID, is their any way to display Super Moderators above Moderators in below list?
  11. Brogan

    Brogan XenForo Moderator Staff Member

    Post in the add-on thread for support with that.
    Mian Shahid likes this.
  12. Mian Shahid

    Mian Shahid Well-Known Member

    When i went to post in thread the following message shown

    You have insufficient privileges to reply here.


Share This Page