This is a modification to record stats for outgoing link clicks, details page views and attachment downloads. When a member performs the action, their name is shown... for guests the IP address is shown.


To install:
1) upload the file in /classes/ to /classes/ on the server. 
2) upload the file in /modifications/ to /modifications/ on the server. If there isn't such a directory on the server yet, create it.
3) upload the file in /templates/ to templates/yourtemplateset/custom/
4) Edit your member home subwrapper template to link to include <a href="profile.php?custom=yes&TID=downloadstatistics" class="homenav">Visitor Stats</a>
5) If you need to translate CSV output to other languages, add these lanaguage items: 
misc_pageviewed (page viewed)
misc_attachmentdownload (attachment download)
misc_telephoneclick (telephone number click)
6) If you hide telephone numbers on the details page and make people click through to a custom template telephonereveal.tpl to see the phone number, this stats mode will keep track of those clicks.