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

XF 1.5 how to show code only to those who have been MANUALLY validated


Well-known member
I'm trying to restrict Cometchat to those who have already been MANUALLY validated, and no one else. How can this be done? I tried various things without success. Any help, or suggestions would be appreciated! Thanks!


Well-known member
Hmm...after a bit of research, looks like any state other than "valid" receives permissions from group 1 (unregistered).



Well-known member
Hmm....still not working. I disabled Cometchat via usergroup permission and also put this in PAGE_CONTAINER:

<xen:if is="!{xen:helper ismemberof, $visitor, 1}">
<link type="text/css" href="/cometchat/cometchatcss.php" rel="stylesheet" charset="utf-8">
<script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script>

It does NOT work and it still shows to members who have NOT yet been manually approved.

Help please!


Well-known member
Make a new group.

Then add only those users you approve to see code.

That would be better.

The permissions for the group can be the far left ( no ?)for everything as your custom coding it :)


Well-known member
Hmm....well I have 1350+ approved members so manually assigning each of them to a new custom group would be very tedious. I do already have a custom group that all approved members are part of. I'll tinker some more!



Well-known member
Certainly. My forum is set to allow registrations, but I also set it so I have to "validate" any new accounts so all new registrations are in the state "Awaiting Approval".

I want to show certain code only if a user is NOT in the state "Awaiting Approval".

Is there is a conditional for "is Awaiting Approval"?



XenForo moderator
Staff member
If you are referring to users which appear here: admin.php?users/moderated

That would be a user state of moderated.