PDA

View Full Version : Allow/Disallow Title changes based on Member ID


jjj0923
05-14-2002, 03:49 AM
I told my first 200 member that they would be able to keep Founding Member Status and also to be able to change their titles.

I am not going to let members after member ID 200 change their titles....they get titles based on post counts.

I figured out how to display/not display the title section on the profile screen, but the count logic kicks in and nukes whatever title someone enters....

Can someone give me a good place to start looking so that I can write the code myself to NOT let the count logic overwrite titles if the userid < 201 ???

thanks in advance...

- jeff

Logician
05-14-2002, 07:29 AM
I would suggest changing the usergroup of first 200 members and give necessary permissions for their usergroup. This would solve your problem without a need to hack.. :)

jjj0923
05-14-2002, 11:52 AM
I've look at that but all usergroups seem to be based on number of posts. Am I missing something or is there a way to create groups based on member id????

- jeff

Logician
05-14-2002, 02:05 PM
H?mm sorry my bad.. Anyway here is your hack: :)

First find the 200th user's userid, from admin cp

Edit member.php
Find:
-- cut --
if ($ctEnable == 1 and $customtext) {// Custom Titles are ON, Make sure user can actually use them and isn't trying to manipulate them through forms
$ctShowTitle = 0;
-- cut --
BEFORE THAT ADD:

-- cut --
if ($bbuserinfo[userid]<=X) {$ctEnable = 1;} else {$ctEnable = 0;}
-- cut --
(Replace X with the 200th user's userid!)

ADD the same line, just BEFORE this line too:
-- cut --
if ($ctEnable == 1) { // Custom Titles are ON
$ctShowTitle = 0;
-- cut --

Not tested but should work..

Enjoy!
Logician \\=^))