In Reply To
OK, I must be missing something here.... now it just prints out:
sub { my $output; if ($ENV{SCRIPT_NAME} =~ /nph-build/) { $output = ''; } else { $output = Links::SiteHTML::display('include_login'); } return $output; }
I presume that this means that it isn't being parsed as a script and is being presented as HTML instead. And yes, this is using .shtml pages.[/reply]
The variable you placed in the include_header template should be parsed just like all the other variables in the template. This part shouldn't depend on whether the page is html, shtml, php or whatever. The only reason you would need .shtml files for this code to work would be to parse the <!--#exec cgi="/cgi-bin/log.cgi" --> SSI command.
I installed this plugin and, after some initial troubles, got it working. My main problem was that I had saved the new include_login template as "include_login" and not "include_login.html" (it gave me HTTP 500 errors). Once I changed that, it all worked fine.
I created a Template Global called 'log', and then used this code in the 'include_header.html' template:
Code:
<div id="logbar"> <%log%>
</div>
Of course, I also had to change the paths in the log.cgi file, and the path in the SSI command.
I hope that helps. :-)