The MU forums have moved to WordPress.org

SIDEBAR LOGIN (12 posts)

  1. boonika
    Member
    Posted 16 years ago #

    If anyone can help.
    I'm using sidebar login plugin and I get this message when user tries to login from the main's blog homepage sidebar:

    Fatal error: Call to undefined function: is_ssl() in /home/15717/domains/mysite.com/html/wp-content/plugins/sidebar-login.php on line 116

    Same happens when user tries to register from his own homepage. This is the line of the code that's causing trouble:
    if ( is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )

    Plugin:
    http://wordpress.org/extend/plugins/sidebar-login/

  2. MrBrian
    Member
    Posted 16 years ago #

    Sounds like the page isn't loading the is_ssl function for some reason..., luckily that function is real simple. Stick this at the top of the plugin file:

    function is_ssl() {
    	return ( isset($_SERVER['HTTPS']) && 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false;
    }
  3. boonika
    Member
    Posted 16 years ago #

    Thanks a lot MrBrian.

  4. boonika
    Member
    Posted 16 years ago #

  5. indojepang
    Member
    Posted 16 years ago #

    i try that.. it doesn't work for me..
    let see.. i use this @ the header section
    '<div id=login>

    </div>

    </div>'

  6. indojepang
    Member
    Posted 16 years ago #

    Hey! this is greater!

  7. boonika
    Member
    Posted 16 years ago #

    Thanks for that link. Some great tutorials on that site. Btw, plugin from the first post works just fine, but you'll have to include lines MrBrian provided.

  8. boonika
    Member
    Posted 16 years ago #

    I've styled this plugin's widget (see post #1). It works great. But there is just one thing I would like to add. As top admin I am able to login from all blogs (sidebars). Also, all the blog owners are able to login from main (top) blog's homepage (sidebar). But how to enable sign-ups (login) for blog owners from another blog's sidebar. I hope you understand what I'm trying to say.

  9. boonika
    Member
    Posted 16 years ago #

    Any idea? If some can give me a starting point and I'll Google it from there?

  10. andrea_r
    Moderator
    Posted 16 years ago #

    http://wpmudevorg.wordpress.com/project/Add-User-Widget

    that help any?

    If you want a visitor to be able to signup for their own blog from another user's sidebar. best bet is to have a link there to the main signup page. redirect 'em. Too many choices and you confuse the n00bs.

  11. boonika
    Member
    Posted 16 years ago #

    Andrea thanks, but it's my English playing tricks on me again. What I meant was 'login' not 'sign up'. So, I already have sidebar login option (widget, just like at edublogs.org) which works fine. Problem is that blog-owner-2 cannot login from blog-3 (blog-4, blog-5...) sidebar. He's only able to do that from his own blog's (blog-2) sidebar or from the main's blog sidebar. Hrmmm... maybe this is even more confusing. Thanks anyway.

  12. neilm
    Member
    Posted 16 years ago #

    I'm also using sidebar-login widget but they functionality I want to add is to have a link to the logged in user's blog.

    Is there way I can use something like blogaddress_by_id?

    Any help would be appreciated.

About this Topic