PDA

View Full Version : dont want new mod. registrations to have access to main usercp page


tkeil69575
09-06-2002, 01:13 PM
I have User Moderation for new registrations turned on. So new members dont have access to the usercp until I activate their accont and change their usergroup.

However they can access the main page of the usercp, but e.g. when they click on profile or pm etc. they get no further access, which is basically how it should be.

My question?
How can I change it so the don't have access to the usercp at all, seems pretty pointless that they can access the main page when they aren't allowed to do anything else there anyway.

Tina

g-force2k2
09-06-2002, 02:16 PM
tkeil69575...

open up usercp.php

find:

require('./global.php');

under it add:

if($bbuserinfo[usergroupid] == XX) {
show_nopermission();
}

Remember to place the XX with the usergroupid for the Moderated Users... regards...

g-force2k2

Logician
09-06-2002, 04:51 PM
The reason they are given access to User CP is so that they can:
a) Unsubscribe from threads, list their subscriptions,
b) Change their technical options like choosing not to receive emails from admins or allow cookies etc.

IMO you dont need to restrict their access there since they cant abuse it in anyway. G-force's code will do the trick (as usual) if you are determined. :)