Customized Logs

From Genwiki

Revision as of 18:15, 30 September 2006 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If you are not comfortable with html and php editing, this page may not be for you


Overview

This TNG modification will change the way site accesses are logged.

  • It will include additional information indicating where the access was linked from (the referrer info)
  • It will split the log into two files: one for browsers and one for crawlers
  • It will enhance the filter options available through the ADMIN->SETUP->Log Settings. Filtering based upon Host IP Address and logged in User Descriptions will be added to the existing filter on Host Name.

Rev 1.0 Sep 30, 2006 - initial release


Requirements

  1. A working TNG installation - see The Next Generation of Genealogy Sitebuilding
  2. A backup of your TNG files
    • showlog.php
    • log.php


Side Effects

  1. As with any modification to a TNG file, this modification will get lost during your next TNG version update and you will need to re-implement the mod.


TNG Installation Contents

The following zip file contains the necessary files to allow the addition of this feature.

  • The zip file Customized Logs Rev 1.0.zip contains:
    • showbotlog.php - this will frame the crawler log file (fashioned after showlog.php)
    • botlogxml.php - this file extracts and prints the crawler log file, called from showbotlog.php, fashioned after logxml.php
    • log.php a modified TNG 6.0.0 file
    • showlog.php - a modified TNG 6.0.0 file
    • botgenlog.txt - a blank crawler log file


Installation for TNG Version 6

  • IF you are not running TNG version 6.0.0, or you have modified either log.php or showlog.php, DO NOT proceed. You will lose any modifications you have made to those files.
  1. download this zip (Customized Logs Rev 1.0.zip)
  2. unzip it, examine the contents
  3. copy the "freecap" folder to the main TNG folder
    • make sure it is readable and executable by all
  4. verify that all the ".ht****" files and the freecap.php file are in the new "freecap" folder
    • ensure they are all readable
    • MAC users - please note that the .ht*** files are reported to be hidden files and may not be visible. The program "Transfer" has been recommended to assist with this.
  5. copy the applicable captcha_text.php files to your language folders.
    • for example, copy the /./English/captch_text.php to the ./English folder
  6. copy the TNG_captcha.php file to the base TNG folder
  7. check it out


Customizations

In the event of a problem with this modification

  1. copy your backup log.php and showlog.php files to your base TNG folder
    • all should be well now
  2. you may also delete the botlogxml.php, showbotlog.php, and botgenlog.txt files


Support

  1. You're sort of on your own... If you have a specific question, or feel some additional info in the above would help others, feel free to contact me directly. Mail me here
    • Please post suggestions, or your own flavour of this mod to the forum or list
Personal tools