This topic has 4 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #181750
     soundarrajmca
    Participant

    How to enable the below requirement.

    I have one link on the post that links should view when the user logging into the buddy press

     

    same like forum post (You must be logged in to create new topics.)

    #181762
     Kieran_SQ
    Moderator

    Hi,

    I’m not sure if I understand your question, it looks like you’re asking about making menu items available to logged in or logged out users. If this is correct please see below, if not, then please update this ticket with more information so I can assist you.

    To make menu items visible only for to logged in or logged out users only you will need to install a plugin called Menu Items Visibility Control, you can do this by going to WP Admin > Plugins > Add New and searching for ‘Menu Items Visibility Control’.

    https://wordpress.org/plugins/menu-items-visibility-control/

    Once installed and activated you will need to go to WP Admin > Appearance > Menus > Select: Desired Menu. Open up the forums menu item you have already added to your menu and you will see a new field titled ‘Visibility’ paste the snippet from below into this field and save the menu (see screenshot).

    Show only to logged in users
    is_user_logged_in()

    Show only to logged out users
    !is_user_logged_in()

    You may need to clear your website cache, CDN and local cache (Ctrl+F5) to see these changes.

    Thanks,

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    Attachments:
    You must be logged in to view attached files.
    #181789
     soundarrajmca
    Participant

    Almost same but my requirement is not menu its like hyperlink.

    For example: I have published the post, in that I have one hyperlink to see attachment. the attachment should visible only to register members those who logged in.

    I could see 7th queen support portal also have that functionality PFA.

    Attachments:
    You must be logged in to view attached files.
    #181792
     Kieran_SQ
    Moderator

    Ah okay, I understand now.

    I will forward this to one of our developers who will be able to assist you with this matter. They’ll be in touch with you as soon as they can, Monday to Friday, East Europe Time.

    Thank you for your patience,

    Kieran.

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #181924
     Radu
    Moderator

    Hi

    I see, there its a custom thing on our forum, you can use this shortcode

    [kleo_restrict type="guest"]
    This content will be displayed for the guest users
    [/kleo_restrict]

    [kleo_restrict]
    This content will be displayed for logged in users.
    [/kleo_restrict]

    You can try such as plugin https://ro.wordpress.org/plugins/restrict-content/

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 5 posts - 1 through 5 (of 5 total)

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

Log in with your credentials

Forgot your details?