The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I am trying to add a javascript to run during user registration. I need to run it once for each registration page that comes up. Looking at how things work, it appears that the best thing to do would be to use the plugin hooks and add code there. In reading about using hooks, it states that only php code is allowed.
So, is there a way to code the javascript inside the php code? Or is plugins the wrong way to do this, and if so how can I accomplish this? Thanks for any help! |
|
#2
|
|||
|
|||
|
In your plugin, use:
PHP Code:
|
|
#3
|
|||
|
|||
|
Thank you. That worked!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|