The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Can anyone help with some modcp code?
I'm having trouble with some code and was wondering if someone who is more knowledgeable would be able to help? Here is my situation....
I'm trying to give my mods more editing options in their modcp. In /modcp/user.php I have added this code to try and let them edit the join date of users. PHP Code:
Can anyone help? |
#2
|
||||
|
||||
you have to convert the joindate from the string into a timestamp before you enter it into the DB.
look at admincp/user.php about how they did it |
#3
|
|||
|
|||
Thanks for you reply.
This is all I saw in the update routine of admincp/user.php that looked like they were converting the joindate... PHP Code:
Maybe I'm getting in over my head. For some reason I didn't think vb2's code was this hard for me to figure out |
#4
|
||||
|
||||
yes it's this line, but you have to make sure, the formular of your editfield is exaclty like the one in the ACP.
also remove the => STR form the globalize call, as you will get an array, and not a string then |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|