Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter blackc2004

    (@blackc2004)

    Actually, I found that when you redirect to a specific page that’s broken when you update the above line, so I have changed the lines to read:

    if ($members_only_opt['redirect_to'] == 'specifypage') {
                    $home = get_bloginfo('url'); //Get base URL or WordPress install
            } else {
                    $home = get_bloginfo('wpurl'); //Get base URL or WordPress install
            }

    Duh, If I’d just have scrolled up a few lines.

    Thanks!

    I’ve never actually used this feature of WordPress, I guess I’m one of those people you doesn’t mind the file in the root of my site folder.

    I’m just about to release a new version of Members Only (0.6.5) this weekend before I embark on per-page and per-category protection, so I’ll get this fix into 0.6.5.

    I think I’ll check whether get_bloginfo('url') == get_bloginfo('wpurl') and then make the alterations in the code based on that logic, as I’m a little concerned that the fix above might break things for other users.

    I’ll create a new test bed with WordPress installed in a different directory to check this going forward.

    Thanks

    / Hami

    Ok – I’ve fixed this in the latest version. I now using wpurl when referring to the core WordPress such as wp-login.php

    I’m just finshing testing the other tweaks in this version and I’ll release it later tonight.

    / Hami

    New version is up – if your having problems still let me know.

    / Hami

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Members Only] bloginfo(‘url’) should be ‘wpurl’ in members only.’ is closed to new replies.