The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need advise
Hi!
I'm newbee in vb programming. I need make this task: we have system where vb is subsystem. vb_users synchronised with systems users. system users have level which limit access to read content. levels look like: Bronze Silver Gold they's rights are hiearchial ( means: Gold have access to content of silver and bronze level) I need implement this into forum. So each forum will has level and each user. if user try open forum with level bigger then he have , he will get notify page and no accsess to this forum. Please, give advise how make it simpliest and/or best way. I think about custom permision but it need showtreads.php change. Just suppose the way,please |
#2
|
||||
|
||||
I would do it with usergroups. Set up bronze, silver and gold usergroups, then modify the forum permissions so that only the aprropriate usergroups can access the appropriate forums.
Doing this it is possible to hide non-access forums altogether. |
#3
|
|||
|
|||
Quote:
but this method have two lack in my opinion: first : There need set all groups(level) permision's to forum instead on. ( for example bronze forum will have bronze, silver and gold usergroup permission) second: there do not use new user property level. pls, fix me if i wrong. better, as I think is add : levels field to forum permission... but how ? |
#4
|
||||
|
||||
Quote:
Quote:
Quote:
|
#5
|
|||
|
|||
Quote:
Question is how link the level of user and userGroup? Quote:
I'll trying explain it again: PHP Code:
add new permision to forum (for example levelpermision) and checking in hook if current user can access to forum. If no set one of prev variable for make 'no_permission' effect. so, can I add permission to forum? btw. we bought this forum where is I get documentation? |
#6
|
||||
|
||||
For the documentation on vbulletin, you can download it from within members area at vbulletin.com, or you can view online at vbulletin.com main page (see link to documentation in header)
|
#7
|
||||
|
||||
Quote:
Quote:
"can create thread" "can vew posts" "can edit other peoples posts" In other words the forumpermissions are generic things which are then set on individual forums via the usergroups. They are NOT specific things like "can be viewed by silver" Code:
mysql> select * from forumpermission limit 5; +-------------------+---------+-------------+------------------+ | forumpermissionid | forumid | usergroupid | forumpermissions | +-------------------+---------+-------------+------------------+ | 174 | 2695 | 2 | 528391 | | 76 | 668 | 10 | 0 | | 75 | 135 | 10 | 0 | | 74 | 2 | 10 | 716815 | | 171 | 353 | 8 | 0 | +-------------------+---------+-------------+------------------+ 5 rows in set (0.01 sec) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|