user area accessible or not by different type of users (Design/Themes)

by chengtr ⌂, Guangzhou,China PRC, Wednesday, November 10, 2010, 07:01 (3298 days ago)

the forum can only set
User area(Is the user area (user list, profiles) accessible public?)
by two options, that's,
1.public accessible
2.accessible by registered users only

I think it is not good for user to visit Admin or Moderator's profile
For Admin, he can visit anything but for the user whose user_type <2,
I think they can only see those whose user_type <2.
so I made a change in the file includes/

just after

header('Location: ../index.php');

I add in:
//add by chengtr for user area's visit attribution



else $level_above=2;

and then in this file, in every sql sentences which inlude ".$db_settings['userdata_table']."

I add in:
user_type < ".$level_above."
in the 'where' conditions of the query sentences.
(remember AND before or behind this)

after these 2 changes, any user can not see the Admin's information.

Complete thread:

 RSS Feed of thread

powered by my little forum