Title: tbrams's Replies | WordPress.org

---

# tbrams

  [  ](https://wordpress.org/support/users/tbrams/)

 *   [Profile](https://wordpress.org/support/users/tbrams/)
 *   [Topics Started](https://wordpress.org/support/users/tbrams/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tbrams/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tbrams/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tbrams/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tbrams/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tbrams/favorites/)

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/tbrams/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/tbrams/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress 2.7 wp_list_pages Exclude Broken?](https://wordpress.org/support/topic/wordpress-27-wp_list_pages-exclude-broken/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-27-wp_list_pages-exclude-broken/#post-961395)
 * Tried to follow the guide as documented in [Reporting Bugs](http://codex.wordpress.org/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
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress 2.7 wp_list_pages Exclude Broken?](https://wordpress.org/support/topic/wordpress-27-wp_list_pages-exclude-broken/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-27-wp_list_pages-exclude-broken/#post-961394)
 * 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
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Trying to install phpbb3 with wordpress](https://wordpress.org/support/topic/trying-to-install-phpbb3-with-wordpress/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/trying-to-install-phpbb3-with-wordpress/#post-732161)
 * 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](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](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 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [PHPBB3 recent comments/posts in the sidebar](https://wordpress.org/support/topic/phpbb3-recent-commentsposts-in-the-sidebar/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/phpbb3-recent-commentsposts-in-the-sidebar/#post-605829)
 * Just tried it. This works out of the box – thanks to cogo
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Listing Children?](https://wordpress.org/support/topic/listing-children/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/listing-children/#post-329567)
 * 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/](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
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [1 Category Template for the Parent and Child categories?](https://wordpress.org/support/topic/1-category-template-for-the-parent-and-child-categories/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/1-category-template-for-the-parent-and-child-categories/#post-253426)
 * 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](http://brams.dk/technotes/wordpress/my-first-plugin/&gt);–
   you should find explanation in the php file as well.
 * Kind regards
    Torben Brams
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Customized login page](https://wordpress.org/support/topic/customized-login-page/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/customized-login-page/page/2/#post-82383)
 * 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/](http://brams.dk/2005/05/18/building-a-member-site/)
 * Works just fine – especially when combined with a customized fronpage on the 
   admin interface.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [change login redirect](https://wordpress.org/support/topic/change-login-redirect/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [21 years ago](https://wordpress.org/support/topic/change-login-redirect/#post-193034)
 * 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/](http://brams.dk/2005/05/18/building-a-member-site/)
 * Hope this is useful.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Incompatable 1.51. Plugin’s List](https://wordpress.org/support/topic/incompatable-151-plugins-list/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/incompatable-151-plugins-list/#post-202234)
 * wp-useronline is using get_onlineuserinfo() and causing trouble.
 * More background here: [http://brams.dk/wordpress/2005/05/09/wordpress-151-upgrade/](http://brams.dk/wordpress/2005/05/09/wordpress-151-upgrade/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upgrade 1.5 > 1.5.1](https://wordpress.org/support/topic/upgrade-15-gt-151/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/upgrade-15-gt-151/page/4/#post-200724)
 * 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
 *  🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upgrade 1.5 > 1.5.1](https://wordpress.org/support/topic/upgrade-15-gt-151/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/upgrade-15-gt-151/page/3/#post-200715)
 * 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).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Upgrade 1.5 > 1.5.1](https://wordpress.org/support/topic/upgrade-15-gt-151/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/upgrade-15-gt-151/page/3/#post-200703)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [is_child() functionality?](https://wordpress.org/support/topic/is_child-functionality/)
 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/is_child-functionality/#post-196855)
 * 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](http://brams.dk/public/wp/tbr_article_family.zip)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Autolink (Markdown) doesn’t work as expected](https://wordpress.org/support/topic/autolink-markdown-doesnt-work-as-expected/)
 *  Thread Starter [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/autolink-markdown-doesnt-work-as-expected/#post-160145)
 * Hi MichelFortin,
 * I just tried deslecting the option as you suggested, and it works like a dream.
 * Thanks for pointing me in that direction 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Autolink (Markdown) doesn’t work as expected](https://wordpress.org/support/topic/autolink-markdown-doesnt-work-as-expected/)
 *  Thread Starter [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/autolink-markdown-doesnt-work-as-expected/#post-159560)
 * 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 _<name@site.com>_ 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)

1 [2](https://wordpress.org/support/users/tbrams/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/tbrams/replies/page/2/?output_format=md)