BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › redirection and group page questions
- This topic has 2 replies, 2 contibutors, and was last updated 9 years, 10 months ago by Shannon.
Question
January 23, 2015 at 3:50 pm #34971@flick-chicksThis is a bit complicated, so hopefully you guys can follow…
My site is not “locked down”, meaning people can visit many of the pages without being registered/logged-in.
I am creating a box on my sidebar that will be seen on all pages whether you are logged-in or not. The box has two buttons. One that says “Find a Group” and one that says “Create a Group.”
The “Find a Group” button sends logged-in or logged-out users to a search page I created using the Geo My Wp plugin (great plugin). There users see a list of groups in their area based on a zip code search and can click on the group name, which takes them to the group’s homepage.
Problem #1…How do I add a link/button on a group’s page, when someone is *not* logged-in, that says “To join this group you must be logged-in” (or something to that effect).
The next issue involves the “Create a Group” button. It sends users who *are* logged in to the create a group page (http://example.com/groups/create/step/group-details/). However it sends non-logged in users to the same URL but it says “Not Found”.
Problem #2…How do I send users who click on “Create a Group” who are *not* logged-in to a page that says, “To create a group you must be logged-in. If you are not a member you must register first” (or something to that effect) with hyperlinks on “logged-in” and “register”.
Is any of this possible?
Appreciate any help. Thanks!
Answers
January 23, 2015 at 3:56 pm #34972@alyssa-buddyboss
AlyssaParticipant@flick-chicks all of this is possible but this is beyond the support I can give you. This sounds like custom development that involves several if statement checks and editing of several group templates adding if statements.
But in reality logged out users should never see the Create a group button. You can do this via PHP or via CSS. You would need to first hide the button, then add a CSS class to unhide it if body.logged-in class is displayed.
That’s about the depth I can go into, hope this helps.
January 23, 2015 at 4:02 pm #34974@flick-chicksThanks for the quick reply. I may have to rethink my process, but glad to know it’s possible.
Cheers!
- The question ‘redirection and group page questions’ is closed to new replies.