WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Breadcrumb Navigation XT] Breadcrumb XT error in 2.5RC1 (user_level issue) (4 posts)

  1. (I am at work so I am quoting myself from memory from last night...)

    It looks like 2.5 may have changed the way that user levels are addressed in the $userdata array. Because of this, the administration page required a quick and dirty hack to make it go.

    I am new to WordPress but old to PHP, so I was able to dump the administrator boolean value to the existing $bcm_user_level variable and make it go.

    Other than this hang-up, it appears to work just as flawlessly as it did with 2.3. This is one of my favorite plug-ins for WordPress so far, and highly recommend it to everyone.

    http://wordpress.org/extend/plugins/breadcrumb-navigation-xt/

  2. John Havlik
    Member
    Posted 6 years ago #

    Breadcrumb Navigation XT is no longer supported, Breadcrumb NavXT is the successor to it.

    The problem with the administrative interface was related to some changes that were actually made in 2.3. The user_level field is not automatically generated, and unless you upgrade from a previous version you will get this error. There are ways around it, and the way you got around it you open yourself up to security problems. This was fixed in Breadcrumb NavXT 2.1.

    BTW. The version you are using is no longer available.

  3. Roger Theriault
    Member
    Posted 6 years ago #

    WP 2.5 added some handy class divs (current_page_* - not quite documented it seems) that can be styled with CSS to do breadcrumbs relatively easy (and flexibly), see my site's pages for an example. No plugin needed. Once IE supports some of the advanced CSS stuff it will be an even better way to go.

    Here's some code for your page.php file:

    <div id="breadcrumbs">
    <ul>
    <li class="first_item">Information</li>
    <?php wp_list_pages('sort_column=menu_order&title_li='); ?>
    </ul>
    </div>

    and the CSS

    #breadcrumbs {
    	width: 100%;
    	padding: 0;
    	margin: 0;
    }
    #breadcrumbs ul {
    	list-style: none;
    	display: inline;
    	padding: 0;
    	margin: 0;
    }
    #breadcrumbs li {
    	list-style: none;
    	display: none;
    	padding: 0;
    	margin: 0;
    	padding-left: 5px;
    }
    #breadcrumbs .page_item {
    	display: none;
    }
    #breadcrumbs .first_item {
    	display: inline;
    	border-left: 1px solid white;
    	padding-left: 0px;
    }
    #breadcrumbs .current_page_item {
    	display: inline;
    	border-left: 1px solid black;
    }
    #breadcrumbs .current_page_item a {
    	text-decoration: none;
    }
    #breadcrumbs .current_page_ancestor {
    	display: inline;
    	border-left: 1px solid black;
    }
    /* not in IE 6 - dang - but pretty in Firefox
    #breadcrumbs li:before {
    	content: "020 020 020 0BB 020";
    	color: black;
    }
    #breadcrumbs .first_item:before {
    	content: " ";
    }
    */

    See it in action here: http://www.rogertheriault.com/listing-services/video-walkthroughs/video-matters/

  4. John Havlik
    Member
    Posted 6 years ago #

    The plug-in itself is a much better method of doing breadcrumb for most cases. CSS is great, however it has to be downloaded or cached for every page. We are supposed to try to keep the CSS file under 8KB, and to just do an average blog, there is no room for extra CSS to do things that can be done easily in php. Sure, your method is faster (server processing wise), for pages, but it doesn't support other things like attachments or posts or search pages. Breadcrumb NavXT handles just about every page WordPress generates, including searches, static pages, posts, category archives, etc. The only thing it does not fully support yet is paged pages (e.g., paged searches, archives, posts, pages.)

Topic Closed

This topic has been closed to new replies.

About this Topic