jimflack Posted February 23, 2009 Report Share Posted February 23, 2009 In the histories.php page I am asked to fill in the following line (a path)$logstring = "<a href=\"/path_to_your_history_folder/this_file_name\">Your Title Here</a>";writelog($logstring);preparebookmark($logstring);What is the function of the logstring please (it may help me understand better what to put) ??.do I put:-$logstring = "<a href=\"/http://www.flackgenealogy.com/newtng/histories/tree618J_FlackBaxter.php\">James Flack and Ann Baxter - Tree618J</a>";or is shorter url required ?As you can see by the full url - newtng is a sub folder in the main site and histories is a sub folder of newtng.I just want to make sure its set up right Thanks for any help. Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted February 24, 2009 Report Share Posted February 24, 2009 In the histories.php page I am asked to fill in the following line (a path)$logstring = "<a href=\"/path_to_your_history_folder/this_file_name\">Your Title Here</a>";writelog($logstring);preparebookmark($logstring);What is the function of the logstring please (it may help me understand better what to put) ??.do I put:-$logstring = "<a href=\"/http://www.flackgenealogy.com/newtng/histories/tree618J_FlackBaxter.php\">James Flack and Ann Baxter - Tree618J</a>";or is shorter url required ?As you can see by the full url - newtng is a sub folder in the main site and histories is a sub folder of newtng.I just want to make sure its set up right Thanks for any help.Jim,The function of the logstring is to write an entry in your TNG access log, displayed by showlog.phpYou should be able to use a relative URL for the file you are creating in relation to where your TNG scripts are installed. So if TNG is in newtng, then the URL would be$logstring = "<a href=\"histories/tree618J_FlackBaxter.php\">James Flack and Ann Baxter - Tree618J</a>"; Quote Link to comment Share on other sites More sharing options...
jimflack Posted February 24, 2009 Author Report Share Posted February 24, 2009 Jim,The function of the logstring is to write an entry in your TNG access log, displayed by showlog.phpYou should be able to use a relative URL for the file you are creating in relation to where your TNG scripts are installed. So if TNG is in newtng, then the URL would be$logstring = "<a href=\"histories/tree618J_FlackBaxter.php\">James Flack and Ann Baxter - Tree618J</a>";So simple - Thanks very much Ken, your prompt help is very much appreciated Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.