The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Would this work?
As in, be possible to make, be secure and be a good idea? Because I have an idea that would require both a custom profile field and an if statement, and it seems like a clever way to allow users to define who can access their profile.
What it would do is add an if statement into their profile which checks if those accessing the page are of a group the individual user defined in a custom profile field. For example, something like: <if condition=[insert code for usergroup identification here] Show content else whatever or something, and would use something like $post[fieldX] with X having the usergroup ids allowed to access their profile (of course, it would still allow the admin to access the profiles) such as allowing users to decide if members, mods, custom usergroups, guests etc could view their own profile. Now, I'm sure the modification I am already using has this for friends/totally private/everyone settings, but would allowing a user to define usergroups able to access his/her profile other than the admin be a good idea, or secure, or helpful? |
#2
|
|||
|
|||
PHP Code:
|
#3
|
||||
|
||||
It'd probably be smarter to use a plugin and then return a permission error, rather than having to deal with entire template-sized conditionals.
|
#4
|
|||
|
|||
My way was the really basic way but Kirk is right, it would be smarter to use a plugin
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|