Yeah, i know about the Buddypress problem, respectively the problem with virtual pages in general. When i first wrote the plugin i found out quickly that i need a secure system to identify any single page/url. Since you can freely change the URL behaviour (Pretty permalinks), i have chosen the WordPress query parameters, because they are independent from the permalinks-settings.
Actually i don’t have any plans (nor any idea how) to change this. Maybe i add such a feature in the future but it’s not a priority right now.
But maybe you can just go one level down into that url and add it then. For Example:
If you have the URL http://www.domain.com/members/usernamexy/, it cannot be added but if you remove the username you can add the site, because it’s not virtual anymore. Sure, you can’t make settings for a specific single user but for all user pages at once.
Concerning the condition-filters, the next version will have a slightly changed conditions-menu and i add a few options, including the login status. Longer term goal is to make it flexible enough to add a WordPress hook, so users can add their own conditions or change the existing ones.
Best regards
Hendrik
Thread Starter
dlx
(@deeluuxe)
Hi Hendrik,
thanks for your suggestion. Unfortunately I can´t change the URL because BuddyPress is setting the structure. The only thing I can do is setting the pages for users, activity, register and activation.
So when I set the users page to the page “search”, every page after this (“/test02/location/” in this case) is set by BuddyPress:
https://domain.com/community/search/test02/location/
So I think setting a filter for the parent page does not work. Or does a parent page include all other pages below?
Ex.:
A parent page filter for
domain.com/community/search/
works for the page
domain.com/community/search/test02/
but not for
domain.com/community/search/test02/location/
Correct? (I think I tested it like this)
Best regards,
Jan
-
This reply was modified 8 years, 2 months ago by
dlx.
Oh, i thought you talking about a “single page” setting? But even with global conditional filters you could set a normal page condition i.e. for the “search” page, if it’s a real wordpress page. The is_page() condition should then also be true for the virtual pages “test02” and “location”, because they are just variables to get another content.
Hope it helps 🙂