Jump to content
TNG Community

genlog.txt


jan

Recommended Posts

Could someone help me out on the following questions:

1. On my website I added some pages in code php, which are not in the standard TNG package. What should I do to add these pages to my genlog.txt-file?

2. Is it possible to add to the genlog.txt-file links mentioned on my index.php file? If yes, how?

Thanks in advance for any help!

Link to comment
Share on other sites

Could someone help me out on the following questions:

1. On my website I added some pages in code php, which are not in the standard TNG package. What should I do to add these pages to my genlog.txt-file?

2. Is it possible to add to the genlog.txt-file links mentioned on my index.php file? If yes, how?

Thanks in advance for any help!

Jan,

In order to write entries to the log, you need the following lines in your user created pages

include($cms[tngpath] . "log.php" );

writelog( "<a href=\"/path_to_your_history_folder/this_file_name\">Your Title Here</a>" );

If you used the historytemplate.php to create your user pages, then you need to modify the information in the writelog line above to match the url and page title.

Link to comment
Share on other sites

Thanks Ken,

With your hint and after some trials I've got it fixed. I introduced in my php-script:

include($cms[tngpath] . "log.php" );

$showname_url = getURL( "naam", 1 );

writelog( "<a href=\"$showname_url\">$text[naamtitel]</a>" );

and it works! :D

Thanks a lot :!:

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