BlogsMU Theme signup form - Blog URL suffix text incorrect for subdomain install

I couldn't find this issue in the forums, so thought I'd ask here.

Do you support the BlogsMU theme directly in these forums, or should I be trying to hunt down the theme owner?

The problem I'm having is with the signup form at the URL /register

Under Blog Details when the user checks the box "Yes, I'd like to create a new blog" there is an input box under "Blog URL (required)". For a subdomain install, the suffix text is incorrect.

What I expect to see here is http://( ).mydomain.com

What I see instead is http://( ).www.mydomain.com

I tracked this down to
wp-content/themes/blogs-mu/registration/register.php:
.<?php echo str_replace( 'http://', '', site_url() ) ?>

I was able to fix it with:
.<?php echo str_replace( 'http://', '', get_site_url(1) ) ?>
where the argument value "1" is the blog id of my root domain (i.e. mydomain.com).

Is this a known bug?

Thanks,

Scott

    Mason

    Hiya Scott,

    Richie is the theme designer for BlogsMU and he'll be best able to take a look and respond to this. I'll ask him to stop by.

    Thanks for your feedback!

    Richie_KS

    hi
    not sure if its a known bug since it involve the buddypress core file.
    wp-content/themes/blogs-mu/registration/register.php

    this is a buddypress component files...did any other user also encounter this issue?
    if not then it may have something to do with your site setup...

    cheers

    BlueSkies

    More about my setup:

    In wp-config.php I have
    define ( 'BP_ROOT_BLOG', 3 )
    define('DOMAIN_CURRENT_SITE','www.mydomain.com');

    When register.php uses site_url(), perhaps it is picking up the current domain which is http://www.mydomain.com?

    I would think that register.php in this instance would always want to pick up the top level domain for this use case and maybe not use site_url(). Is this an issue for the BuddyPress team?

    Thanks,

    Scott

Join 374743 happy members

Get access to our entire collection of epic plugins, astonishing themes & genius support

Become a member