This topic has 8 replies, 2 voices, and was last updated 9 years by minipanther.
-
Author
-
April 13, 2015 at 18:22 #54215minipantherParticipant
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.April 13, 2015 at 19:47 #54236sharmstrModeratorBy 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
April 13, 2015 at 20:07 #54239minipantherParticipantThanks, 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?
April 13, 2015 at 20:27 #54244sharmstrModeratorThe 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 CODEif (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 solutionThis 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.April 13, 2015 at 22:48 #54276minipantherParticipantHi
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’ ) ) {April 13, 2015 at 22:54 #54280sharmstrModeratorCool!
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
April 13, 2015 at 23:31 #54289minipantherParticipantDear 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!April 13, 2015 at 23:34 #54290sharmstrModeratorOn 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
April 14, 2015 at 00:36 #54303minipantherParticipantThanks 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?
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.