-
Squirrel replied to the topic Profile fields visible to admin and the logged in user only in the forum How-to & Troubleshooting 10 years, 10 months ago
I use a WordPress theme I made to accomplish this. I’ve been asking on the forums if anyone wants me to release it for free but I’ve had no response/ interest from anyone yet. https://buddypress.org/support/topic/flat-portal-client-area-child-theme-of-twenty-thirteen/
It has all the functionality you want.
I made it so that only admin can see all…[Read more]
-
Squirrel started the topic Flat Portal: Client area child theme of Twenty Thirteen in the forum Creating & Extending 10 years, 10 months ago
Hi there.
I would like your opinions on this please:This is a theme I’ve been developing for going on 2 years now in my spare time:
Flat Portal is a theme I’ve developed as a child theme of Twenty Thirteen to utilise the modern features of WordPress as a publishing platform. It also uses Twitter Bootstrap 2.3.2 for layout and responsiveness, a…
-
Squirrel replied to the topic Flat Portal theme in the forum Showcase 11 years, 1 month ago
I made a video for the theme here: you tube flat portal WordPress theme.
http://youtu.be/yGfkvnv1N-Y
The theme is now available as a digital download in my shop for $25.
Flat Portal WordPress Theme. -
Squirrel replied to the topic BBPress conditionals in the forum Creating & Extending 11 years, 2 months ago
Thanks I have done-earlier today it occurred to me to do just that 🙂
-
Squirrel replied to the topic Profile fields visible to admin and the logged in user only in the forum How-to & Troubleshooting 11 years, 2 months ago
My portal theme only lets admin / editor users view all members profiles or other users view other profiles if they are friends. If you want more info on how I did this let me know.
-
Squirrel started the topic BBPress conditionals in the forum Creating & Extending 11 years, 2 months ago
Hi there
Does anyone know how to check if a page is a BBPress forum or the main forum index by using conditional statements? I can’t find as good info on this so I thought I’d ask here just in case anyone knows.
Best -
Squirrel replied to the topic Flat Portal theme in the forum Showcase 11 years, 2 months ago
Thanks @shanebp 🙂
It basically works in this way- I have a header file with multiple headers for different page templates or conditions such as is_singular() or is_page.. e.g
if (is_front_page() || is_404() || is_page_template('public-subpages.php') || is_page_template('public.php') || is_page_template('public-full.php') ||…
[Read more] -
Squirrel started the topic Flat Portal theme in the forum Showcase 11 years, 2 months ago
Hi there
I just thought I’d let you know about a project I’ve completed for a WordPress theme designed to be used as a private portal / client area with option to set pages to public or private view using page templates: Flat Portal.
Originally I made it a child theme of the default BuddyPress theme but I have now made a child theme of Twenty…[Read more]
-
Squirrel replied to the topic Members Only Content on a Page/Post in the forum How-to & Troubleshooting 11 years, 2 months ago
I think the Restrict Content plugin would do this.
-
Squirrel replied to the topic Private Portal with BuddyPress in the forum Creating & Extending 11 years, 2 months ago
Hi
Thanks @modemlooper I managed to figure it out after trying a few things and your conditional helped me deduce it.
if ( bp_is_current_component(‘activity’) && !bp_is_user_activity() ) {
worked for me.
(redirect if on main activity page but not own activity) -
Squirrel replied to the topic Private Portal with BuddyPress in the forum Creating & Extending 11 years, 2 months ago
I just read the new Codex on child themes- so it should work with any theme- (answered my own question)
Thank you for putting up with another newbie guys 🙂
Best
-
Squirrel replied to the topic Private Portal with BuddyPress in the forum Creating & Extending 11 years, 2 months ago
Thanks for the feedback
I think I understand now- the profile page has activity on it so it’s not possible to do what that way, and it’s linked to the member page because that is showing profiles.
I could hide things from members with template overrides as you suggest- but I’m not sure if it will work with my theme being a child theme of Twenty…[Read more]
-
Squirrel replied to the topic Private Portal with BuddyPress in the forum Creating & Extending 11 years, 2 months ago
Hi @shanebp and @henrywright-1
Thanks for your help- I agree with Shanebp that his function does the same thing and is simpler, however I still have the same problem in that it stops access to the members PROFILE page.
I think this must be a problem with BuddyPress though- maybe it’s a bug?
Anyway thank you both for helping with the functions…[Read more]
-
Squirrel replied to the topic Private Portal with BuddyPress in the forum Creating & Extending 11 years, 2 months ago
Hi
Thanks for your help again
I tried your function
function bp_my_restrict() {
global $bp;
$user_id = bp_loggedin_user_id();
$user = new WP_User( $user_id );if ( bp_is_current_component('members') || bp_is_current_component('activity') ) {
if ( ( $user->roles[0] != 'administrator' ) ) {
wp_redirect(…[Read more] -
Squirrel replied to the topic Private Portal with BuddyPress in the forum Creating & Extending 11 years, 2 months ago
There is still a problem though in that if I do this it stops any member who is not an admin level user accessing their profile page. Not sure why it should affect that- tried with just the activity conditional and it stops profile page access as well.
elseif (bp_is_current_component( 'members' ) || bp_is_current_component( 'activity' ))…
[Read more] -
Squirrel replied to the topic Private Portal with BuddyPress in the forum Creating & Extending 11 years, 2 months ago
Thanks for your help Henry- I tried the is_page conditional but it does not work with the BuddyPress Pages.
So I tried bp_is_Page which worked, but was depecated.
Then I tried
bp_is_current_component( 'activity' ) || bp_is_current_component( 'members' )
and they work for what I want.Thanks for your feedback it helped a lot 🙂
Chris
-
Squirrel started the topic Private Portal with BuddyPress in the forum Creating & Extending 11 years, 2 months ago
Hi there
I am working on a personal project making a private client portal with BuddyPress.
I’ve made a child theme for Twenty Thirteen that does this- thanks to the new update to BuddyPress that lets any theme use buddypress out of the box.
It uses page templates to assign whether pages are private or public. If they are private it directs non…[Read more]
@mossyoak
Active 2 years ago