Well, I am cutting and pasting everything. Even the theme name I need to change. So if it is a typo or missing character it can't be mine.
Here is the error code I am getting.
Parse error: syntax error, unexpected $end in /home/blogamer/public_html/wp-content/themes/artificialintelligence/artificialintelligence/functions.php on line 48
------------
Line 48 is the closing tag ?>
Here is the coding from functions.
------
<?php
if ( function_exists('register_sidebar') ) {
register_sidebar( array('before_widget' => '<div class="box">', 'after_widget' => '</div>', 'before_title' => '<h2>', 'after_title' => '</h2>') );
}
function custom_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
?>
<li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
<?php echo get_avatar( get_comment_author_email(), '32' ); ?>
<?php comment_author_link() ?> | " title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?> <?php edit_comment_link('e','',''); ?>
<?php if ($comment->comment_approved == '0') : ?>
Your comment is awaiting moderation.
<?php endif; ?>
<?php comment_text() ?>
<small class="replycomment"><?php comment_reply_link(array('reply_text' => 'Reply to this comment', 'depth' => $depth, 'max_depth'=> $args['max_depth'])) ?></small>
<?php
}
//make changeable header
define('HEADER_TEXTCOLOR', '');
define('HEADER_IMAGE', 'setta.jpg'); // %s is theme dir uri and image filename
define('HEADER_IMAGE_WIDTH', 385); // make sure these values match the theme header
define('HEADER_IMAGE_HEIGHT', 174);
define( 'NO_HEADER_TEXT', true );
function artificialintelligence() { // change atypxmas to your theme name
?>
// this part adds the header in the admin area
#headimg {
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
}
#headimg h1, #headimg #desc {
display: none;}
}
function header_style() {
?>
#header{
background: url(<?php header_image() ?>) no-repeat;}
}
add_custom_image_header(’header_style’, ‘artificialintelligence’);
?>