Skip to:
Content
Pages
Categories
Search
Top
Bottom

Issue with a special navigation’s bar since BP is 1.5.1 (from 1.2.10)

  • Avatar of LesChampsLibres
    LesChampsLibres
    Member

    @leschampslibres

    Hi,

    I would like to update a Buddypress 1.2.10 to 1.5.1. But I have a special navigation bar probably included in a modified theme twentyten. I have a local installation for testing this update but you can see the actual installation in 1.2.10 on this website : http://blogs.leschampslibres.fr . Sorry it is in french.
    When I try to navigate with it, pages doesn’t found. Does functions have been changed in BP 1.5.1?

    This is the a part of my header of my modified twentyten :

    `

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of LesChampsLibres
    LesChampsLibres
    Member

    @leschampslibres

    I don’t know how to post the html code…

    thanks for your help

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @LesChampsLibres to post code here, wrap the code with backticks (`) the symbol within the parentheses.

    You’re using an outdated theme that’s no longer supported and has deprecated template tags. I see that you have made some modifications to the theme as well. Backup that old theme, you could still re-use most of the styling/customizations you’ve added.

    The best way forward is to create a child theme of Twenty Ten and install the BP Template Pack plugin and go through the compatibility process. Here’s a tutorial to help you out. http://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/

    Avatar of LesChampsLibres
    LesChampsLibres
    Member

    @leschampslibres

    Thanks.

    So I’ve done a twentyten child theme based on twentyten 1.2 (actual released apparently).
    But it doesn’t appear like my old customized BP twentyten. It doesn’t work with my

    `<?php
    /**
    * The Header for our theme.
    *
    * Displays all of the section and everything up till

    *
    * @package WordPress
    * @subpackage Twenty_Ten
    * @since Twenty Ten 1.0
    */
    ?>
    <html >

    <meta charset="” />
    <?php<br /> /*<br /> * Print the tag based on what is being viewed.<br /> */<br /> global $page, $paged;</p> <p>wp_title( ‘|’, true, ‘right’ );</p> <p>// Add the blog name.<br /> bloginfo( ‘name’ );</p> <p>// Add the blog description for the home/front page.<br /> $site_description = get_bloginfo( ‘description’, ‘display’ );<br /> if ( $site_description && ( is_home() || is_front_page() ) )<br /> echo ” | $site_description”;</p> <p>// Add a page number if necessary:<br /> if ( $paged >= 2 || $page >= 2 )<br /> echo ‘ | ‘ . sprintf( __( ‘Page %s’, ‘twentyten’ ), max( $paged, $page ) );</p> <p>?>

    <link rel="stylesheet" type="text/css" media="all" href="” />
    <link rel="pingback" href="” />
    <?php
    /* We add some JavaScript to pages with the comment form
    * to support sites with threaded comments (when in use).
    */
    if ( is_singular() && get_option( ‘thread_comments’ ) )
    wp_enqueue_script( ‘comment-reply’ );

    /* Always have wp_head() just before the closing
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to such
    * as styles, scripts, and meta tags.
    */
    wp_head();
    ?>

    function getElementsByClass(searchClass,node,tag) {
    var classElements = new Array();
    if (node == null)
    node = document;
    if (tag == null)
    tag = ‘*’;
    var els = node.getElementsByTagName(tag);
    var elsLen = els.length;
    var pattern = new RegExp(“(^|\s)”+searchClass+”(\s|$)”);
    for (i = 0, j = 0; i < elsLen; i++) {
    if (pattern.test(els.className) ) {
    classElements[j] = els
    ;
    j++;
    }
    }
    return classElements;
    }
    function switchClassElements(className) {
    var elems = getElementsByClass(className);
    for(var i=0; i<elems.length ; i++) {
    if(elems
    .style.display!=”none”)
    elems
    .style.display = “none”;
    else
    elems
    .style.display = “block”;
    }
    }
    window.onload = function() { switchClassElements(‘quick_post_widget_hide’); }

    <body >

    )`

    Any ideas?

    Thanks

    Avatar of LesChampsLibres
    LesChampsLibres
    Member

    @leschampslibres

    Sorry but my BP 1.2.10 causes lot of troubles with WP 3.3.1 …

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.