• [Integration] PPhlogger v2.2.4/v2.2.5 5 0 5 1
Currently:  

Author Topic: [Integration] PPhlogger v2.2.4/v2.2.5  (Read 71949 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Integration] PPhlogger v2.2.4/v2.2.5
« on: March 28, 2005, 07:54:47 PM »
PPhlogger is a very powerful statistics tool
With this integration u'll be able see your visitors usernames in the PPhlogger's statistics and also you'll be able search by user id or user name in the statistics too.




------------- [ Installation ] -------------

Step 1
Backup these files:
From PPlogger dir:

    pphlogger.php
    dspLogs.php
    config.inc.php
    include/pphlogger.js
    include/loglist.inc.php
    libraries/search_func.lib.php
    mysql/pphl_xxxxx_logs.sql

    [/list]


    From 4images dir:

      includes/page_header.php
      pphlogger.js
      (this file might be located in different place, depence how u call your pphlogger script to log visitors)
      templates/<yourtemplate>/header.html or another template where u add call your pphloogger script
      [/list]

      Step 2
      Download package for your PPhlogger version: v2.2.4 or v2.2.5


      Step 3
      Unzip it and upload all files into pphlogger dir, overwrite the old files.


      Step 4
      Edit config.inc.php There are 2 new settings for 4images.


      Step 5
      If u have not yet install pphlogger, then just install it, all needed db changes will be included in the installation.
      If u have installed it, then add two fields into pphlogger database (execute those commands in your mysql manager):
      NOTE Replace xxxxx with your user ID (not user name, u can find it from ADMIN panel, or from pphlogger database)
      Code: [Select]
      ALTER TABLE `pphl_xxxxx_logs` ADD `user_id` MEDIUMINT( 8 ) NOT NULL;
      ALTER TABLE `pphl_xxxxx_logs` ADD `user_name` VARCHAR( 255 ) NOT NULL;


      Step 6
      Login into to your pphlogger with your username (not admin panel), go to "settings" and redownload pphlogger.js file, replace your old one.


      Step 7
      Open includes/page_header.php
      Find:
      Code: [Select]
        "site_name" => $config['site_name'],

      Insert below:
      Code: [Select]
        "current_user_id" => $user_info['user_id'],
        "current_user_name" => ($user_info['user_level'] == GUEST) ? $lang['userlevel_guest'] : addslashes($user_info['user_name']),


      Step 8
      Open templates/<yourtemplate>/header.html or footer.html, the one where u add pphloger loggin script.
      replace your loggin script with this one:
      Code: [Select]
      <script language="JavaScript">var user_id='{current_user_id}';var user_name='{current_user_name}';</script>
      <script language="JavaScript" type="text/javascript" src="pphlogger.js"></script>
      <noscript><img alt="" src="../log/pphlogger.php?id=81312&st=img&user_id={current_user_id}&user_name={current_user_name}"></noscript>


      Adopt it to your settings

      P.S.
      - when user is online (online time u can set from settings) the username is shows in green color.
      - when user logged out, and continue browse the site, hes username wont be replaced with "Guest" in the logs.
      - when user logged out and then login with different username, the log will show current username.
      « Last Edit: September 22, 2006, 10:29:19 PM by V@no »
      Your first three "must do" before you ask a question:
      Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
      Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

      Offline sullyirl

      • Newbie
      • *
      • Posts: 23
        • View Profile
        • http://www.thenet2k.com
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #1 on: April 03, 2005, 05:41:25 PM »
      I dont get the point of this? I get PPhlogger is a stats tool which records all incoming hits and stuff, but how do users fall into it?

      - Sully

      Offline V@no

      • If you don't tell me what to do, I won't tell you where you should go :)
      • Global Moderator
      • 4images Guru
      • *****
      • Posts: 17.849
      • mmm PHP...
        • View Profile
        • 4images MODs Demo
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #2 on: April 03, 2005, 05:45:45 PM »
      well, as u can see from the screenshot, it shows which user u are looking at on the logs page of pphlogger.
      Without this modification all u can see is visitors who visited, and there is no way of knowing if any of those visitors were logged in members.
      Your first three "must do" before you ask a question:
      Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
      Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

      Offline michi-w.

      • Hero Member
      • *****
      • Posts: 505
        • View Profile
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #3 on: April 16, 2005, 08:17:48 PM »

      Offline V@no

      • If you don't tell me what to do, I won't tell you where you should go :)
      • Global Moderator
      • 4images Guru
      • *****
      • Posts: 17.849
      • mmm PHP...
        • View Profile
        • 4images MODs Demo
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #4 on: April 16, 2005, 10:35:57 PM »
      download what?
      Your first three "must do" before you ask a question:
      Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
      Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

      Offline michi-w.

      • Hero Member
      • *****
      • Posts: 505
        • View Profile
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #5 on: April 17, 2005, 12:28:14 AM »
      Your links was deathlinks:
      Quote
      Step 2
      Download package for your PPhlogger version: v2.2.4 or v2.2.5

      I have pphlogger of my webspace and this is my download source.

      But, have you a simple counter for 4images?

      Offline SirManSir

      • Pre-Newbie
      • Posts: 3
        • View Profile
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #6 on: June 19, 2005, 01:29:59 AM »
      I'm trying to use this mod with my website. I've uploaded and configured everything until the last step. I don't know where to insert the code for my template. Can you help me out? I really want to use this mod but I have no idea where to insert the code.

      I'm using the revolution template by Nova. http://www.4homepages.de/forum/index.php?topic=7521.0

      Offline V@no

      • If you don't tell me what to do, I won't tell you where you should go :)
      • Global Moderator
      • 4images Guru
      • *****
      • Posts: 17.849
      • mmm PHP...
        • View Profile
        • 4images MODs Demo
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #7 on: June 19, 2005, 01:39:17 AM »
      footer.html or header.html
      make sure the code is betwen <body> and </body> tags, and NOT between <head> and </head>
      Your first three "must do" before you ask a question:
      Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
      Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

      Offline michi-w.

      • Hero Member
      • *****
      • Posts: 505
        • View Profile
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #8 on: June 20, 2005, 11:15:53 AM »

      drhtm

      • Guest
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #9 on: June 26, 2005, 01:19:36 PM »
      I love this intergration and I really appreciate it. I've been using now for sometime with no problem.  I especially like the 'mp titles'  so when I hover over each page the user visited, I would know which image they visited by the title.  However, I was curious, is there a way to add a thumbnail of the image instead?  so if they visited an image, and I hover over the link, a thumbnail of the image would appear?  Instead of having to click on the link to visit the image?   

      Offline SirManSir

      • Pre-Newbie
      • Posts: 3
        • View Profile
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #10 on: June 26, 2005, 08:46:57 PM »
      I've tried putting it in header and footer, but no stats appear for me.

      Offline V@no

      • If you don't tell me what to do, I won't tell you where you should go :)
      • Global Moderator
      • 4images Guru
      • *****
      • Posts: 17.849
      • mmm PHP...
        • View Profile
        • 4images MODs Demo
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #11 on: June 26, 2005, 09:10:15 PM »
      I've tried putting it in header and footer, but no stats appear for me.
      this is not a counter, perhaps u should refer the manual that comes with pphlogger.
      Your first three "must do" before you ask a question:
      Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
      Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

      Offline SirManSir

      • Pre-Newbie
      • Posts: 3
        • View Profile
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #12 on: June 27, 2005, 03:31:44 AM »
      I've tried putting it in header and footer, but no stats appear for me.
      this is not a counter, perhaps u should refer the manual that comes with pphlogger.

      I never said it was a counter. I'm not checking the page for an image to appear or anything. I'm trying to get information to show on the statistic page.

      Offline V@no

      • If you don't tell me what to do, I won't tell you where you should go :)
      • Global Moderator
      • 4images Guru
      • *****
      • Posts: 17.849
      • mmm PHP...
        • View Profile
        • 4images MODs Demo
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #13 on: June 27, 2005, 05:32:49 AM »
      ok, then perhaps u should be more specific and describe more what exactly u see and dont see...
      Your first three "must do" before you ask a question:
      Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
      Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

      drhtm

      • Guest
      Re: [Integration] PPhlogger v2.2.4/v2.2.5
      « Reply #14 on: July 10, 2005, 03:55:40 PM »
      great mod

      question,

      why do you have this
      Code: [Select]
      src="../log/pphlogger.php?
      when in the orginal script it has
      Code: [Select]
      src="http://www.XXXXXXX.com/pphlogger/pphlogger.php?
      I'm asking because I want to add more than one site and I orinally added this to my main 4image site but I want to use the orginal pphlogger to log my other sites (both 4images and non-4images).  thanks.