Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change default URL for forum creation — DO NOT WANT ‘FORUM’ to be in it


  • lookingahead
    Participant

    @lookingahead

    Hi!

    So….aaaallll I really want to do is change the default URL path for each new forum.

    I do not want the word ‘forum’ to be in any URL, not ever. I want the word ‘forum’ to be ‘chat’ — not ‘forum’….

    Example:
    – current default URL path: https://sitename.com/interaction/talk-name/forum/
    – desired default URL path: https://sitename.com/interaction/talk-name/chat/

    No matter what I do to set it up in the ‘settings’ area in WordPress, ‘forum’ is tacked on to the end of the URL….I don’t want the term, ‘forum’ to be ANYWHERE — I want ‘chat’ to be there instead.

    Suggestions?

Viewing 20 replies - 1 through 20 (of 20 total)

  • Robin W
    Moderator

    @robin-w

    dashboard>settings>forums and set the root to what you want


    lookingahead
    Participant

    @lookingahead

    @robin-w i did that, and that didn’t work


    lookingahead
    Participant

    @lookingahead

    what i did


    Robin W
    Moderator

    @robin-w

    can you show me all the settings for roots in dashboard>settings>forums


    lookingahead
    Participant

    @lookingahead

    here you go, @robin-w

    forum


    Robin W
    Moderator

    @robin-w

    you are using buddypress which is the work of the devil

    try disabling this and see if that fixes, if it does re-enable and ask this in the buddypress support forum.


    lookingahead
    Participant

    @lookingahead

    @robin-w LOLOLOL — ‘the work of the devil’ hahaha….yeah it’s pretty messed up as a program goes at times, hahaha…. 😀

    disabled, did not fix

    the buddypress people said on another thread to someone else asking the same question to ask it here, because it was a bbpress issue….now you tell me to go ask it there, because it might be a buddypress issue LOL

    i even tried modifying the ‘bp-custom.php’ file for setting the name of the default URL slug; nada (tho that is a buddypress thing, figured i’d mention it here to show you how long i’ve been trying to solve this)

    isn’t there a plugin out there that can accomplish the ‘change the default URL slug for forums’ issue?


    Robin W
    Moderator

    @robin-w

    what version of bbpress are you using ?


    lookingahead
    Participant

    @lookingahead

    @robin-w i’m using version 2.5.14 — that’s the latest version, right?


    lookingahead
    Participant

    @lookingahead

    also, i’m using what i believe is the latest version of buddypress (version 3.2.0)


    Robin W
    Moderator

    @robin-w

    what is confusing me is that in

    dashboard>settings>forums>single forum slug you have

    discussion where I have forum, and it is this slug that is the extra one showing in the url.

    Why you have discussion, I have no idea, I have not seen this before

    all I can suggest is that it could be a theme or plugin issue issue, so you’ll need to test to find out which

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    and see what is setting this to discussion

    Then come back


    lookingahead
    Participant

    @lookingahead

    by the way, this is what i’m referring to….

    on a thread at buddypress forums talking abt the same issue i’m mentioning here, this was an ‘official-ish’ response from someone who develops buddypress:

    need to know


    lookingahead
    Participant

    @lookingahead

    @robin-w oh no worries on this being a ‘new’ thing for you to hear — as someone who does not work with buddypress like yourself you’re never going to hear this. it’s because it is a way that bbpress sends information to buddypress when buddypress pulls info from bbpress into it, when it uses bbpress programming to create ‘group forums.’

    it’s not a bug; it’s how the interface between bbpress and buddypress works.

    at least, that’s what i’m gathering now, after reading other people’s posts with the same issue in forums all over the web.

    so my question to you now: what is the file that bbpress uses to say what the slug is — the URL name, which in this case is just ‘forum’….not ‘forums’ but ‘forum’ — so i can alter that?

    i HHAAAATE altering core files, but in this case it’s likely needed.

    whatever ‘default URL/slug’ command is used when buddypress pulls in forum creation/function into bbpress……chances are, that is the file i will (gulp!) need to modify.

    i’m guessing that the same code/file is used to be the ‘default slug name’ in bbpress. which is….’forum’

    what file does that? creates a default ‘forum’ in the URL/slug when a forum is created?


    Robin W
    Moderator

    @robin-w

    the slug is a setting held in the database, not in code or a file.

    the single forum root slug is held in wp_options in the database, and is changed by the setting in
    dashboard>settings>forums>single forum slug where you have a label of ‘discuusion’ and I even with buddypress have a description of ‘Forum’, so something is messing round with that and stopping you setting ‘forum’ I think.

    I don’t get ‘discussion’ as the single forum label when I use buddypress, so something else is setting that, hence my suggestions above.

    so if you go to wp_options table and find _bbp_root_slug you can see what it is set to.

    You could just go to wp_options table and find _bbp_root_slug and set it to ‘chat’


    lookingahead
    Participant

    @lookingahead

    @robin-w oh, i used a string modifier to change ‘forum’ to ‘discussion’ — that is how i got the tabs in buddypress groups to say ‘discussion’ versus ‘forum’

    i’ll go back and modify it to say ‘chat’ later, but for now many things in the site that used to say ‘forum’ say ‘discussion’….because i can change that at-will and it’s not causing conflicts, i’ve not updated it yet to say ‘chat.’

    the problem that is currently unmovable though is the group forum slug name; it still says ‘forum’ at the end of all buddypress groups. that was unaffected by the string modifier, and is apparently hard-coded.

    i went to the wp_options table and it does currently say ‘chat’…..sooooo…….apparently that setting is not being used in buddypress when it creates group forum slugs. it is defaulting to ‘forum’ no matter what i do.

    is there another place within bbpress where the instructions on how to create a slug for any type of forum whatsoever is listed…even ‘hard-coded’ as a default setting?


    Robin W
    Moderator

    @robin-w

    so in wp-options what is_bbp_forum_slug set to ?

    If forum, then set it to chat


    Robin W
    Moderator

    @robin-w

    amended the previous post to

    _bbp_forum_slug


    lookingahead
    Participant

    @lookingahead

    @robin-w _bbp_forum_slug was already set to chat when i first opened it….unfortunately 🙁

    that’s why i’m hoping there is another area that sets the name for a forum as ‘forum’…..somewhere


    Robin W
    Moderator

    @robin-w

    not that I know – I cab only suggest as a test you remove your string modifier and see if that fixes.


    lookingahead
    Participant

    @lookingahead

    @robin-w turns out it was a BuddyPress issue. 🙂

    in the BuddyPress forums, an admin there posted this fix — and it worked!

    here’s what they said:

    Hi,

    This is hardcoded in bbpress plugin here bbpress\includes\extend\buddypress\groups.php.

    Find the line $this->slug = ‘forum’; but I think changing this may create some issues but you can check if it works fine for you or not. Also changing anything in core file is never recommended because on the next update you will lose it and then have to redo again.

    One recommendation is that always take a backup of your site when you are doing such core changes.

    Thanks

    i hate editing in the core files, but….well, this was a last resort that apparently has no other solution for now. i’ll keep looking though, and update my files in a better way if any alternative comes up.

Viewing 20 replies - 1 through 20 (of 20 total)
  • You must be logged in to reply to this topic.
Skip to toolbar