Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress Editable Group Slugs

Viewing 16 replies - 1 through 16 (of 16 total)
  • *deletes thread as it’s full of trolls and wonders why aforementioned troll doesn’t commit this into the core ;)*


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Haha!

    This could make it into the core, but until then I’ll release it as a plugin to see if there’s demand for it and fix any bugs. Funny, after making this plugin I started to wonder if it’s really a good idea to let people do this at all.

    Honestly I’d like to make this slug editing a little more classy so that other areas of BP could use it, but until then it’s just an extension of the group API.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Updated to 1.0


    Alex
    Participant

    @hempsworth

    Could have done with this yesterday, had to search through phpMyAdmin to try and change all of the slug references… :S


    r-a-y
    Keymaster

    @r-a-y

    Sweet! Definitely need this! Thanks JJJ!

    JJJ: Can I recommend changing the word “slug” to “url”? The word “slug” doesn’t really make sense to the end-user.

    EDIT: Just tried installing this on WPMU 2.8.5.2 / BP 1.1.2, got this error when activating:

    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /var/www/example.com/wp-content/plugins/bp-edit-group-slug/bp-groupslugs.php on line 195

    I see you’ve left in this bit of code for a future version, so I’ve just commented this out for now.


    r-a-y
    Keymaster

    @r-a-y

    Okay some feedback (I know this is an early release, but bare with me!).

    – When editing the group slug to an already-created group, the current slug should be automatically populated in the text field

    – Allow for templates in the theme directory to be used

    – I’m getting this error:

    function BP_Group_Extension::widget_display() must be over-ridden in a sub-class.

    This error pops up right after the group members loop. Parsing stops after the error. I don’t see the group wire.

    This is the steps I made to duplicate this:

    – Create a new group up to step 1, exit the rest of the group creation process.

    – View any group and the error appears.

    Deactivating the plugin reverts things to normal.

    jjj: just add an empty method in your group extension for widget_display()


    abcde666
    Participant

    @erich73

    is it possible to change the following URL at my own website from e.g.:

    domain.com/groups/group-name

    towards

    domain.com/group-name

    I would like to have this plugin if this is possible to achieve.

    Many thanks !


    r-a-y
    Keymaster

    @r-a-y

    @Erich,

    This plugin doesn’t remove the /groups/ base from the permalink.

    It allows the group admin to change the group slug (which is autogenerated at the moment) to something a bit more palatable.

    Eg.

    domain.com/groups/teenage-mutant-ninja-turtles-fan-group

    could be changed to something shorter like:

    domain.com/groups/tmnt-fan-group

    or whatever!


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    @r-a-y, I didn’t think anyone would need to wigify it, but I’ll add that back in.

    I’m not exactly sure what “T_PAAMAYIM_NEKUDOTAYIM” is and it definitely isn’t in my code… Huh…

    Expect a 1.0.1 today.


    r-a-y
    Keymaster

    @r-a-y

    I looked up T_PAAMAYIM_NEKUDOTAYIM briefly yesterday; it’s something to do with the double-colons.

    I commented out line 195 for now:

    return $this_group::save();

    That’s a cool message. Google suggest it means “missing double dots” aka ::.

    Are you trying to call a static class function from a dynamic variable thingy? e.g.

    $myvar = ‘something’;

    $myvar::explode_world();


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Yeah I was, but it should have been returning true before that code got executed. I commented it out for 1.0.1 so that problem should be gone now.

    When I first saw it, I thought it was a T-Pain joke. Either that, or a Harry Potter spell of some kind.


    abcde666
    Participant

    @erich73

    Dear JJJ,

    I just saw that when I change the Group-name (as a user, not as the Admin), then the URL of that Group-page does not get changed but remains the URL from the originally created Group-name.

    How to solve this, so that the URL gets updated when the user is changing the Group-name ?

    Is this actually possible to do ?

    Many thanks !


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    @erich73, yes it’s possible to do, but I’m not sold that it’s a good idea to auto change slugs. Right now it works the same as WordPress does. Since slugs are important for SEO, automatically changing them can do more damage than good.

    I’ll probably make it an option via a constant because I can see value in this for some setups.

Viewing 16 replies - 1 through 16 (of 16 total)
  • The topic ‘BuddyPress Editable Group Slugs’ is closed to new replies.
Skip to toolbar