lookingahead (@lookingahead)

Forum Replies Created

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

  • lookingahead
    Participant

    @lookingahead

    Oh wow — I figured it out, nm!! 🙂

    You can do it via CSS….like this:

    #group-admins {
      pointer-events: none;
      cursor: default;
      text-decoration: none;
      color: black;
    }

    And in bbPress apparently that is the correct way to write that code; the #group-admins part will likely work for everyone, just as it is, because it appears to be the default name for that.

    Whew!


    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.


    lookingahead
    Participant

    @lookingahead

    I hate to resurrect an old thread, but it contains pretty much everything I’d need to reference.

    The code posted by @crzyhrse above WORKS — for removing the profile links from author avatars when those authors are replying to a thread in a forum. BRILLIANT!

    Now, I’d like to use the same technique/code on the ‘Group Administrator’ avatars.

    I want to KEEP the images, the name…just like how the code posted (above) by @crzyhrse works with people in a discussion. For the life of me, though, I can’t seem to figure out how to use that same code to disable the links in ‘Group Administrator’ avatars, while keeping the images and names intact.

    Anyone happen to have any ideas?

    Here’s the code I’m using…note that the first half is the code that works to shut off links to author profiles PERFECTLY…it’s the second chunk of code that doesn’t seem to affect ‘Group Administrators’ in the same manner.

    Here goes:

    /* Remove link urls from forum author instances...
    */
    add_filter( 'bbp_get_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_reply_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_topic_author_link', 'remove_author_links', 10, 2);
    function remove_author_links($author_link, $args) {
    $author_link = preg_replace(array('{<a[^>]*>}','{}'), array(" "), $author_link);
    return $author_link;
    }
    
    /* Remove link urls from admin avatars...
    */
    add_filter( 'BBP_Users_Admin_link', 'remove_Users_Admin_links', 10, 2);
    function remove_Users_Admin_links($Users_Admin_link, $args) {
    $Users_Admin_link = preg_replace(array('{<a[^>]*>}','{}'), array(" "), $Users_Admin_link);
    return $Users_Admin_link;
    }
    

    Thanks in advance for any and all assistance!


    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


    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?


    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?


    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

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


    lookingahead
    Participant

    @lookingahead

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


    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?


    lookingahead
    Participant

    @lookingahead

    here you go, @robin-w

    forum


    lookingahead
    Participant

    @lookingahead

    what i did


    lookingahead
    Participant

    @lookingahead

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

    In reply to: Single Forums

    lookingahead
    Participant

    @lookingahead

    P.S.: I’m using bbPress with BuddyPress. 🙂

    In reply to: Single Forums

    lookingahead
    Participant

    @lookingahead

    HI all……so @Robin-w can you help me do this with that plugin somehow?

    I only want one topic per forum. Just one.

    And that single-topic forum? It will be attached to a hidden group.

    So I’m looking for….a way to bypass the screen that lists “topics” in a forum; there will only be ONE topic PER forum, so having that screen there is unnecessary and confusing to my forum participants. And creates “click fatigue.” They should be able to get to the group front page, click “Forum”…then be brought to the discussion on the only topic that that forum will ever be tied to.

    And each group’s topic will be different. But ONLY one topic per forum, per hidden group.

    Note: I’ll eventually be creating hundreds of individual hidden groups….so I do not want to have to go in and hand code the direct link to the single forum topic for each of these groups, just to bypass a page, each time….

    Soooo……I want the flow to be:
    – [click on ‘My Groups’ which is right next to ‘All Groups’ — it’s at that page]
    – [I then see a group link, in list of groups….so I click on a desired group]
    – [get to that group’s front page]
    – [click on ‘Forum’ option there]
    – [***NOW I should see no other things to choose from — there are no other topics that will be in this forum, so I should not be brought to a page with a list of topics to choose from; instead, I am immediately brought to a discussion, which is a discussion that is covering the only topic that that group is ever going to discuss]

    HOW do I achieve this….???

    I was looking for a widget that was a “discussion” widget that I could use to customize the group front page, but never found one.

    And the “activity stream” is littered with an RSS feed and a search bar, and it doesn’t allow for uploading pictures (WHICH IS CRITICAL)….forums allow to upload pictures. So I’d just use the Activity Stream if it was feasible, which it appears to not be. But hell — if that was easier to modify than skipping a forum ‘topic list’ page….let me know that too, please.

    Thanks in advance for all your assistance; I am desperate to finally solve this, lol….! 😀

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