Jump to content
TNG Community

histories/historiestemplate.php


jimflack

Recommended Posts

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.

Link to comment
Share on other sites

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.php

You 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>";

Link to comment
Share on other sites

Jim,

The function of the logstring is to write an entry in your TNG access log, displayed by showlog.php

You 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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...