The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Pre-approval of permissions solution? I'm stuck.
I can't figure out a solution to this issue and was direct here from the vBulletin forums...
We're about to open up our forums to a specific client's user group (about 120+ people). The access will be to a "private" forum we currently have set up. The only way I can give user's permission to the private forum (that I know of) is to adjust thier permission as soon as they sign up... ...but that would obviously cause a delay in their access... and could be discouraging to their participation in the forum. For many of these users, it will be their first time accessing a forum community. I do have a list of all of the groups emails and was planning on telling them all to use that email to sign up. I planning on trying to stay on top of it and going through and give the access as fast as possible.... but obviously, most will have left (and not seen all there is to see in the private forum). So, is there a solution to this issue? It is early, so I can try anything... Is there any way to "pre-allow" permissions to users that register with a specified email address? Or any other solution to giving immediate access? Unfortunately, it is a private client area, so I can't leave it open to the public. working with: vBulletin Version 3.0.7 |
#2
|
||||
|
||||
Easy approach:
- Create a Datastore Record with a comma-separated List of all eMail-Adresses - Load this in register.php - Upon Account activation, explode this list into an array, in_array($useremail, $list) - If true, assign an additional Usergroup that has access rights |
#3
|
|||
|
|||
Thanks... I was scared someone might say that.
I really don't know any coding (I probably should have mentioned that in the original post)... I was just direct here from the main vbulletin site. Actually, I think I understand exactly what you are telling me to do, I just wouldn't even know where to start to actually execute it. Thanks though. |
#4
|
||||
|
||||
[sql]INSERT INTO datastore (title, data) VALUES ('emaillist', 'email1@domain1.com,email1@domain2.com,email3@doma in3.com')
[/sql] In register.php FIND PHP Code:
PHP Code:
PHP Code:
ABOVE that ADD PHP Code:
ABOVE that ADD PHP Code:
Untested, but should work. |
#5
|
|||
|
|||
What the heck... I'll give it a try... Thanks!
|
#6
|
|||
|
|||
Hmm shouldn't that implode be an explode?
|
#7
|
||||
|
||||
/me should call $vbulletin->get_some_sleep() soon ...
Of course it should have been explode() |
#8
|
|||
|
|||
Quote:
I've run a sql query once before, but it was on a different domain, and I believe the hosting company had a tool for it. I'm going through the instruction link now... That is the only part that I'm really flying completely blind on. Thanks. |
#9
|
|||
|
|||
title, data are the column names in the table, and should not be changed.
|
#10
|
|||
|
|||
Thanks... i got it... it is "emaillist" that is the specific name for the datastore.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|