Jon Fergus (@jon-fergus)

Forum Replies Created

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

  • Jon Fergus
    Participant

    @jon-fergus

    @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

    @jon-fergus

    Really? No one has insight into this?


    Jon Fergus
    Participant

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    I’m also very interested in this feature.


    Jon Fergus
    Participant

    @jon-fergus

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


    Jon Fergus
    Participant

    @jon-fergus

    @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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    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


    Jon Fergus
    Participant

    @jon-fergus

    *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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

    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

    @jon-fergus

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