WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic Login box for WP (10 posts)

  1. Cypher
    Member
    Posted 9 years ago #

    Very nice. I had hacked index.php from printing out Login/Register every single time regardless of being logged to printing 'My Account" when logged in.
    But this is a MUCH nicer way of doing it. Thanks.
    Regards

  2. dss
    Member
    Posted 9 years ago #

    This is a great idea.
    unfortunately, i get a lot of code spit out into my header, and regardless of where i put the call
    <?php include('wp-user.php'); ? >
    it appears among the gunk, in the head and not in the menu.
    strange.

  3. wellard1981
    Member
    Posted 9 years ago #

    Hmm, odd.
    What type of error/code do you get? Can you provide a link to a screenshot?

  4. dss
    Member
    Posted 9 years ago #

    I get this on top of every admin page:
    // if the user is logged in, welcome them and display a menu
    Welcome site admin!     
        // it's possible to only display menu items for set access levels, for example anyone over level 0     // gets the post link             
    Post an article
             // generic links to the logged on users profile and a logout link     
    Edit your profile
        
    Logout
        

    and once
    <div id="menu">

      <?php include('wp-user.php'); ? >
      is added to the index.php it returns blank.

  5. dss
    Member
    Posted 9 years ago #

    I called:
    <?php include('wp-user.php'); ? >
    have i bone headed it again?
    f.

  6. wellard1981
    Member
    Posted 9 years ago #

    @dss: not sure what's going on there?! I've put it on a couple of installations of WP, including un-modded ones and it worked a treat.
    @xeophin: removed the font tags, it'll work without! ;)

  7. xeophin
    Member
    Posted 9 years ago #

    great ... ;-)

  8. DarkMan
    Member
    Posted 9 years ago #

    sweet using this on my site now :P thanks

  9. Cypher
    Member
    Posted 9 years ago #

    I tried this plugin out and I got the same thing the first time I tried it out.
    Just to let everyone know, the comments (text following //) are OUTSIDE the PHP context. So they are showing up as regular HTML code. You would want to preface all the comments with <?php //comments are here ?> and that will take care of it. Or just delete the comments. :)
    Regards

  10. wellard1981
    Member
    Posted 9 years ago #

    For ease of use and convenice, all my modifications are now available in my own WordPress package, this includes the new Dynamic Menu, Comments and New user random password generation.
    See http://www.wellardsworld.com/archives/2004/10/01/get-wellards-world/ for details.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.