Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Integrating Buddypress with Megazine theme (Goodlayers)


  • jonny_w
    Participant

    @jonny_w

    Hi,

    I’ve installed BP1.7 and it’s just not happening, no CSS seems to be being referenced at all for any of the buddypress elements and the page layouts are thrown off.

    Example:

    http://lgserver.com/new/register/
    http://lgserver.com/new/members/newvita/activity/

    I’m really confused 🙁

    Any help really, really appreciated.

    page.php reads:

    `

    ID,’page-option-sidebar-template’,true);
    $sidebar_array = gdl_get_sidebar_size( $sidebar );
    ?>
    <div class="page-wrapper single-page “>
    ID, ‘page-option-post-slider-category’, true);
    if( $category == ‘All’ ) $category = ”;

    $height = get_post_meta($post->ID, ‘page-option-post-slider-height’, true);
    $thumbnail = (get_post_meta($post->ID, ‘page-option-post-slider-thumbnail’, true) == ‘Yes’)? true: false;
    $num_excerpt = get_post_meta($post->ID, ‘page-option-post-slider-excerpt-num’, true);
    $num_fetch = get_post_meta($post->ID, ‘page-option-post-slider-num-fetch’, true);

    echo ”;
    echo ”;
    print_top_post_slider( $category, $height, $thumbnail, $num_excerpt, $num_fetch );
    echo ”; // twelve columns
    echo ”;
    echo ”; // gdl-top-slider
    }else{
    echo ”;
    echo ”;
    $slider_xml = “” . create_xml_tag(‘size’, ‘full-width’);
    $slider_xml = $slider_xml . create_xml_tag(‘height’, get_post_meta( $post->ID, ‘page-option-top-slider-height’, true) );
    $slider_xml = $slider_xml . create_xml_tag(‘width’, 940);
    $slider_xml = $slider_xml . create_xml_tag(‘slider-type’, $gdl_top_slider_type);
    $slider_xml = $slider_xml . $gdl_top_slider_xml;
    $slider_xml = $slider_xml . “”;
    $slider_xml_dom = new DOMDocument();
    $slider_xml_dom->loadXML($slider_xml);
    print_slider_item($slider_xml_dom->documentElement);
    echo ”;
    echo ”;
    echo ”;
    }

    $left_sidebar = get_post_meta( $post->ID , “page-option-choose-left-sidebar”, true);
    $right_sidebar = get_post_meta( $post->ID , “page-option-choose-right-sidebar”, true);

    echo ”;
    echo ”;

    echo ”;
    echo ”;

    // page content
    global $gdl_item_row_size;
    while (have_posts()){
    the_post();

    // print title
    $gdl_show_title = get_post_meta($post->ID, ‘page-option-show-title’, true);
    if( $gdl_show_title != ‘No’ ){
    print_page_header(get_the_title());
    }

    // print content
    $gdl_show_content = get_post_meta($post->ID, ‘page-option-show-content’, true);
    if( $gdl_show_content != ‘No’ ){
    $content = get_the_content();
    $content = apply_filters(‘the_content’, $content);
    if(empty($content)){
    $gdl_item_row_size = print_item_size( ‘1/1′, $gdl_item_row_size ,’mb0’);
    }else{
    $gdl_item_row_size = print_item_size( ‘1/1’, $gdl_item_row_size);
    }

    echo ”;
    echo $content;
    wp_link_pages( array( ‘before’ => ” . __( ‘Pages:’, ‘gdl_front_end’ ) . ”, ‘after’ => ” ) );
    echo ”;

    echo ”; // print_item_size
    }
    }

    // Page Item Part
    if(!empty($gdl_page_xml)){
    $page_xml_val = new DOMDocument();
    $page_xml_val->loadXML($gdl_page_xml);
    foreach( $page_xml_val->documentElement->childNodes as $item_xml){
    if( $item_xml->nodeName == ‘Title’ || $item_xml->nodeName == ‘Blog’ || $item_xml->nodeName == ‘Portfolio’){
    $additional_class = ‘mb15’;
    }else{
    $additional_class = ”;
    }
    $gdl_item_row_size = print_item_size(find_xml_value($item_xml, ‘size’), $gdl_item_row_size, $additional_class);
    switch($item_xml->nodeName){
    case ‘Accordion’ : print_accordion_item($item_xml); break;
    case ‘Blog’ : print_blog_item($item_xml); break;
    case ‘Contact-Form’ : print_contact_form($item_xml); break;
    case ‘Column’: print_column_item($item_xml); break;
    case ‘Column-Service’ : print_column_service($item_xml); break;
    case ‘Content’ : print_content_item($item_xml); break;
    case ‘Divider’ : print_divider($item_xml); break;
    case ‘Gallery’ : print_gallery_item($item_xml); break;
    case ‘Message-Box’ : print_message_box($item_xml); break;
    case ‘Page’: print_page_item($item_xml); break;
    case ‘Personnal’: print_personnal_item($item_xml); break;
    case ‘Portfolio’ : print_portfolio($item_xml); break;
    case ‘Post-Slider’ : print_post_slider_item($item_xml); break;
    case ‘Price-Item’: print_price_item($item_xml); break;
    case ‘Slider’ : print_slider_item($item_xml); break;
    case ‘Stunning-Text’ : print_stunning_text($item_xml); break;
    case ‘Tab’ : print_tab_item($item_xml); break;
    case ‘Testimonial’ : print_testimonial($item_xml); break;
    case ‘Title’ : print_title_item($item_xml); break;
    case ‘Toggle-Box’ : print_toggle_box_item($item_xml); break;
    default: break;
    }
    echo “”; // close column from print_item_size()
    }
    }
    echo ”;
    echo “”; // close row from print_item_size()
    echo “”; // end of gdl-page-item

    get_sidebar(‘left’);
    echo ”;
    echo “”; // row
    echo “”; // gdl-page-left

    get_sidebar(‘right’);
    echo ”;
    echo “”; // row
    ?>

    `

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Integrating Buddypress with Megazine theme (Goodlayers)’ is closed to new replies.
Skip to toolbar