mferguson
06-06-2004, 11:55 AM
I have variations of left side bars working well in most of my site but am trying to figure out how to deal with the template calls in a couple of areas that are a little different from what I've seen documented. For example in /forums/profile.php the calls that pull the template are:
construct_usercp_nav('buddylist');
eval('$HTML = "' . fetch_template('modifylist_removeuser') . '";');
eval('print_output("' . fetch_template('USERCP_SHELL') . '");');
Typically the way you would replace this would be to use something like:
eval('$HTML = "' . fetch_template('FORUMHOME') . '";');
print_portal_output($home, $HTML);
In this case though the original vBulletin code is utlizing the $HTML variable so doing it again with my code would overwrite the variable and likely lose information that would have been passed to the USERCP_SHELL template.
Can anyone recommend how best to resolve this?
Thanks for your help!
Mark
[/PHP]
construct_usercp_nav('buddylist');
eval('$HTML = "' . fetch_template('modifylist_removeuser') . '";');
eval('print_output("' . fetch_template('USERCP_SHELL') . '");');
Typically the way you would replace this would be to use something like:
eval('$HTML = "' . fetch_template('FORUMHOME') . '";');
print_portal_output($home, $HTML);
In this case though the original vBulletin code is utlizing the $HTML variable so doing it again with my code would overwrite the variable and likely lose information that would have been passed to the USERCP_SHELL template.
Can anyone recommend how best to resolve this?
Thanks for your help!
Mark
[/PHP]