jan Posted March 26, 2008 Report Share Posted March 26, 2008 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! Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted March 26, 2008 Report Share Posted March 26, 2008 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 pagesinclude($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. Quote Link to comment Share on other sites More sharing options...
jan Posted March 26, 2008 Author Report Share Posted March 26, 2008 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! Thanks a lot :!: 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.