View Single Post
Old 08-09-2005   #1
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default Re: Some php help if you wouldn't mind...pretty easy

Quote:
Originally Posted by JaceXXX
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:






<?php 
$Blog->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(); ?>

<?php echo T_('Permalink') ?> issue_time(); echo ', ', T_('Categories'), ': '; $Item->categories(); echo ', '; the_wordcount(); echo ' ', T_('words'); ?>
content(); link_pages("Pages: ","","number"); ?>
<?php echo T_('Permalink') ?> feedback_link( 'comments' ) // Link to comments ?> feedback_link( 'trackbacks', ' • ' ) // Link to trackbacks ?> feedback_link( 'pingbacks', ' • ' ) // Link to trackbacks ?> trackback_rdf() // trackback autodiscovery information ?>
This is more Sarettah's area but I need to point out that you've left a
* @package evoskins
* @subpackage helsinki
*



It might not be the answer but it's a start.
__________________
Sucks to be you.
Trev is offline   Reply With Quote