DJ29Joesph
07-03-2009, 06:12 AM
I have a hook that I want to add to the admincp login page. I know I have to use adminfunctions.php. The question I have is I have a hook that usually goes in the navbar near the login and submit buttons. Anyway I'm trying to add the hook and I know I have to use
($hook = vBulletinHook::fetch_hook('hook_name_here')) ? eval($hook) : false;
But the question I have is how do I add it so it is in php? Do I have to do it in php? Mainly, what am I doing wrong?
Heres what I think it is (yes I know I did change hook_name_here):
<!-- submit row -->
<tbody>
<tr>
<td colspan="3" align="center"><div style="float: right">
<?php ($hook = vBulletinHook::fetch_hook('hook_name_here')) ? eval($hook) : false; ?></div>
<input type="submit" class="button" value=" <?php echo $vbphrase['log_in']; ?> " accesskey="s" tabindex="3" />
<?php if ($showoptions) { ?><input type="button" class="button" value=" <?php echo $vbphrase['options']; ?> " accesskey="o" onclick="js_show_options('loginoptions', this)" tabindex="4" /><?php } ?>
</td>
</tr>
</tbody>
<!-- /submit row -->
The main thing I'm changing (or adding) is:
<div style="float: right">
<?php ($hook = vBulletinHook::fetch_hook('hook_name_here')) ? eval($hook) : false; ?></div>
Any help would be great, thanks!
($hook = vBulletinHook::fetch_hook('hook_name_here')) ? eval($hook) : false;
But the question I have is how do I add it so it is in php? Do I have to do it in php? Mainly, what am I doing wrong?
Heres what I think it is (yes I know I did change hook_name_here):
<!-- submit row -->
<tbody>
<tr>
<td colspan="3" align="center"><div style="float: right">
<?php ($hook = vBulletinHook::fetch_hook('hook_name_here')) ? eval($hook) : false; ?></div>
<input type="submit" class="button" value=" <?php echo $vbphrase['log_in']; ?> " accesskey="s" tabindex="3" />
<?php if ($showoptions) { ?><input type="button" class="button" value=" <?php echo $vbphrase['options']; ?> " accesskey="o" onclick="js_show_options('loginoptions', this)" tabindex="4" /><?php } ?>
</td>
</tr>
</tbody>
<!-- /submit row -->
The main thing I'm changing (or adding) is:
<div style="float: right">
<?php ($hook = vBulletinHook::fetch_hook('hook_name_here')) ? eval($hook) : false; ?></div>
Any help would be great, thanks!