Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Tried to follow the guide as documented in Reporting Bugs, submitted a TRAC (!) ticket, assigned it to myself, created a patch file with this fix and marked the ticket “has_patch” and finally changed status to Fixed.

    Hope somebody will review and approve soon 🙂

    Cheers
    Torben Brams

    In includes/post.php you will find the following chunk of code beginning in line 2190 :

    (At least in WordPress version 2.7.1 you will – line numbers may vary for other versions)

    if ( !empty($exclude_tree) ) {
    $exclude = array();

    $exclude = (int) $exclude_tree;
    $children = get_page_children($exclude, $pages);
    $excludes = array();
    foreach ( $children as $child )
    $excludes[] = $child->ID;
    $excludes[] = $exclude;
    $total = count($pages);
    for ( $i = 0; $i < $total; $i++ ) {
    if ( in_array($pages[$i]->ID, $excludes) )
    unset($pages[$i]);
    }
    }

    The problem is that the exclude_tree argument is not handled like a list of parameters, but merely as a single integer argument. I learned this after trying to build a menu for ttu.no by excluding a number of chapters, that should not go on the front page. Well, I got a nice surprise when even my elaborate exclude list only worked on the first section and my menu totally filled the front page.

    But I found the problem, and have a solution – by updating the code as below, everything will work as expected:

    if ( !empty($exclude_tree) ) {
    $exclude = array();

    $exclude = explode(‘,’,$exclude_tree);
    foreach ($exclude as $exclude_page) {
    $children = get_page_children($exclude_page, $pages);
    $excludes = array();
    foreach ( $children as $child )
    $excludes[] = $child->ID;
    $excludes[] = $exclude_page;
    $total = count($pages);
    for ( $i = 0; $i < $total; $i++ ) {
    if ( in_array($pages[$i]->ID, $excludes) )
    unset($pages[$i]);
    }
    }
    }

    Now, this is my first “real” contribution to the open source world – I wish I knew how to use TRAQ, so I could fix this directly in the repository as well 🙂

    Please send me a pointer if you know how to work with the TRAQ system.

    Kind regards
    Torben Brams

    tbrams

    (@tbrams)

    Not sure if you have discovered this yet, but as I started looking at phpBB3 myself yesterday, I had the same problem until after running the install script with a fully qualified url: http://www.websitename.com/phpbb/install.php

    Remember that after configuring everything during the next few pages, you will have to remove the install directory as well. That is delete the http://www.websitename.com/phpbb/install directory – otherwise you will not be able to see anything other than the phpBB admin interface.

    Hope this helps – there is a lot of very qualified support info on the phpBB pages if you need more 😉

    tbrams

    (@tbrams)

    Just tried it. This works out of the box – thanks to cogo

    If I understand this one correctly, I think I might have something you can use.

    Have a look here: http://brams.dk/technotes/wordpress/my-first-plugin/

    I used it to list related pages in the margin, but you can put it to use anywhere on your pages.

    Hope this helps
    Kind regards
    Torben

    I am not sure if this is what you are looking for, but I built a similar system for my static pages some time ago.

    See this link: <http://brams.dk/technotes/wordpress/my-first-plugin/&gt; – you should find explanation in the php file as well.

    Kind regards
    Torben Brams

    I don’t know it this will help, but I have documented how I managed this in an article here:

    http://brams.dk/2005/05/18/building-a-member-site/

    Works just fine – especially when combined with a customized fronpage on the admin interface.

    tbrams

    (@tbrams)

    I have done this for my local Taekwondo Club website. It’s really not a lot you will have to do and I have tried to be very specific documenting.

    See the step by step instruction at :

    http://brams.dk/2005/05/18/building-a-member-site/

    Hope this is useful.

    tbrams

    (@tbrams)

    wp-useronline is using get_onlineuserinfo() and causing trouble.

    More background here: http://brams.dk/wordpress/2005/05/09/wordpress-151-upgrade/

    tbrams

    (@tbrams)

    After disabling the troublesome plugin that was calling get_currentuserinfo() the upgrade went just fine.

    Looks great – thanks for all the hard work and for making sure that you reminded all of us to back up the existing tables as step 1 in the upgrade guide

    🙂

    tbrams

    (@tbrams)

    I am confident that there is a severe compatibility problem with the wp_list_user plugin. I have rolled back to 1.5 to disable this and attempt to upgrade again.

    Sorry for the panic – it’s not the kind of surprise I was expecting just before going to bed (It’s 2 mins past midnight here in Denmark).

    tbrams

    (@tbrams)

    Sh*t!

    My website just doesn’t work anymore after the upgrade. I cannot even login to the admin part. It looked so promising, but there must have been some compatability issue with wp_users_online that I used.

    That is probably the most disappointing upgrade I have ever made.

    The error message is:

    Fatal error: Call to undefined function: get_currentuserinfo() in /customers/brams.dk/brams.dk/httpd.www/wordpress/wp-blog-header.php on line 169

    Let me know if there is anything I can do to avoid starting from scratch again.

    Forum: Plugins
    In reply to: is_child() functionality?

    I have made a small plugin recently that works for me re this functionality that I hope you can use.

    It’s available here:

    http://brams.dk/public/wp/tbr_article_family.zip

    Thread Starter tbrams

    (@tbrams)

    Hi MichelFortin,

    I just tried deslecting the option as you suggested, and it works like a dream.

    Thanks for pointing me in that direction 🙂

    Thread Starter tbrams

    (@tbrams)

    I am familiar with the syntax above, but really lazy. And now that a nice shorthand for writing a clickable email address in Markdown exist, I really want to use it. This is the feature called called “Autolink”.

    If you type <[email protected]> it will be translated to the line you typed out for me above – except it is clever enough to encode the entire mailto address in an attempt to block address harvesting.

    Nice and fast – I really like it. And it works if you call it directly in a php script, but in the edit panel inside wp, this exact feature unfortunately fails.

    but thanks anyway.

Viewing 15 replies - 1 through 15 (of 16 total)