Skip to:
Content
Pages
Categories
Search
Top
Bottom

  • About
  • News
  • Codex
  • Develop
  • Make
  • Forums
  • Download

BuddyPress.org


  • All Members
  • RSS
  • Profile picture of Henry Wright

    Henry Wright replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 10 years, 4 months ago

    @markob17 great to see you got it working. I’m wondering though, which function of mine isn’t working?

  • Profile picture of Henry Wright

    Henry Wright replied to the topic how can i change word Forums? in the forum How-to & Troubleshooting 10 years, 4 months ago

    Can you paste the code you’re using?

  • Profile picture of Bergam

    Bergam started the topic separate languages for wordpress and buddypress in the forum How-to & Troubleshooting 10 years, 4 months ago

    Hi,

    I am using the latest versions of WordPress and Buddypress.
    I want to use my dashboard in English because that is what I am used to.
    I downloaded language pack for Buddypress but it only works if my dashboard’s language is also Turkish. When I change it back to English, Buddypress becomes english as well. I have been checking online for w…[Read more]

  • Profile picture of Mark

    Mark replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 10 years, 4 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 enough bp_is_current_action is also needed alongside it to do what I need.

    Here’s what worked:
    function wp_redirectauser() {
    if (…
    [Read more]

  • Profile picture of Henry Wright

    Henry Wright replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 10 years, 4 months ago

    Haven’t used it in a while but try bp_is_current_item(). So, your condition would be:

    if ( bp_is_groups_component() && bp_is_current_item( 'events' ) ) {
    // Code.
    }

  • Profile picture of Mark

    Mark replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 10 years, 4 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]

  • Profile picture of Henry Wright

    Henry Wright replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 10 years, 4 months ago

    Try bp_is_groups_component().

    Ref: https://codex.buddypress.org/developer/template-tag-reference/

  • Profile picture of Mark

    Mark started the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 10 years, 4 months ago

    Hi,

    Is there an equivalent conditional tag to bp_is_current_component(‘events’) but for Buddypress groups?

    I am trying to target a non default Buddypress group page for an event plugin I am using. Using bp_is_current_component(‘events’) works perfect for the tab in member profiles but I tried all the tags on the Buddypress Template tag…[Read more]

  • Profile picture of Henry Wright

    Henry Wright replied to the topic how can i change word Forums? in the forum How-to & Troubleshooting 10 years, 4 months ago

    @bruce30 I’ve made an edit to the code above which means it’ll now work for all text on your site, not just bbPress or BuddyPress text. So now if a new third-party plugin you add decides to use the word Forum, that will also be translated. I think this is a better approach.

  • Profile picture of Henry Wright

    Henry Wright replied to the topic how can i change word Forums? in the forum How-to & Troubleshooting 10 years, 4 months ago

    @bruce30, building on @danbp‘s answer, you can add another case. Take a look at this example below which has 4 cases. Feel free to add or remove cases yourself. The number of cases you use will depend on the number of words or phrases you need to change.

    function bruce_localisation( $translated, $original_text, $domain ) {

    switch (…[Read more]

  • Profile picture of sLa Team

    sLa Team's profile was updated 10 years, 4 months ago

    sLa Team

    @slangjis

    View Profile
  • Profile picture of sLa Team

    sLa Team's profile was updated 10 years, 4 months ago

    sLa Team

    @slangji

    View Profile
  • Profile picture of Henry Wright

    Henry Wright replied to the topic how can i change word Forums? in the forum How-to & Troubleshooting 10 years, 4 months ago

    I think the language file is your best bet. Have you tried that?

  • Profile picture of Henry Wright

    Henry Wright replied to the topic how can i change word Forums? in the forum How-to & Troubleshooting 10 years, 4 months ago

    A slug is what you see in the URL. So for example:

    example.com/this-is-a-slug/

  • Profile picture of Henry Wright

    Henry Wright replied to the topic how can i change word Forums? in the forum How-to & Troubleshooting 10 years, 4 months ago

    I think so with the use of a language file.

    Ref: https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/

    Also, according to the Customizable Slugs in BuddyPress article, you should be able to add this to your wp-config.php file to change your slug:

    define ( 'BP_FORUMS_SLUG', 'discussions' );

    Ref:…[Read more]

  • Profile picture of Henry Wright

    Henry Wright replied to the topic how can i change word Forums? in the forum How-to & Troubleshooting 10 years, 4 months ago

    Do you mean change the wording of the navigation tab that reads Forums?

  • Profile picture of Schenk Smith LLC

    Schenk Smith LLC's profile was updated 10 years, 4 months ago

    Schenk Smith LLC

    @schenksmithllc

    View Profile
  • Profile picture of Henry Wright

    Henry Wright replied to the topic Redirect After "Join Group" Continued in the forum How-to & Troubleshooting 10 years, 4 months ago

    The code you’ve posted gets the current group and first compares that group’s slug to social-group-547668396. If a match occurs, the default tab is set to calendar. If no match occurs then the group’s slug is compared to husbands-out. If a match occurs, the default tab is set to forum. If the group’s slug doesn’t match any of those, the default…[Read more]

  • Profile picture of Henry Wright

    Henry Wright replied to the topic how can i change word Forums? in the forum How-to & Troubleshooting 10 years, 4 months ago

    Hi @bruce30

    Give this guys a shout over at bbPress.

  • Profile picture of Henry Wright

    Henry Wright replied to the topic compatibility issue with oauth plugin in the forum How-to & Troubleshooting 10 years, 4 months ago

    do you mean remove something into de plugin code?

    No.

    remove_action() is a function that lets you remove an action hook. Try reading up on WordPress actions; they’re a way to modify behaviour without editing core files.

  • Load More

WordPress.org bbPress.org BuddyPress.org Matt Blog RSS

GPL Contact Us Privacy Terms of Service X

Skip to toolbar
    • WordPress.org
      • About WordPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
    • bbPress.org
      • About bbPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
    • BuddyPress.org
      • About BuddyPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
  • Log in
  • Anonymous
    • AnonymousNot Logged In
    • Register
    • Log In