Quote:
Originally Posted by Lionel
hi,
I am swapping the register template in a mod I am creating by creating a plugin at register_form_complete:
PHP Code:
$vbulletin->templatecache['register'] = $vbulletin->templatecache['register_mytemplate'];
why can't I get the timer to be active in the new template which is basically a copy of register template plus some additional stuff?
|
I'm not sure if you're talking about the part that stops the submit button from being pressed until the time expires, or just the time check in general. This mod adds the button javascript to $headinclude and adds the form hidden fields to $timezoneoptions, in a plugin that uses register_form_complete and an execution order of 5. So if your replacement uses those [S]and has an execution order > 5,[/S] (Edit: execution order shouldn't matter, template is rendered after that hook location) then you're OK. It could also be something else about your mod, but I wouldn't be able to know without seeing it.