PDA

View Full Version : Hook Locations


dcpaq2xx
12-08-2005, 05:17 PM
Group,

Im trying to create my own plugin for the Default check [x] Remember Me?hack out of trial and error, and I am just wondering what hook location this would go to since the code is modified in the nav bar template of each theme.

<input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />
I have no idea as I dont even see templates or themes anywhere in the Hook Location drop down menu.

Could someone help me out with this and possibly share some pointers or tips with me on creating plugins?

Thanks

Doug

Andreas
12-08-2005, 05:23 PM
global_start

$vbulletin->templatecache['navbar'] = str_replace('id=\"cb_cookieuser_navbar\"', 'id=\"cb_cookieuser_navbar\" checked=\"checked\"', $vbulletin->templatecache['navbar']);

dcpaq2xx
12-08-2005, 05:41 PM
Thanks Andreas worked like a charm.

How did you know that the code needed to be changed from the original code?

Is there somewhere that I can read up on this stuff that will show me examples of how to do this stuff?

I just dont see any documentation on this stuff anywhere.

Doug