The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Profile edit userid
I am wanting to create a script that will run on a hidden (hidden to user, but not admin) field when an admin updates a users profile. What variable would I use to get the profile users id instead of the admin's id that is editing the profile?
$vbulletin->userinfo['userid'] is for the user that is doing the editing right? EDIT: Also should I use the profile_updateprofile hook or the userdata_postsave hook? Again only admins will be able to edit this custom profile field. I have a similar script that processes this field on registration. This field can be edited only on the registration page by the user. I don't want the scripts to overlap and run over each other. |
#2
|
|||
|
|||
I am using the useradmin_update_save hook to trigger the plugin after an admin edits the users custom profile field.
However it doesn't seem to be triggering the hook. I confirmed the hook was in user.php inside the admincp folder but cannot figure out why it isn't triggering or how to further debug why it isn't triggering. Anyone have any tips? |
#3
|
|||
|
|||
If you would like programming help at this level, you need to provide the code you are working with, otherwise it is too time consuming to figure out exactly what you are doing and all anyone could provide is best guesses. Although, I think I understand where you are going with this code, spending time answering all your questions benefits very few members on the board -- since there are no examples.
Normally, I would just not reply to the question, but I wanted you to understand why you might not receive any replies. If you care to re post with your uncompleted code, I will take another look at what you are asking. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|