I am using cnstats for tracking, and need to put the code into my b2evolution blog, and for some reason when I put it in the _main.php like this:
include "/usr/home/tabitha/public_html/jonstern/cnstats/cnt.php";
?>
it brings up some mysql errors, and won't let certain things access the database correctly
here is the page I am trying to put it in...any ideas on how to do this without getting those errors? i know I probably have to tell it to grab that file another way, but I am not sure how
Code:
disp('name', 'htmlhead');
arcdir_title( ' - ', 'htmlhead' );
last_comments_title( ' - ', 'htmlhead' );
profile_title( ' - ', 'htmlhead' );
single_cat_title( ' - ', 'htmlhead' );
single_month_title( ' - ', 'htmlhead' );
single_post_title( ' - ', 'htmlhead' );
stats_title( ' - ', 'htmlhead' );
?>
'."\n";
break;
case 'arcdir':
echo ''."\n";
break;
}
?>
!!!!!!!!!!!I AM TRYING TO PUT THE CNSTATS CODE RIGHT HERE!!!!!!!!
|
|
|
|
display_if_empty(); // Display message if no post
if( isset($MainList) ) while( $Item = $MainList->get_item() ) {
locale_temp_switch( $Item->locale ); // Temporarily switch to post locale
$MainList->date_if_changed(); // display post date if it changed
$Item->anchor(); // Anchor for permalinks to refer to
?>
title(); ?>

issue_time();
echo ', ', T_('Categories'), ': ';
$Item->categories();
echo ', ';
the_wordcount();
echo ' ', T_('words');
?>
content();
link_pages("Pages: ","","number");
?>

feedback_link( 'comments' ) // Link to comments ?>
feedback_link( 'trackbacks', ' • ' ) // Link to trackbacks ?>
feedback_link( 'pingbacks', ' • ' ) // Link to trackbacks ?>
trackback_rdf() // trackback autodiscovery information ?>