HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


FOOTER.tpl modificaton rules

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#49742 (In Topic #10841)
Avatar

Well-settled

What codes can be used?

I would like to add my web traffic statcode into
footer of the site. Is standard install script code
okay?

Thanks,
CF-
Back to the top
 
Posted
Rating:
#49758

Honoured member

Well I'm not sure what you mean by:
standard install script code
But if you mean you're wanting to place an include to call your own stats program something like:

Code

<?php @include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php'; >

then the answer would be yes.  However, why would you.  Why not just use the built in stats at Admin Zone/Usage/Site Statistics
Back to the top
 
Posted
Rating:
#49760
Avatar

Well-settled

Thanks Chipster!

I'm not sure what that code is, but
I'm speaking of what you get from
statcounter or google where it's
actual script.

Something like…

←-Script starts
then a lot of code is here

←-Script ends

Thanks,
CF-
Back to the top
 
Posted
Rating:
#49778

Honoured member

Pretty much the same thing, just a different script.  Yes you can insert that in to your footer.tpl.  Again, I suggest looking at your Admin Zone / Usage / Site Statistics before doing so.  There's a heck of a lot of stats the OCP already compiles for you, and it could save you some load on your server.  Of course that's just me.  I do understand that we all tend to drift towards stat generators that we are already comfortable with.
Back to the top
 
Posted
Rating:
#49905
Avatar

Well-settled

Thanks Chipster!

And it helps to have more
than one view on what's
happening!

Thanks,
CF-
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: