Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] WPMU/Buddypress theme error (http://forum.bytesforall.com/showthread.php?t=2403)

aahkendall Jul 13, 2009 08:09 AM

[SOLVED] WPMU/Buddypress theme error
 
1 Attachment(s)
I'm using an earlier version of this great theme on my personal blog and want to have it as the default theme for new blogs created on a new social network site I'm building with WPMU and buddypress.

I am getting garbage code in the main area of the page and I don't know why - can anyone shed any light on this? This it what the central column produces instead of content:

Next/Previous Navigation: */ bfa_next_previous_page_links('Top'); ?> Next/Previous Navigation: */ bfa_next_previous_post_links('Top'); ?>
id="post-">
','
'); ?> ','
'); ?> ',''); ?> ',''); ?> '.__('Pages:','atahualpa').'',''); ?> ',''); ?> Next/Previous Navigation: */ bfa_next_previous_post_links('Middle'); ?> Next/Previous Navigation: */ bfa_next_previous_post_links('Bottom'); ?> Archives Pages: */ bfa_archives_page('
','
'); ?> Next/Previous Navigation: */ bfa_next_previous_page_links('Bottom'); ?>

I attach a jpeg too in case anyone has time to look and needs it to diagnose - the left and right columns work fine...

Thanks!
Arthur

vsamigo Jul 13, 2009 09:25 AM

suppose to have the same bug or misuse

not being alone ))

http://forum.bytesforall.com/showthread.php?t=2379

Flynn Jul 15, 2009 10:22 AM

In functions.php add the red parts



// This adds arbitrary content at various places in the center (= content) column:
function bfa_center_content($center_content) {

global $bfa_ata;

// PHP
// not for WPMU
# if ( !file_exists(ABSPATH."/wpmu-settings.php") ) {

if ( strpos($center_content,'<?php ') !== FALSE ) {
ob_start();
eval('?>'.$center_content);
$center_content = ob_get_contents();
ob_end_clean();
}

# }

echo $center_content;

}



I had disabled this for WPMU and not thought about what would be there instead then. I am just enabling it again I think for the next version. The plan was to add the option to dumb down Atahualpa for WPMU installs so PHP cannot be used but I'll leave that for another version in the future


All times are GMT -6. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.