Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Trying to change slug of Group Tab. Tried 3 different ways still no good? (8 posts)

Started 10 months, 2 weeks ago by: johnnymestizo

  • Hi

    I am trying to change my group tab slugs at:

    http://tradr.co/groups/test-group-1/

    I have a discussions tab. I figured out how to change the name in my themes functions.php

    But I cant change the slug?

    ATTEMPT 1

    in wp-config.php
    define( ‘BP_FORUMS_SLUG’, ‘discussions’ );
    change to discussions no good

    ATTEMPT 2
    in bp-custom.php in plugins folder…
    define( ‘BP_FORUMS_SLUG’, ‘discussions’ );
    no good.

    ATTEMPT 3
    in themes functions.php
    $bp->bp_options_nav['groups']['forum']['slug'] = ‘discussions’;
    no good

    This tutorial about changing slugs did not work.

    http://codex.buddypress.org/extending-buddypress/customizing-labels-messages-and-urls/

    I have not attempted changing the language file… surely, this should not be that hard…

  • Profile picture of Roger Coathup Roger Coathup said 10 months, 2 weeks ago:

    Which theme are you using? Does it work (with attempt one) if you switch to no-default theme?

    If not, did you cut and paste the line? You may have incorrect type of quotes. Try typing line from scratch in editor

  • Profile picture of Roger Coathup Roger Coathup said 10 months, 2 weeks ago:

    Bp-default .. Not no-default! Auto-correct spelling!

  • Added this to wp-config.php whilst using bp-default

    // Custom Buddypress slugs
    define( ‘BP_ACTIVATION_SLUG’, ‘activate’ );
    define( ‘BP_ACTIVITY_SLUG’, ‘activity’ );
    define( ‘BP_BLOGS_SLUG’, ‘shops’ );
    define( ‘BP_FORUMS_SLUG’, ‘discussions’ );
    define( ‘BP_FRIENDS_SLUG’, ‘friends’ );
    define( ‘BP_GROUPS_SLUG’, ‘groups’ );
    define( ‘BP_MEMBERS_SLUG’, ‘members’ );
    define( ‘BP_MESSAGES_SLUG’, ‘messages’ );
    define( ‘BP_REGISTER_SLUG’, ‘register’ );
    define( ‘BP_SEARCH_SLUG’, ‘search’ );
    define( ‘BP_SETTINGS_SLUG’, ‘settings’ );
    define( ‘BP_XPROFILE_SLUG’, ‘profile’ );

    /* That’s all, stop editing! Happy blogging. */

  • that did not work

  • created a bp-custom.php and put it in wp-content/plugins

    added this within php tags

    // Custom Buddypress Stuff

    // Custom Buddypress slugs
    define( ‘BP_ACTIVATION_SLUG’, ‘activate’ );
    define( ‘BP_ACTIVITY_SLUG’, ‘activity’ );
    define( ‘BP_BLOGS_SLUG’, ‘shops’ );
    define( ‘BP_FORUMS_SLUG’, ‘discussions’ );
    define( ‘BP_FRIENDS_SLUG’, ‘friends’ );
    define( ‘BP_GROUPS_SLUG’, ‘groups’ );
    define( ‘BP_MEMBERS_SLUG’, ‘members’ );
    define( ‘BP_MESSAGES_SLUG’, ‘messages’ );
    define( ‘BP_REGISTER_SLUG’, ‘register’ );
    define( ‘BP_SEARCH_SLUG’, ‘search’ );
    define( ‘BP_SETTINGS_SLUG’, ‘settings’ );
    define( ‘BP_XPROFILE_SLUG’, ‘profile’ );

    still no good

  • awwww snap. it is talking about the main header link… forums!

    i am talking about the group tab forum !

    damn!

    Still attempt 3 is not working which should change the group tab forum …

    Johnny

  • Profile picture of Paul Gibbs Paul Gibbs said 10 months, 2 weeks ago:

    I don’t think you can easily change sub-nav items’ slugs in 1.2.9