• 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

zoldos

Well-known member
#1
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!
 

zoldos

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

Correct?
 

zoldos

Well-known member
#3
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>
</xen:if>

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

Help please!
 

Pierce

Well-known member
#4
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 :)
 

zoldos

Well-known member
#5
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!

Thanks!
 

zoldos

Well-known member
#8
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"?

Thanks!
 

Brogan

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

That would be a user state of moderated.