sprinter
Joined: 04 Jan 2004 Posts: 1 Location: southern cali
|
Posted: Mon Feb 09, 2004 9:30 pm Post subject: calendar not working in index.php but works on main page |
|
|
okay, well, since i couldn't put the calendar on the index.php page [wouldn't work] i tried putting the calendar on the right column, which worked. they were the exact same code. but i still want the calendar where my blog is.. because the calendar looks lost on the right side. when i put the code from the readme file, it just says this:
Code: |
Fatal error: Cannot redeclare bloginfo() (previously declared in /home/jenn/public_html/marie/b2/b2-include/b2template.functions.php:23) in /home/jenn/public_html/marie/b2-include/b2template.functions.php on line 23
|
i looked on line 23, and i couldn't find what was wrong.
did i erase something that i shouldn't have? here is the code from the top until where it says 'about the blog' tags of b2template.functions.php:
Code: |
<?php
/* new and improved ! now with more querystring stuff ! */
if (!isset($querystring_start)) {
$querystring_start = '?';
$querystring_equal = '=';
$querystring_separator = '&';
}
/* template functions... */
// @@@ These are template tags, you can edit them if you know what you're doing...
/***** About-the-blog tags *****/
/* Note: these tags go anywhere in the template */
function bloginfo($show='') {
$info = get_bloginfo($show);
$info = convert_bbcode($info);
$info = convert_gmcode($info);
$info = convert_smilies($info);
$info = apply_filters('bloginfo', $info);
echo convert_chars($info, 'html');
}
function bloginfo_rss($show='') {
$info = strip_tags(get_bloginfo($show));
echo convert_chars($info, 'unicode');
}
function bloginfo_unicode($show='') {
$info = get_bloginfo($show);
echo convert_chars($info, 'unicode');
}
function get_bloginfo($show='') {
global $siteurl, $blogfilename, $blogname, $blogdescription, $pathserver, $admin_email;
switch($show) {
case "url":
$output = $siteurl."/".$blogfilename;
break;
case "description":
$output = $blogdescription;
break;
case "rdf_url":
$output = $siteurl.'/b2rdf.php';
break;
case "rss_url":
$output = $siteurl.'/b2rss.php';
break;
case "rss2_url":
$output = $siteurl.'/b2rss2.php';
break;
case "pingback_url":
$output = $pathserver.'/xmlrpc.php';
break;
case "admin_email":
$output = $admin_email;
break;
case "name":
default:
$output = $blogname;
break;
}
return($output);
}
function single_post_title($prefix = '', $display = 1) {
global $p;
if (intval($p)) {
$post_data = get_postdata($p);
$title = $post_data['Title'];
$title = apply_filters('single_post_title', $title);
if ($display) {
echo $prefix.strip_tags(stripslashes($title));
} else {
return strip_tags(stripslashes($title));
}
}
}
function single_cat_title($prefix = '', $display = 1 ) {
global $cat;
if(!empty($cat) && !(strtoupper($cat) == 'ALL')) {
$my_cat_name = get_the_category_by_ID($cat);
if(!empty($my_cat_name)) {
if ($display)
echo $prefix.strip_tags(stripslashes($my_cat_name));
else
return strip_tags(stripslashes($my_cat_name));
}
}
}
function single_month_title($prefix = '', $display = 1 ) {
global $m, $month;
if(!empty($m)) {
$my_year = substr($m,0,4);
$my_month = $month[substr($m,4,2)];
if ($display)
echo $prefix.$my_month.$prefix.$my_year;
else
return $m;
}
}
/***** // About-the-blog tags *****/
|
thank you for reading this -- and i did check other posts, but when i tried what they said it didnt work.. :/ _________________ "only think of two things -- the gun and the tape. once you hear one, run like hell until you break the other." -- sam mussabini |
|