This topic has 8 replies, 2 voices, and was last updated 9 years by minipanther.

  • Author
  • #54215
     minipanther
    Participant

    Hi There
    I have some problems with securing content.
    The carousel controls are missing for the group carousel but the bigger problem is that it lists hidden groups too for those who are not members of the hidden group and have no authorization! Also on the groups page the number of groups are displayed together with hidden groups. The group grid also lists the hidden groups.
    The featured post carousel appears on my blog page even for logged out users. All my pages are protected by the plugin s2member, the whole contect of the blog page is hidden for non-authorized roles except for the featured post carousel.
    Any idea to solve this?
    Thanks.

    #54236
     sharmstr
    Moderator

    By default, the groups carousel will not display hidden groups to someone who is not allowed to see them whether they are logged in or not. I’ve just tested and verified that this works on 3 of my sites. So, if its showing your hidden groups to people it shouldnt be showing them to, then either you have changed something or added a plugin that overrides default functionality.

    The shortcodes no nothing of s2members settings since Kleo doesnt officially support it. If you want it to, you can request this in the feature request topic.

    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

    #54239
     minipanther
    Participant

    Thanks, I have to check this with the hidden groups. Maybe Kleo is not 100% compatible with Buddpress 2.2.1. Is it possible to add an authority check to disable the featured posts carousel for logged out members?

    #54244
     sharmstr
    Moderator

    The 3 sites I tested it on are all running the current version of BP and Kleo.

    You can try copying /kleo/featured-content.php to your child theme and adding a check for logged in members.

    or

    You can try copying /kleo/index.php to your child theme and adding a check for logged in members. Around line 87, maybe something like

    COPY CODE
    
    if (kleo_has_featured_posts() && is_user_logged_in() ) {
    
    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

    Attachments:
    You must be logged in to view attached files.
    #54276
     minipanther
    Participant

    Hi
    Thanks a lot it works, I copied the index.php into my child theme and added the membership level too in the coding (it is a capability in s2 member)
    if (kleo_has_featured_posts() && is_user_logged_in() && current_user_can( ‘access_s2member_level2’ ) ) {

    #54280
     sharmstr
    Moderator

    Cool!

    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

    #54289
     minipanther
    Participant

    Dear Sharmstr
    Could you also recommend a coding for putting a text like “featured post” before this carousel. I tried to add a seperator with text with the visual composer to the blog page but it did not work. Unfortunately I am not a developer. It seems that I cannot edit the layout of the blog page. It is not trivial for users that this carousel is for featured posts as visually there is not much difference.
    Thanks a lot!

    #54290
     sharmstr
    Moderator

    On the index page you edited, try this before the featured function

    <?php echo “Featured Posts”; ?>

    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

    #54303
     minipanther
    Participant

    Thanks I managed to add it to the featured-content.php. It would be really elegant and light up my blog if this featured posts carousel could autoplay like members carosel. Is it possible to define?

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

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

Log in with your credentials

Forgot your details?