Jon Fergus (@jon-fergus)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 39 total)
  • @jon-fergus

    Participant

    @lijitimit unfortunately no. I haven’t found or seen a solution to this yet. We have both problems: 1. the reply box pops up beneath the last child-reply instead of directly under the reply one is replying to, and 2. the TinyMCE editor doesn’t work with a dynamic reply box. We’ve diabled the TinyMCE editor for replies in favor of the standard one, and still have no solution to issue 1.

    @jon-fergus

    Participant

    Really? No one has insight into this?

    @jon-fergus

    Participant

    I see this same issue on my staging site. The error only appears when I’m on the actual Dashboard homepage though, not when I’m in any of the other pages in the Dashboard. When the error message shows wp also shows the bubbles saying I have plugin updates. When I click on plugins, the error message is gone and so is the update bubble (all of my plugins are fully updated).

    @jon-fergus

    Participant

    We had this patched and it was working fine, but now the issue returned. Edits to replies are now creating multiple activity feed entries and multiple notification emails.

    We’re using:
    bbpress Version 2.5.11 (with the patch to activity.php applied)
    Buddypress Version 2.7.3

    This is what we have in activity.php:

    		// Get the activity stream item, bail if it doesn't exist
            $existing = new BP_Activity_Activity( $activity_id );
     		if ( empty( $existing->component ) )
    			return null;

    Would love some help with this.

    In reply to: Upvote for bbPress

    @jon-fergus

    Participant

    I’m also very interested in this feature.

    @jon-fergus

    Participant

    No change from that either. Same functionality, with the reply form popping up below all child replies.

    @jon-fergus

    Participant

    @contemplate This doesn’t work for me. Tried it on my staging site and there was no change. Tried it on my live site and it reverted back to the original issue (i.e. clicking reply caused the entire page to reload, and then user was brought to the static reply form).

    @jon-fergus

    Participant

    Just for reference, the site linked to in this discussion seems to have figured out how to get the reply form to appear directly under the intended reply.

    https://buddydev.com/support/forums/topic/show-bbpress-reply-form-beneath-each-reply/

    @jon-fergus

    Participant

    r-a-y and Robkk, you can have a look on my staging site’s group topic to see the reply form location issue live. This is how it operates for me (using Robkk’s example above): Attempting to reply to Reply 1 will prompt the reply form to appear under Reply 3. Attempting to reply to Reply 2 will also prompt the reply form to appear under Reply 3. The only time the reply form appears where we want it is when replying to Reply 3 (i.e. the last reply of any column of replies, so long as there are no sub-replies).

    See here: http://staging-nexus.universaltheosophy.com/groups/test-group/forum/topic/test-group-topic/

    I think I remember seeing someone playing with the reply.js code trying to tackle this very issue, so will try to find that again. At the time it didn’t help me because I still hadn’t got reply.js to work at all.

    I’ll spend some time working through the visual tab issue. Thanks for the links.

    @jon-fergus

    Participant

    Damn, another issue has come up. On my main site I’ve added the “Visual” tab to the reply form, using the following code in my functions.php file:

    /* add visual editor to bbpress replies */ 
    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    When the reply form is at its default location in a bbpress topic, the Visual tab works fine. But when the reply form pops up after clicking “reply” on a comment, the Visual tab fails to work (can’t type in it or see the contents). I reproduced the issue on my staging site for you to see:

    http://staging-nexus.universaltheosophy.com/groups/test-group/forum/topic/test-group-topic/

    I’m also using the “TinyMCE Advanced” plugin, but can verify that the issue with the Visual tab is independent of that plugin.

    @jon-fergus

    Participant

    You’re a life-saver!! Works on my staging site and now it’s working on my main site also!

    One other little thing though. I notice that the reply form appears below all sub-replies of a reply, instead of directly beneath the intended reply.

    For instance, here: http://staging-nexus.universaltheosophy.com/groups/test-group/forum/topic/test-group-topic/

    If you click on “reply” under reply #31, the reply form shows up beneath reply #32, instead of directly beneath reply #31.

    Do you know if there’s a work around for that also?

    @jon-fergus

    Participant

    thank you so much Robkk! I’ll be so thankful if you’re able to find a solution/workaround. I’ll put some time into it also, but am afraid I’m not knowledgeable enough to get to the solution.

    @jon-fergus

    Participant

    @jon-fergus

    Participant

    *edit: somehow deleted my previous comment*

    Ok. I found the problem: Buddypress.

    The functionality of reply.js works for bbpress, but does not work if the topic is in a forum that is within a Buddypress group.

    On my staging site I now have two topics: one within a buddypress group forum and one in a regular bbpress forum. The reply.js functionality works in the topic within the regular forum, but does not work in the topic that’s in the Buddypress group forum.

    If you’d like to see the functionality, here are the two topics (sign in credentials are in my previous comment above):

    http://staging-nexus.universaltheosophy.com/forums/topic/test-topic/

    http://staging-nexus.universaltheosophy.com/groups/test-group/forum/topic/test-group-topic/

    Now………. to find a solution. Any ideas would be much appreciated. I’ve also brought this to the Buddypress support forum. Will link to that below.

    @jon-fergus

    Participant

    Ok, progress (kind of). I uploaded your child theme and it works on my staging site. I was missing wp_enqueue_scripts in the functions.php file (duh me).
    But, still no luck on my main site. Something must still be interfering. I’ll use my staging site to test from the ground up, adding bit by bit until I find out what’s causing the issue. Will let you know if I figure it out.

    @jon-fergus

    Participant

    Spent 3 more hours trying to figure this out. No luck. I’m just not knowledgeable enough.

    If you have any ideas of what might be going wrong, please let me know. Otherwise I’ll need to hire a developer to have a look (and if you know of who I can hire, or are for hire yourselves, please let me know).

    @jon-fergus

    Participant

    Yeah, that’s what I want. But I’m completely lost now. No idea why this doesn’t work for me.

    Are you sure there’s nothing else I need to do? Just copy the reply.js file into a folder called js under my child theme? And that’s it? I can’t understand why it wouldn’t work even when I created a brand-new subdomain, and did no other modifications: just installed wordpress, added bbpress, created bare child theme and added reply.js. What else could be interfering with this function!?

    I tried also simply using twentysixteen theme and adding reply.js to the existing js folder (in case there was some issue with using a child theme) and this didn’t work either.

    Here’s my bare test site: http://staging-nexus.universaltheosophy.com/forums/topic/test-topic/

    Try logging in:

    [mod note: aaand it’s gone.]

    @jon-fergus

    Participant

    Can either of you show me a site where the reply button functions the way I want? i.e. when you click reply the page doesn’t reload, but instead the reply-form accordions into place directly below the reply being replied to?

    Do either of you have a test site where this reply.js file is functioning that way?

    @jon-fergus

    Participant

    Stephen. I did exactly what you just said. Installed wordpress, bbpress, clean fresh installs, no other customizing of any kind, twentysixteen theme, and the reply button refreshes the page and takes the user to the reply-form. Add a twentysixteen child theme with the reply.js file in a js folder and nothing changes.

    @jon-fergus

    Participant

    Created a second subdomain, right from scratch, added wordpress, added bbpress, added a child theme, uploaded the reply.js file to a js folder at the root of the child theme. Did no other customizations whatsoever. Same functionality as before.

    http://staging-nexus.universaltheosophy.com/forums/topic/test-topic/

    @jon-fergus

    Participant

    Hi Stephen. That’s what I did. On my staging site, I started with wordpress, added bbpress, setup a child theme linked to twentysixteen with no customizations, added the reply.js file, and it didn’t work.
    I know without logging in you can’t see the reply functionality, but this is my staging subdomain. You can see it’s just a completely base wordpress install with bbpress and nothing else added. And the reply.js file makes no difference in functionality. http://staging.universaltheosophy.com/forums/topic/test-topic/

    @jon-fergus

    Participant

    Ok, so I played around a lot with my site: changing the theme, disabling plugins, etc. etc. and nothing made any difference. So I went to my staging subdomain, stripped everything down to a basic wordpress install; created a child theme linked to twentysixteen; uploaded your reply.js file; then installed bbpress; added a single topic, and went to that topic to test the reply. The reply functioned exactly as it does on our site: i.e. click “reply” and the page reloads, and the user is brought to the reply-form.

    I don’t know what else to think of this. The reply.js file you gave just doesn’t seem to change anything. Any ideas what’s going on? Did I put it in the wrong place or something? Do I need to add something somewhere else to make sure that js is activated ???

    I’m at a loss for what to do here.

    @jon-fergus

    Participant

    Something I noticed just now. I went to install a new plugin to help with migrating my database to a staging area, and the plugin install aborted with the error “Nothing found for Wp Admin Admin Ajax Php”. After I deleted the reply.js file from the js folder in my child theme, the plugin installed fine. I don’t know if this helps clarify why the reply.js wasn’t working, but I’m guessing it’s related.

    @jon-fergus

    Participant

    Hmm…. yeah, maybe it’s a theme issue. To verify: I copied the file into a js folder at the root of my child theme. It seemed to make no change at all.
    I’ll set up a staging copy of the site and see if I can get it to work with a different theme.

    @jon-fergus

    Participant
Viewing 25 replies - 1 through 25 (of 39 total)