visitor tracking in wcms and 4images
visitor tracking in wcms and 4images
hallo,
auf meiner seite läuft neben wcms 4images als galerie-system. gibt es irgend eine einfache möglichkeit des vts auch in 4images einzubinden, so dass die möglichkeit bestehen würde alle statistiken global über die gesamte seite auswerten zu können!??
schonmal danke für eure hilfe,
bis dann
jk
auf meiner seite läuft neben wcms 4images als galerie-system. gibt es irgend eine einfache möglichkeit des vts auch in 4images einzubinden, so dass die möglichkeit bestehen würde alle statistiken global über die gesamte seite auswerten zu können!??
schonmal danke für eure hilfe,
bis dann
jk
Last edited by jkn on Mon 20. Sep 2004, 11:15, edited 1 time in total.
Hey folks,
i’ve get working pphlogger -> http://www.phpee.com with wcms and 4images. If someone is interresting I can post an short manual. The advantage of pphlogger is, that you can show many statistics in the frontend of wcms.
by and sorry for my bad english
jk
i’ve get working pphlogger -> http://www.phpee.com with wcms and 4images. If someone is interresting I can post an short manual. The advantage of pphlogger is, that you can show many statistics in the frontend of wcms.
by and sorry for my bad english
jk
visitor tracking in wcms and 4images
oki... but i'm use this only for experimental...
add first .. a frontend demo screen and download of the package are under this url:
http://www.digimade.de/index.php?id=14,31,0,0,1,0
two screenshots from the backend are also located under this url!
this short tut is based on an articel from vano @ 4homepages:
http://4homepages.de/forum/viewtopic.php?t=7540
a) 4images part
1. Backup these files 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
2. Download modified package for pphlogger v2.2.5
3. Unzip it and upload all files into your favorite dir.
4. Edit config.inc.php There are 2 new settings for 4images.
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:
6. Login into to your pphlogger with your username (not admin panel), go to "settings" and redownload pphlogger.js file, replace your old one.
7. Open /includes/page_header.php
Find:
add after:
8. Open /templates/<yourtemplate>/header.html or footer.html, the one where u add loggin script.
replace your loggin script with this one:
Adopt your settings ...
b) wcms part
for user logging in wcms open index.php & find:
add before:
for show the log's in frontend .. create a new articel an add this html-code as example:
this will show a table like this:
i'm very happy when anyone can integrate this in the wcms-backend area!
i hope i can help you & sorry for my bad english...
by
jkn
p.s. read the pphlogger docu for integrate your own "Short query" in pphlogger admin area
for example:
add first .. a frontend demo screen and download of the package are under this url:
http://www.digimade.de/index.php?id=14,31,0,0,1,0
two screenshots from the backend are also located under this url!
this short tut is based on an articel from vano @ 4homepages:
http://4homepages.de/forum/viewtopic.php?t=7540
a) 4images part
1. Backup these files 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
2. Download modified package for pphlogger v2.2.5
3. Unzip it and upload all files into your favorite dir.
4. Edit config.inc.php There are 2 new settings for 4images.
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:
Code: Select all
ALTER TABLE `pphl_xxxxx_logs` ADD `user_id` MEDIUMINT( 8 ) NOT NULL;
ALTER TABLE `pphl_xxxxx_logs` ADD `user_name` VARCHAR( 255 ) NOT NULL;
6. Login into to your pphlogger with your username (not admin panel), go to "settings" and redownload pphlogger.js file, replace your old one.
7. Open /includes/page_header.php
Find:
Code: Select all
"site_name" => $config['site_name'],
Code: Select all
"current_user_id" => $user_info['user_id'],
"current_user_name" => ($user_info['user_level'] == GUEST) ? $lang['userlevel_guest'] : addslashes($user_info['user_name']),
replace your loggin script with this one:
Code: Select all
<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 your settings ...
b) wcms part
for user logging in wcms open index.php & find:
Code: Select all
<!--
phpwcms | open source web content management system
Code: Select all
<script language="JavaScript" type="text/javascript" src="pphlogger.js"></script>
<noscript><img alt="" src="http://your_own_pfad/pphlogger/pphlogger.php?id=username_here&st=img"></noscript>
Code: Select all
<body>
<table width="60%" border="0">
<tr>
<td><p> </p>
<p>description:<br>
</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>hits:</td>
<td>zeigt alle Hits an</td>
<td><strong>
<script language="JavaScript" type="text/javascript" src="http://your_own_pfad/pphlogger/showhits.php?id=username_here&st=js&type=hits"></script>
</strong></td>
</tr>
<tr>
<td>pageviews:</td>
<td>zeigt alle Pageimpressions an<br></td>
<td><strong>
<script language="JavaScript" type="text/javascript" src="http://your_own_pfad/pphlogger/showhits.php?id=username_here&st=js&type=pageviews"></script>
</strong></td>
</tr>
<tr>
<td>today: </td>
<td>zeigt heutige Hits an<br></td>
<td><strong>
<script language="JavaScript" type="text/javascript" src="http://your_own_pfad/pphlogger/showhits.php?id=username_here&st=js&type=today"></script>
</strong></td>
</tr>
<tr>
<td>todayviews:</td>
<td>zeigt heutige Pageimpressions an<br></td>
<td><strong>
<script language="JavaScript" type="text/javascript" src="http://your_own_pfad/pphlogger/showhits.php?id=username_here&st=js&type=todayviews"></script>
</strong></td>
</tr>
<tr>
<td>yesterday:</td>
<td>zeigt gestrige Hits an<br></td>
<td><strong>
<script language="JavaScript" type="text/javascript" src="http://your_own_pfad/pphlogger/showhits.php?id=username_here&st=js&type=yesterday"></script>
</strong></td>
</tr>
<tr>
<td>yesterdayviews:</td>
<td>zeigt gestrige Pageimpressions an<br></td>
<td><strong>
<script language="JavaScript" type="text/javascript" src="http://your_own_pfad/pphlogger/showhits.php?id=username_here&st=js&type=yesterdayviews"></script>
</strong></td>
</tr>
<tr>
<td>month:</td>
<td>zeigt Hits dieses Monats an<br></td>
<td><strong>
<script language="JavaScript" type="text/javascript" src="http://your_own_pfad/pphlogger/showhits.php?id=username_here&st=js&type=month"></script>
</strong></td>
</tr>
<tr>
<td>monthviews:</td>
<td>zeigt Pageimpressions dieses Monats an<br></td>
<td><strong>
<script language="JavaScript" type="text/javascript" src="http://your_own_pfad/pphlogger/showhits.php?id=username_here&st=js&type=monthviews"></script>
</strong></td>
</tr>
<tr>
<td>onlineusr:</td>
<td>zeigt aktuell anwesende Besucher an<br></td>
<td><strong>
<script language="JavaScript" type="text/javascript" src="http://your_own_pfad/pphlogger/showhits.php?id=username_here&st=js&type=onlineusr"></script>
</strong></td>
</tr>
</table>
this will show a table like this:
i'm very happy when anyone can integrate this in the wcms-backend area!
i hope i can help you & sorry for my bad english...
by
jkn
p.s. read the pphlogger docu for integrate your own "Short query" in pphlogger admin area
for example:
Code: Select all
id
image_id
cat_id
hey pappnase,
un wo genau liegt das problem?? was für ne fehlermeldung bekommst du? Sind die einträge im backend des pphloggers bei „short query:“ gesetzt?? -> siehe url-handling der docu!
Ich hab den weg über die index.php gewählt, da der aufruf des skriptes am anfang der seite erfolgen muss, eh irgend ein html-code ausgegeben wird. Über den header der templates sollte es evtl. auch funzen.
jkn
un wo genau liegt das problem?? was für ne fehlermeldung bekommst du? Sind die einträge im backend des pphloggers bei „short query:“ gesetzt?? -> siehe url-handling der docu!
Ich hab den weg über die index.php gewählt, da der aufruf des skriptes am anfang der seite erfolgen muss, eh irgend ein html-code ausgegeben wird. Über den header der templates sollte es evtl. auch funzen.
ByPlease make sure, the code is definitely placed at the top of your script/page! As PowerPhlogger sets cookies each time a visitor enters or reloads your pages, it's not possible to call pphlogger.php after some other output.
If you do not place this code correctly, you would get the following error (unless you set an output_buffering value in your php.ini):
Warning: Cannot add header information - headers already sent by ...
jkn
@jkn:
Wesentlich interessanter finde ich es, wie man 4Images unter phpWCMS so weit integrieren, wie auf deiner Homage geschehen.
Wesentlich interessanter finde ich es, wie man 4Images unter phpWCMS so weit integrieren, wie auf deiner Homage geschehen.
Rainer G. aus H.
http://www.BunteReisebilder.de
My phpWCMS-projects:
http://www.gnuelps.de
http://qvpage.gnuelps.de
http://www.BunteReisebilder.de
My phpWCMS-projects:
http://www.gnuelps.de
http://qvpage.gnuelps.de
For the reason that the development for pphlogger is exposed i looked for an alternative some weeks ago. I found http://bbclone.de/ it is not comparable with pphlogger, but it is simple to use and very fast. The implementation is similar to the implementation of pphlogger either you enhance the index.php or you insert images which calls an counter php script.
Best regards
Wolfgang
Best regards
Wolfgang