Quote:
Originally Posted by Lancerforhire
A plugin from my paid registration mod (hook is parse_templates):
PHP Code:
if (in_array(THIS_SCRIPT, array('register', 'payments'))) { $template_hook['headinclude_javascript'] .= vB_Template::create('lancerforhire_paid_registration_head_include_script')->render(); }
The template lancerforhire_paid_registration_head_include_scrip t for reference:
HTML Code:
<vb:if condition="!empty($vboptions['lancerforhire_paid_registration_jquery'])">
<script type="text/javascript" src="{vb:raw vboptions.lancerforhire_paid_registration_jquery}"></script>
</vb:if>
<script type="text/javascript">
<!--
$(document).ready(function() {
if (THIS_SCRIPT == 'register') {
$('.pre_registration_description').removeClass('hidden');
} else {
$('.post_registration_description').removeClass('hidden');
}
});
// -->
</script>
|
Thank you so much for the reply. I'm almost there. Here's what I got ; I want to use this hook:
Code:
{vb:raw template_hook.forumhome_above_forums}
In a CMS html widget. I then created this plug in :
Code:
if (in_array(THIS_SCRIPT, array('index'))) {
$template_hook['forumhome_above_forums'] .= vB_Template::create('vbcms_widget_static_page')->render();
}
With product: vBulletin
hook location: Global Start
Execution order: 5
But when I place that hook in the widget , the output is still:
Code:
{vb:raw template_hook.forumhome_above_forums}
What am I missing?? Any information will be incredibly useful.

Thanks.
P.S.: I can change the hook that is going to be used. Maybe I need to create a new hook to use in the widget?