-
Henry Wright replied to the topic Edit Profile Redirects to different page in the forum How-to & Troubleshooting 10 years, 12 months ago
What should it be using?
Do you mean which redirection function? Either is fine – but my point was, the offending code will likely involve one of those functions.
You best bet is to contact the theme or plugin author (as @shanebp mentioned). They’ll probably be grateful for the bug report.
-
Henry Wright replied to the topic Edit Profile Redirects to different page in the forum How-to & Troubleshooting 10 years, 12 months ago
wp_redirect(),wp_safe_redirect()orbp_core_redirect()are the functions that redirect. It could be that your theme is using one of those? -
Henry Wright replied to the topic [Resolved] Members page pagination broken in the forum How-to & Troubleshooting 10 years, 12 months ago
It’s definitely AJAX-related because as you mentioned earlier, visiting /members/?upage=2 works fine. I think the way to pin-point the problem now that you can be sure the template isn’t the issue is focus your investigations on any customisation you’ve made elsewhere. Specifically, any JavaScript you’ve introduced (either in your theme or via a…[Read more]
-
Henry Wright replied to the topic [Resolved] Members page pagination broken in the forum How-to & Troubleshooting 10 years, 12 months ago
It’s definitely AJAX-related because as you mentioned earlier, visiting /members/?upage=2 works fine. I think the way to pin-point the problem now that you can be sure the template isn’t the issue is focus your investigations on any customisation you’ve made elsewhere. Specifically, any JavaScript you’ve introduced (either in your theme or via…[Read more]
-
Henry Wright replied to the topic [Resolved] Members page pagination broken in the forum How-to & Troubleshooting 10 years, 12 months ago
What theme is it that you’re using?
There’s a couple of things you could look into.
Firstly, how does the markup of your theme’s members page differ from that of the template file provided by BP (in bp-legacy)?
Secondly, take a look at your theme’s JavaScript files (if it has any) to see if there’s anything that might conflict with BP’s JavaScript
-
Henry Wright replied to the topic [Resolved] Members page pagination broken in the forum How-to & Troubleshooting 10 years, 12 months ago
What theme is it that you’re using?
There’s a couple of things you could look into.
Firstly, how does the markup of your theme’s members page differ from that of the template file provided by BP (in bp-legacy).
Secondly, take a look at your theme’s JavaScript files (if it has any) to see if there’s anything that might conflict with BP’s JavaScript
-
Henry Wright replied to the topic Display a Google Calendar in the user profile in the forum How-to & Troubleshooting 10 years, 12 months ago
Hi @iuriem
I haven’t seen a plugin that can do this but try searching the WordPress Plugin Directory to see if anything is available.
-
Henry Wright replied to the topic [Resolved] What is the Member Activity URL? in the forum How-to & Troubleshooting 10 years, 12 months ago
-
Henry Wright replied to the topic Excluding role from (almost) everything in the forum How-to & Troubleshooting 10 years, 12 months ago
I think creating a user role with ‘forum-only’ capabilities is perhaps your best bet. Try asking over at the bbPress support forum. The guys over there are specialists when it comes to forums (bbPress) so you may find some more joy there.
-
Henry Wright replied to the topic [Resolved] How To Get Notification Count? (Code)? in the forum How-to & Troubleshooting 10 years, 12 months ago
-
Henry Wright replied to the topic [Resolved] How To Get Notification Count? (Code)? in the forum How-to & Troubleshooting 10 years, 12 months ago
-
Henry Wright replied to the topic tags outside the sidebar in the forum Requests & Feedback 10 years, 12 months ago
I think this might be a known issue but try searching on Trac to see if there’s an open ticket and if not then feel free to create one.
-
Henry Wright replied to the topic [Resolved] How To Get Notification Count? (Code)? in the forum How-to & Troubleshooting 10 years, 12 months ago
Then perhaps you have zero unread notifications?
-
Henry Wright replied to the topic [Resolved] How To Get Notification Count? (Code)? in the forum How-to & Troubleshooting 10 years, 12 months ago
…how do I get it?
That depends. For example:
If you want the currently logged-in user:
$user_id = bp_loggedin_user_id();If the context is a member’s profile page and you want the displayed member:
$user_id = bp_displayed_user_id();So, depending on the above, what you need may be either:
bp_notifications_get_unread_notification_count(…[Read more] -
Henry Wright replied to the topic [Resolved] How To Get Notification Count? (Code)? in the forum How-to & Troubleshooting 10 years, 12 months ago
…how do I get it?
That depends. For example:
If you want the currently logged-in user:
$user_id = bp_loggedin_user_id();If the context is a member’s profile page and you want the displayed member:
$user_id = bp_displayed_user_id();So, depending on the above, what you need may be either:
bp_notifications_get_unread_notification_count(…[Read more] -
Henry Wright replied to the topic [Resolved] How To Get Notification Count? (Code)? in the forum How-to & Troubleshooting 10 years, 12 months ago
…how do I get it?
That depends. For example:
You want the currently logged-in user:
$user_id = bp_loggedin_user_id();The context is a member’s profile page and you want the displayed member:
$user_id = bp_displayed_user_id();So, depending on the above, what you need may be either:
bp_notifications_get_unread_notification_count(…[Read more] -
Henry Wright replied to the topic [Resolved] How To Get Notification Count? (Code)? in the forum How-to & Troubleshooting 10 years, 12 months ago
How are you getting the user’s ID
$user_id? -
Henry Wright replied to the topic Excluding role from (almost) everything in the forum How-to & Troubleshooting 10 years, 12 months ago
Hi @melissa1968
This will be possible to do but will be quite a big project (unless you can find a plugin that does the job for you).
You’d need to go through every BP component, picking out all of the various actions that can be done by members. Then you’d have to write your custom code to exclude the given user from from being able to perform…[Read more]
-
Henry Wright replied to the topic [Resolved] How To Get Notification Count? (Code)? in the forum How-to & Troubleshooting 10 years, 12 months ago
There’s 2 types of notifications: a) read and b) unread.
bp_notifications_get_unread_notification_count( $user_id )will get you the unread count so you could use that value in the comparison you mentioned here. -
Henry Wright replied to the topic [Resolved] How To Get Notification Count? (Code)? in the forum How-to & Troubleshooting 10 years, 12 months ago
There’s 2 types of notifications: a) read and b) unread
bp_notifications_get_unread_notification_count( $user_id )will get you the unread count so you could use that value as the comparison you mentioned here. - Load More
@henrywright
Active 1 year, 10 months ago