PDA

View Full Version : Left side bars...continued


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]

Brian
06-06-2004, 12:19 PM
Just change the two places you see $HTML in the new code that you'll be adding/replacing with $PORTALHTML (or just about anything really) and that should do the trick. :)

Our Sponsors
 

mferguson
06-07-2004, 01:40 AM
Brian,
Thanks for the help. I believe I have it working now. Thanks again!

Mark