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

XF 1.4 Difficulties setting permission

xoa

New member
#1
Hello, at the moment I'm just a bit confused about setting the permission right.

What is the fastest way setting the permission to allow the "Registered" User-Group so that they can create a thread in a specific forum, and disallow posting/replying/create threads in every other forum?
 

Brogan

XenForo moderator
Staff member
#3
Remove the create thread and reply permissions for the Registered user group.

Allow them for that specific node only.
 

xoa

New member
#6
Another question, how can I disable the "Buy Upgrade" feature for specific usergroups? I wan't them to make their first post in the Introduction forum first, then I approve them as "Verified Members" (new usergroup), and only then they are allowed to buy the upgrade.
 

Brogan

XenForo moderator
Staff member
#7
There is no option to limit upgrades to specific user groups.

You could edit the template and use a user group conditional statement.
 

xoa

New member
#8
I think I got it. I opened the account_upgrades template and added on top
Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 1, 2, 5}">
and at the end

Code:
</xen:if>
It works, but the better solution would be to hide the Link to the Upgrades and not only the Upgrades itself, but lets see if I find out that one too.
 
Last edited:

xoa

New member
#9
I have still a different problem.
I've set up a User Promotion. After a user does his first post in a specific forum, I have to approve the post, once approved, then the user group should change automatically from "Registered Member" to "Verified Member". But it just wont happen. I also run the Cron manually.
Is there something wrong with my settings?
 

Attachments

Martok

Well-known member
#10
The user will remain in the Registered group and should be added to Verified.

The promotion should work, though you don't actually need to select the Registered group in the promotion criteria. The promotion should kick in when the member is next active after the from has run.

Looking at your permission setup for Registered, there are several errors. Firstly, you haven't set permissions for them to post new threads, reply to posts or like posts. Secondly you have two permissions set to Never for the Registered group. You should use these here as Never cannot be overridden and everyone should have Registered as their primary user group. Set the permissions to Not Set (No) instead.
 

Martok

Well-known member
#12
I modified everything as you said, but unfortunately, the user stays in Registered user group. :(
As I said

The user will remain in the Registered group and should be added to Verified.
They won't be removed from the Registered group.

Have you logged on as the user after running the user group promotion cron and then checked after that if they have been added to the Verified group (assuming they have made a post that has been approved, of course)?
 

xoa

New member
#13
Ok, now it seems to work, the user has now been assigned to the "Verified Group" as secondary user group. But now I run into another problem. Since I used a conditional statement to hide the the Account Upgrades for the "Registered" User group, now my Verified members also can't see the Account Upgrades. I think because "Registered" is still their Primary group.
 

Brogan

XenForo moderator
Staff member
#14
Change the conditional statement to show it to members of the verified group, rather than hiding it from the registered group.