, Guest!
Already a Member? Login or Register.





Menu



Clients



Showcase



Rate FlexCMS

ScriptSearch.com Rating:

Hotscripts Rating
Excellent!
Very Good
Good
Fair
Poor



FlexCMS eNews

To subscribe to our enewsletter, please enter your email address in the box below and click the "Subscribe" button.


Note:  You may easily remove yourself from the newsletter list at any time by following the instructions included with every mailing.

LATEST DEVELOPMENT NEWS:  FlexCMS 2.5 has been released!!! Click here to read the official announcement!

Home > FlexCMS Support Forum > User Help > General Support Requests > best place for a counter

FlexCMS Support Forum


best place for a counter
Started October 9, 2007 @ 9:25pm by welby
Post Message 
welby


Posts: 14
 
best place for a counterOctober 9, 2007 @ 9:25pm
hello. where is the best place to insert a counter so it tracks all pages. i would like to know where to place the code. thanks in advance.

welbySmile
 

Last Edit: October 9, 2007 @ 9:26pm by welby
DCSun
Administrator

Posts: 426
 
October 9, 2007 @ 9:57pm
The Site Footer Code box in the Modify Site Preferences section was specifically designed for such applications, so that's a very easy and effective way to add code like a counter to all pages on your site. If you wanted it such that no other user could modify it, you could also add it directly to the template.


David
 
welby


Posts: 14
 
request for assistance with counter codeOctober 23, 2007 @ 9:11pm
Where can I place this counter php code within the template you mentioned earlier. (3rd party php counter)Not having any luck. All of my pages do not have process php checked. So I was hoping to include this in the template.

Heres the code:

$sid="123456";
include("/home/mysite/public_html/traffic/write_logs.php");

template.php or template_info.php? also what line please.

thanks for any suggestions.
welby
 

Last Edit: October 23, 2007 @ 9:12pm by welby
DCSun
Administrator

Posts: 426
 
October 23, 2007 @ 10:18pm
It's template.php. The template_info.php file doesn't contain any of the template, just basic information to identify it in places like the Control Panel's list of templates. Where exactly in template.php depends on the template you're using and if the counter is printing any HTML code into the page. At the very bottom of the file you'll see the } brace that ends the BuildTemplate function, it needs to go somewhere inside that.

The other option is to put it in a block, that would also easily get it on all pages and could be PHP enabled.


David
 
welby


Posts: 14
 
Thank youOctober 23, 2007 @ 10:19pm
David.

Many thanks!

:)
 

Post Message 







All Contents, Code, Scripts and Technologies Copyright 2003-2007 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.09070 seconds.
 

Powered By FlexCMS
Powered By FlexCMS


Valid CSS!