-
Elia replied to the topic How to block access to specific groups based on membership in the forum How-to & Troubleshooting 1 year, 9 months ago
@henrywright @mom4321 Could you please help me to use this code?
if ( bp_is_groups_component() && 'group-name-here' === bp_current_item() ) {
// Restrict access
}I would like to restrict specific group for specific membership plan
-
Ed N. replied to the topic What happened to OPEN??? in the forum Creating & Extending 3 years, 1 month ago
@vapvarun – Thank you. I will take a look to see if this helps.
@imath, @jjj, @DJPaul, @boonebgorges, @mercime, @hnla, @shanebp, @danbp, @henrywright
Still wondering why the official docs are hidden from developers…
-
Ed N. replied to the topic What happened to OPEN??? in the forum Creating & Extending 3 years, 1 month ago
@imath, @jjj, @DJPaul, @boonebgorges, @mercime, @hnla, @shanebp, @danbp, @henrywright
Anyone out there?
-
Peter Hardy-vanDoorn replied to the topic explode function in the forum Ideas 7 years, 3 months ago
@henrywright Like I said… off the top of my head 🙂
-
Steve Taylor replied to the topic are there potential issues with completely dequeuing legacy CSS? in the forum Creating & Extending 7 years, 4 months ago
Thanks @henrywright. I’m discovering a few bits that are ‘utility’ styles that I’m copying over (e.g. screen reader text class). It’d be really useful if things like this were in a separate ‘core’ include for people who want to strip back to a minimum. Anyway, I’m ploughing ahead, I’ll keep an eye on the markup.
-
Round World Travels replied to the topic Display code from xprofile field in the forum How-to & Troubleshooting 7 years, 8 months ago
Hi @henrywright, thanks for responding. So, that works in displaying the code but it don’t actually fetch the ad. It just shows the script code. I’m wondering if I can actually make it run the script. It is a Adsense Script.
Michael
-
Henry Wright replied to the topic How to Count Custom Post Types in Nav Tabs? in the forum How-to & Troubleshooting 8 years, 6 months ago
@henrywright but apparently I need to use bp_setup_nav to add a navigation tab
Yes, that’s right, you do.
This is one of those situations where you seem to be doing everything right but a bit of digging is needed to see what’s actually wrong.
-
Jasper replied to the topic IMPORT / EXPORT BUDDYPRESS DATA in the forum How-to & Troubleshooting 8 years, 8 months ago
@henrywright Thanks, that’s done now. Surprised no one has posted this already…
-
Jasper replied to the topic IMPORT / EXPORT BUDDYPRESS DATA in the forum How-to & Troubleshooting 8 years, 8 months ago
@henrywright Thanks for your reply. I looked at Trac but can only find where to file a bug report, not a feature request.
I don’t want to sound ungrateful and realise the BuddyPress team are volunteers doing a great job. But import / export seems fundamental to me and I don’t understand why it is not built in. I’ve seen this sentiment reflected…[Read more]
-
rosyteddy replied to the topic Is it possible to use Peepso with Buddypress? in the forum How-to & Troubleshooting 8 years, 9 months ago
@henrywright Thanks. It seems there is no mutual incompatibility between the core plugins.
I would have been more interested in the Photo plugin of Peepso as there is absolutely no good photo / media plugin or as-core-feature in Buddypress even after so many years. Peepso have got the photo feature excellent and fast, and is not dated like Rtmedia…[Read more] -
Mark replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 8 years, 11 months ago
No problem @henrywright, thank you for your help. My coding experience is nil so it has been an interesting experience as I have to Google around for everything. It’s great to have this forum which is full of code snippets to use/modify and experts like yourself to ask for help when I hit a wall. Thanks!
-
Mark replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 8 years, 11 months ago
@henrywright Hi Henry, I was referring to this one:
if ( bp_is_groups_component() && bp_is_current_item( 'events' ) ) {
// Code.
}I had to use
bp_is_current_action( 'events' )
in place ofbp_is_current_item( 'events' )
-
Mark replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 8 years, 11 months ago
@henrywright Thanks Henry, unfortunately your function didn’t work either, however, you put me on the right track! Before speaking to you I had already sworn off
bp_is_groups_component()
. Interestingly enoughbp_is_current_action
is also needed alongside it to do what I need.Here’s what worked:
function wp_redirectauser() {
[Read more]
if (… -
Mark replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 8 years, 11 months ago
@henrywright This conditional tag doesn’t seem to work for me. When a subscriber tries to access a specific tab within a group or their profile I want to redirect them to my sales page. I got this to work fine with the ‘events’ page on member profiles but not groups. Using
bp_is_groups_component()
redirects all group pages, not just the events…[Read more] -
ronia replied to the topic Buddypress and Calypso? in the forum How-to & Troubleshooting 9 years, 1 month ago
@henrywright Thanks for the link. In any case what I understood Calypso is for Admin backend of WP – so its not very relevant for BP.
-
developer replied to the topic urgent !!!! need a hook which is called during click og comment button urgent! in the forum How-to & Troubleshooting 9 years, 3 months ago
using javascript?
really how?
could you please give me some example regarding this?
@henrywright -
developer replied to the topic urgent !!!! need a hook which is called during click og comment button urgent! in the forum How-to & Troubleshooting 9 years, 3 months ago
@henrywright i used the following hooks for display captcha and validate captcha …
add_action(“bp_after_group_details_creation_step”,”custom_function_display”);
add_action(“bp_activity_comment_posted”,”custom_function_validate”); -
developer replied to the topic urgent !!!! need a hook which is called during click og comment button urgent! in the forum How-to & Troubleshooting 9 years, 3 months ago
@henrywright are you sure?
becausebp_activity_comment_posted
not working actually…
sorry for bothering you …
thanks in advance -
developer replied to the topic urgent !!!! need a hook which is called during click og comment button urgent! in the forum How-to & Troubleshooting 9 years, 3 months ago
@henrywright i mean when you first create the group and first step appear there is a button in bottom which is
save and continue
i need a hook which call on click of this button… -
developer replied to the topic urgent !!!! need a hook which is called during click og comment button urgent! in the forum How-to & Troubleshooting 9 years, 3 months ago
@henrywright could you please give me the hook for
create group form
same as you given me for the comment in your previous reply - Load More
@henrywright
Active 9 months, 1 week ago