The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Unbanning Hook
Okay,
Here is what I am looking for. I figure I would ask here since you all should know. Hopefully. I am looking for the hook that would allow me to catch the user before it goes into the check banning process. Basically, there are a few conditions, that if met, the user needs to be unbanned for. So this hook has to be after the gathering of user data, but before it is passed onto the ban check. I thought of using fetch_userinfo() but relised it would check for all users in threads and the like(Unless this is not how fetch_userinfo works) and I don't want that. I only want for the currently logged in user. Currently I have it in the global start, and it sort of works. Viewing initially you will get the ban message, but refreshing it goes away. So this code works, it just needs to be sooner. Any ideas? |
#2
|
||||
|
||||
I don't understand a word
What exactly do you want to achieve? |
#3
|
|||
|
|||
You want to do something when the user gets banned, or when a banned user is trying to login?
|
#4
|
|||
|
|||
Sorry, I thought it was fairly clear. When a banned user is logging in or visiting the site while the session is still active.
So lets say user X is banned a week previous, and he visits the site. If certain conditions are met, I want to run a custom function that unbans that user. I know how to do it, but I don't know where to put it. Like I said, if it is placed in global_start, the user still sees the "You are banned" message initially, upon a refresh or viewing a different page, the message is gone, as it should be since the user is unbanned. Now I suppose I could just make another call to vB_Session::fetch_userinfo but that would seem redundant and I am not totally sure if it would fix the problem. Is it easier to keep it where it is and just recreate the user permissions/settings/info? |
#5
|
|||
|
|||
Not tried it, but i guess you will need to use one of the login_* hook locations.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|