1
potamkin
Xoops + Power Phlogger
  • 2004/10/1 7:43

  • potamkin

  • Just popping in

  • Posts: 4

  • Since: 2004/9/30


Hi!

I installed Power Phlogger to monitor my web stats. There is in the installation manual a line that i should add to my " documents.
Something like this:




Ofcourse I replaced addres line to match my propertis and added this to mainfile.php at the bottom. And after this I only see a blank screen entering my website...

Anybody know whats wrong?

Thanks in advance.

Michael





2
Mithrandir
Re: Xoops + Power Phlogger

Why on earth did you add it to the mainfile.php? mainfile.php is not for outputting data to the screen.

Add it to your theme's theme.html for it to show up on all pages

Also read this

3
carnuke
Re: Xoops + Power Phlogger
  • 2004/10/1 9:45

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


The recommended place for this js is right at the bottom of the theme.html file.

4
potamkin
Re: Xoops + Power Phlogger
  • 2004/10/4 15:59

  • potamkin

  • Just popping in

  • Posts: 4

  • Since: 2004/9/30


Thanks for reply.

But still no luck....
I added the line to theme.html at the bottom in the body section but it still does'nt count a thing

My theme.html file looks like this

______________________________________________________________












<{$xoops_sitename}>-<{$xoops_pagetitle}>




<{$xoops_module_header}>




























<{if $xoops_isuser}>  Hello <{$xoops_uname}> !<{else}>






<{/if}>
<{if $xoops_isuser}> <{else}>



<{/if}>

  










src="<{$xoops_imageurl}>images/bot_cat_left.gif"
border="0" />
background="<{$xoops_imageurl}>images/bot_cat_bg.gif"> src="<{$xoops_imageurl}>images/bot_cat_right.gif"
border="0" />




<{if $xoops_showrblock == 1}>

<{/if}>




<{foreach item=block from=$xoops_lblocks}>
"><{$block.title}>

<{$block.content}>

<{/foreach}>

















<{if $xoops_showcblock == 1}>









<{foreach item=block from=$xoops_ccblocks}>




<{$block.title}>

<{$block.content}>

<{/foreach}>

<{foreach item=block from=$xoops_clblocks}>




<{$block.title}>

<{$block.content}>

<{/foreach}>

<{foreach item=block from=$xoops_crblocks}>




<{$block.title}>

<{$block.content}>

<{/foreach}>

<{/if}>

<{$xoops_contents}>













src="<{$xoops_imageurl}>images/bot_cat2_left.gif"
border="0" />
background="<{$xoops_imageurl}>images/bot_cat2_bg.gif"> src="<{$xoops_imageurl}>images/bot_cat2_right.gif"
border="0" />

<{foreach item=block from=$xoops_rblocks}>
"><{$block.title}>

<{$block.content}>

<{/foreach}>
















Copyright Š 2003
by your company   |  <{$xoops_footer}>  |  

Design by 7dana.com











src="<{$xoops_imageurl}>images/bot_cat_left.gif"
border="0" />
background="<{$xoops_imageurl}>images/bot_cat_bg.gif"> src="<{$xoops_imageurl}>images/bot_cat_right.gif"
border="0" />





<{if $xoops_isadmin != 1}>

<{/if}>






____________________________________________________________

Whats wrong?

Thanks in advance for any help.

Michael

5
kerrysl
Re: Xoops + Power Phlogger
  • 2004/10/27 6:29

  • kerrysl

  • Just popping in

  • Posts: 21

  • Since: 2003/9/9 6


Did you get this working or not?

I use PPHLogger on several sites and wanted it on my XOOPS one as well. What I did was create a smarty tage for the Logger code in header.php like so;
// PPHLogger insert code for template
    
$xoopsTpl->assign('xoops_pphlogger','');


All of that code works best on one line.

Then in theme.html I just added;
head>
<
body background="<{$xoops_imageurl}>white16.jpg">
<{
$xoops_pphlogger}>


just after the body tag as you can see. This is working for me. I found that using an absolute path for the JS file to be useful because you don't know from what directory your header and theme files are going to be called.

One gotcha to watch out for. Did you upload the pphlogger.js file to the XOOPS root directory? It won't work without the JS file being in place.

Is there a way to get the PHP version (PHP+JS) rathen than just the JS. I don't know how we can insert PHP into the final page output. I run this site on the same server as the PPHLogger script so I would prefer to use PHP+JS so that I can log search engine spiders. On one of my other sites I do this which is easy because all of the public pages are .php files.

Login

Who's Online

252 user(s) are online (50 user(s) are browsing Support Forums)


Members: 0


Guests: 252


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits