The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to edit customfield for plugin
Hi,
We used to do something like this in vb3.x <hookname>profile_complete</hookname> PHP Code:
Any help is appreciated. Regards, |
#2
|
||||
|
||||
It would work if you then preregister the array $customfields for use in the template you are going to use them in.
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide |
#3
|
|||
|
|||
Quote:
Can you please explain more? In cellarius article he is talking about forumhome that we add our template to it I have no problem with that. What i want to do is to add more options to user options and not in my template so the customfields array should be there in profile_copmlete or profile_start hook am realy Regards, |
#4
|
||||
|
||||
cellarius is just giving examples in his tutorial. If you need to use variable $my_variable in template USERCP_SHELL, then you would write:
PHP Code:
|
#5
|
|||
|
|||
Thanks again Lynne
I will try it .. Regards, |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|