Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
phpscript, where to put it?
  • Posted: 03.08.2005, 06:50
     
    armsja
    rank:
    Freshman Freshman
    registered:
     April 2003
    Status:
    offline
    last visit:
    03.08.05
    Posts:
    29
    I have a simple PHP script that I want to use that tracks IP's. I think long time ago someone mentioned that I need to put additional code in the theme.php file under the current theme.



    What this script does it writes the ip's to a ip.txt file on the server.
  • Posted: 03.08.2005, 08:04
     
    MACscr
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    10.01.08
    Posts:
    1631
    Id add the code to the pnAPI.php file in your includes directory. Thats the best way to get the code to run on every single page.
  • Posted: 04.08.2005, 01:40
     
    armsja
    rank:
    Freshman Freshman
    registered:
     April 2003
    Status:
    offline
    last visit:
    03.08.05
    Posts:
    29
    IP: 68.98.230.29 - DATE: Wednesday 03 August 13:41:04

    Works great! Thanks!

    Much love to ya for your help. I feel like a heel asking for help, I just couldn't get the correct search pattern to find the answer on my own.


    This site rocks!
  • Posted: 04.08.2005, 08:46
     
    MACscr
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    10.01.08
    Posts:
    1631
    I would also recommend using the statistics module, not sure where its available these days, but if u need a copy, pm me and i will try and send u one.

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula