And after 11 months...
Quote:
While everyone else wants to see all sorts of integration between the two, I believe this is the first step to making those things happen.
|
has not come true.
I spent (wasted) several hours today getting the headinclude, header, navbar, and footer templates to load from within Coppermine templates. I added a
str_replace() which goes through and adds the correct directory names on everything so that the navbar and headers all work regardless of where coppermine is installed.
But now I am hitting the roadblock that by including global.php (and by inference, init.php), Cookies are already being defined so you cannot login to Coppermine. I don't know another sane way to get the templates.
I've thought of writing an installer that grabs the templates and re-saves them as HTML files. I've thought of trying to destroy/unset all of the variables set by global.php/init.php. I've thought of trying to grab the template some other way (looking at fetch_template() tells me that this is trickier than I am expecting).