Okay, I think I know what's wrong.
In global.php up towards the top you'll see a whole bunch of function definitions. Add this somewhere in there (I added mine below "Start dovars" and above "start standarderror":
Code:
// ####### Start Save Thread Hack #####
function savethread($title="") {
// This is where you put all the variables that you use in your template
global $header,$footer,$cssinclude,$fivelinks,$forumjump,$timezone,$bbtitle,$hometitle,
$bburl,$homeurl,$copyrighttext,$privacyurl,$contactuslink,$titleimage,$replyimage,$newthreadimage,
$closedthreadimage,$lastvisitdate,$timenow;
makeforumjump();
eval("\$returnval = dovars(\"".gettemplate("savethread")."\");");
return $returnval;
}
And then in your page, you would put this:
Code:
require("global.php");
eval("echo savethread(\"".gettemplate("savethread")."\");");
As I was typing this, I decided to try it out on my test board.
What I did was put the second code snippet into a file called savethread.php, and put it in my /forums/ directory. Then I created a simple template called "savethread", and used some of the standard variables. You can see an example here:
http://www.bronx-bombers.com/testforum/savethread.php
I think that was what you were trying to do, so I hope that helps
-jim
[Edited by JimF on 09-19-2000 at 01:50 PM]