The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hack like the vB members area forum access section?
In the vB members area to get customer level access to here and vb.com you need to enter your user. I presume when this is done it simply moves your user from one forum group to another?
Does anyone know of a hack to do this? I want to have a page like in the vb members area where customers can enter their forum user name and it will move them from the "Registered" group to a "Customer" group. Thus granting them access to a customer only forum. At the moment we have to do these changes manually via the vB admin cp, which consumes time. If we had the same system setup as in the vB members area, this would be resolved. Thanks |
#2
|
||||
|
||||
Actually I didnt get the goal?
If I didnt get you wrong, you ask a link in User CP which is visible to ALL users and your users' usergroup will change automatically when they enter their "forum user names" there. It seems that everyforum member will be able to do it as everyone has a "forum user name" so what's the aim to do in the first place? You can just put all users in that special usergroup when they registered, or better, make your registered usergroup "special" by assigning the relevant permissions. The hack would make sense if you wanted *some* of the registered users change their usergroup automatically. Eg. some are provided a password and by entering this password their usergroup would change. (like in vb.com). If this is what you want this algorithm here can help while you are building yours: https://vborg.vbsupport.ru/showthrea...179#post301179 |
#3
|
|||
|
|||
No the form for them to enter their username would be in a hosting control panel, which only customers would have access to anyway. Any customer who needs access at the moment needs to submit a support ticket to us, then we change the group. With this system, they could just login to their hosting control panel, enter the username and get access to the customer only area of our forums.
|
#4
|
||||
|
||||
Quote:
PHP Code:
PHP Code:
Dont forget to create a new template called "usergroup_changed". It will be displayed when their usergroup changes successfully. Enjoy.. |
#5
|
|||
|
|||
Thanks
Is there anyway I can set it like.... http://yoursite.com/forum/misc.php?action=iamacustomer&user=username ? So they don't need to login or whatever after... also is there anyway I can check the refer of the "iamacustomer" to stop anyone just putting the link in their browser? For example if refer = xyz.com OK if not then NOT OK... ? |
#6
|
||||
|
||||
Thats a freaking awesome idea Logician....
I've been thinking about using my extremely basic coding skills to have an advanced members section on my site Thanks for the tips Regards - miSt |
#7
|
||||
|
||||
Quote:
Most people has already set cookies on in the forum settings and if this is the case, they wont need to login when they visit that page. (I assume the username you refer is vb username?) Quote:
Referrer is not a secure enough mainstay as it can easily be manipulated. If you want to secure the dir you have to check another criteria of the visitor which you can count more. I dont know what this would be for your site. But if you still want the referrer check anyway, here is how: edit global.php (in forum dir, not admin dir) right after <?php add: PHP Code:
PHP Code:
Regard my suggestion above.. Enjoy.. @mist: yw but IMO following an URL for usergroup change is not the best solution for you.. Check this solution for making it password/special user profile field based.. Should fit better to your needs.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|