This topic has 5 replies, 2 voices, and was last updated 8 years by sharmstr.

  • Author
  • #96838
     AlamSyed
    Participant

    I am really liking this wordpress theme, I should say this is my very first theme.

    I am trying to do something very simple. I am trying to figure it out some setting I need for my custom page on my website, hopefully one of you seasoned professionals can shed some light on this work.

    1. I create a html form for entering information from a user about a project. I  add this page to menu-my accounts, how do I make it appear only for logged in registered users ? Some attribute tag setting I guess ?

    2. There is a processMyForm.php script file that does the processing of that form with post type, but I want to know who the logged in user is ? I mean who has entered in this form,  and how do I find  what is the username and password of the user in my php script file ?

    Can you guys/ gals guide me where/ what to look to achieve the above features, please ?

    I  am still dabbling with web technologies, so if possible be more descriptive in your answer.

    #96900
     sharmstr
    Moderator

    1 – You need a plugin that will conditionally show a menu item. There a few out there. Here is one of them https://wordpress.org/plugins/nav-menu-roles/

    2 – There are several ways to find the user.
    https://codex.wordpress.org/Function_Reference/get_current_user_id
    https://codex.wordpress.org/Function_Reference/get_currentuserinfo

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #97051
     AlamSyed
    Participant

    About the nav menu roles plugin, is there a way to do it with Kleo theme code, as the nav menu options Login/Logout links have this functionality in-built ?

    Another question, are these solutions designed for wordpress users ? I am only looking for subscribers (my website’s users) level settings. How can one distinguish ?

    #97056
     sharmstr
    Moderator

    No. The approved way is to use a plugin.

    I dont understand your question. All users are wordpress users. Plugins like Woocommerce, Buddypress, bbpress and Paid Membership Pro all use the built in wordpress user accounts.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #97064
     AlamSyed
    Participant

    Ok. Thanks.

    If all users are wordpress users then that answers my question. Sorry, I don’t know much about this, that’s why there was confusion.

    Thanks for the prompt reply shamstr.

    #97073
     sharmstr
    Moderator

    No problem.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?