I'm trying to have my product add a link to the User CP navigation via template.
I have a plugin hooked to usercp_nav_start:
PHP Code:
$cells[] = 'op_seatmap_editseats';
I call
PHP Code:
construct_usercp_nav('op_seatmap_editseats');
in my added page. It generates the navclass correctly if I print_r. However, because I'm pulling in the additional links before this code gets executed my td class is blank.
I have a plugin hooked to global_start which fetches the template:
PHP Code:
eval('$template_hook[usercp_navbar_bottom] .= "' . fetch_template('op_seatmap_usercpnav') . '";');
I needed to do this so it would execute on all pages under the User Control panel, but again, because it construct_usercp_nav() hasn't been executed I'm getting a blank class. Where is the right place to call my fetch_template for the User CP Nav template?
--------------- Added [DATE]1249771721[/DATE] at [TIME]1249771721[/TIME] ---------------
Well, I'm an idiot. I hooked the template fetching to usercp_nav_complete and that seems to work.