Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: This ERROR –

Tranny
Participant

@tranny

Yes, I had the layout of forums customized before upgrade to WP2.5 becasue defaul is very user not friendly. I also had title tag customized because default values are not SEO friendly. Obviously, this clashes with upgraded version causing my forums page to not work. This is what HEAD of my header.php looks like

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title>
<?php if (is_front()) { ?> Forums and Forum Topic on Bullshit Blog <?php }
elseif (is_forum()) { echo (get_forum_name() . " on Bullshit Blog Forums"); }
elseif (is_topic()) { echo (get_topic_title() . " Forum Thread on Bullshit Blog"); }
else {
?>

<?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> &raquo; <?php bb_title() ?>

<?php } //else ?>
</title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" media="screen" />

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<style type="text/css" media="screen">

<?php
// Checks to see whether it needs a sidebar or not
if ( !$withcomments && !is_single() ) {
?>
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
<?php } ?>

</style>

<?php wp_head(); ?>

<?php if ( is_topic() && bb_is_user_logged_in() ) : ?>
<script type="text/javascript">
var lastMod = <?php topic_time( 'timestamp' ); ?>;
var page = <?php global $page; echo $page; ?>;
var currentUserId = <?php bb_current_user_info( 'id' ); ?>;
var topicId = <?php topic_id(); ?>;
var uriBase = '<?php bb_option('uri'); ?>';
var tagLinkBase = '<?php bb_tag_link_base(); ?>';
var favoritesLink = '<?php favorites_link(); ?>';
var isFav = <?php if ( false === $is_fav = is_user_favorite( bb_get_current_user_info( 'id' ) ) ) echo "'no'"; else echo $is_fav; ?>;
</script>
<?php bb_enqueue_script('topic'); ?>
<?php endif; ?>

</head>

There’s obviously a lot of dynamic stuff in the head of my theme to make it mor SEO friendly. Is there a way to retain it and have it properly pull required data again?

Thanks for your help guys, I really appreciate that :)

Skip to toolbar