PowerPhlogger 2.1.4d FAQ

Contents
--------
1.  How do I make my counter visible on my page ?
2.  What's showhits.php for? 
3.  How do I track referers in frames ?
4.  I need to use .php3 or some other extension, not .php.
5.  How do make download-hits visible on my page?

===========================================================================

 1. How do I make my counter visible on my page ?
    ---------------------------------------------------------------------------    
    Make sure you've selected 'visible' in your user settings.
    On the pages you wish to make it visible you need to set the showme variable.
    That's how you do it:

    <script>showme='y'; st='img'</script>
    <script language="JavaScript" src="pphlogger.js"></SCRIPT>
    <noscript>
    <IMG src="http://www.your-domain.com/pphlogger/pphlogger.php?id=phpee_com&showme=y&st=img">
    </noscript>

    If Javascript is disabled, the NOSCRIPT-Tag will run instead of pphlogger.js. In this
    case screen resolution / color will not be logged.

    If you wish to display your counter somewhere else on your page, use showhits.php
    This script will not log your visitors or modify your database. Its only 
    purpose is to show the counter.

    <IMG src="../pphlogger/showhits.php?id=your_username">

    for further information please check the PowerPhlogger documentation:
    http://www.iezzi.ch/phpee/doc.html#visibility
    

 2. What's showhits.php for?
    --------------------------------------------------------------------------- 
    showhits.php makes your counter visible. By calling this script you'll be 
	able to show the following information:
    [type] = hits | pageviews | today | todayviews | month | monthviews

    call it like this:

    <img src="showhits.php?id=your_username"> , or like this:
    <img src="showhits.php?id=your_username&type=[type]"> 

    For further information please check the documentation inside of showhits.php
	or read the PowerPhlogger documentation:
	http://www.iezzi.ch/phpee/doc.html#visibility



 3. How do I track referers in frames ?
    --------------------------------------------------------------------------- 
    edit your pphlogger.js file:
    replace escape(document.referrer)
    with escape(top.document.referrer)



 4. I need to use .php3 or some other extension, not .php.
    ---------------------------------------------------------------------------
    The extension .php is the prefered default extension for all PHP4 versions.
    It is the extension used by the PHP team and Zend.com.
    For this reason, PowerPhlogger comes with this extension.
    The easiest way is to use this extension is to make Apache or your
    webserver parse these as PHP files.  In Apache you need to add a line like:
    
    AddType application/x-httpd-php3 .php
    
    If that is not an option, you can change it by following these three
    steps:
    
    1. Edit config.inc.php and change $phpExt = 'php'; to your new extension.
    2. Rename all the .php files in the whole directory tree of PowerPhlogger
       (including all subdirs) to the new extension.
       Use /upgrade/extchange.php to change all extensions recursively. You
       could also do this manually.
    3. Edit config_location.inc and enter the correct relative or absolute
       path to config.inc.php with the new extension



 5.  How do make download-hits visible on my page?
     ---------------------------------------------------------------------------
     Use showhits.php and call it up through an IMG-Tag, PHP, or JavaScript.
     Check the instructions inside showhits.php and check the samples in the
     PowerPhlogger documentation:
     http://www.iezzi.ch/phpee/doc.html#visibility
     Instead of using type=[type] you specify the download-URL:
     mpdl=/your_url/...
