Forums

Different sidebars per user (11 posts)

  1. got_josh
    Member
    Posted 2 years ago #

    Hello all-

    I tried used the search and didn't find anything, so i might as well just post it here. I want to have different sidebars depending on the user, how could i archieve this?

    Also is there a way that i could set something up that whenever i create a new user a new page would be created with the username of that user?

    Thanks!

  2. got_josh
    Member
    Posted 2 years ago #

    Maybe something on the likes of is_category('') function ? :S

  3. got_josh
    Member
    Posted 2 years ago #

    bump =(

  4. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    I want to have different sidebars depending on the user

    Depending upon the user's what? Username? Role? Logged in status? You need to be a little more specific.

  5. got_josh
    Member
    Posted 2 years ago #

    Yeah, I'm sorry. But to be a little bit more specific, it's on the user role. :)

  6. got_josh
    Member
    Posted 2 years ago #

    Anyone ? :(

  7. got_josh
    Member
    Posted 2 years ago #

    bump =(

  8. got_josh
    Member
    Posted 2 years ago #

    Help please! :(

  9. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    For the different sidebars based on user role, have a look at http://codex.wordpress.org/Function_Reference/get_currentuserinfo - specifically $current_user->user_level in the first example.

  10. got_josh
    Member
    Posted 2 years ago #

    What i want to do can't be done with $current_user->user_level

    Because i want a different sidebar PER user and it's completly different and from what i understand if you create a sidebar for someone with an user level of 0 for examplace the members with an user level of 1 or higher will actualyl see what the one with 0 has.

  11. got_josh
    Member
    Posted 2 years ago #

    I just tested this out and it tried with every user level and the only one that can i get to display is level 10 users, it seems that even if you assign an user level to a different role you cannot retrive it's user level and i'm possitive that my code is right because i'm using the same code for all level and the only one i get to display is level 10 :s

Topic Closed

This topic has been closed to new replies.

About this Topic