This topic has 41 replies, 5 voices, and was last updated 9 years by jrantz6.

  • Author
  • #31226
     Dave
    Participant

    and also on the activity stream… I thought they were broken at first but then I got to looking at it and they were just hidden. I fixed it with a little css.

    #buddypress #whats-new-options {
    height: 50px;
    }

    Awesome theme.

    #31237
     sharmstr
    Moderator

    They show up fine on my site and the demo once you click in the box. Perhaps you are using a plugin that changed the css?

    I think long ago I saw it happen if the body font was bigger than the default.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #31324
     Dave
    Participant

    Hi sharmstr, the only plugins I have installed so far are the bundled plugins. I might have changed the font size!

    #31325
     sharmstr
    Moderator

    Okay. Thanks for the update.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32476
     chazzzzy
    Participant

    This buttons are not there on my site either.. even if I remove all plugins except for the ones you bundle.

    We’re talking about the What’s New for GROUPS. Not the What’s New for your Profile. That works fine. Clicking the text box in a What’s New in a GROUP does nothing. Adding in the CSS Dave suggest above is a bandaid as it is simply making the buttons appear at all time and then it screen up posting in the comments section below.

    So.. the javascript to expand the Text box and reveal the buttons is broken on the Groups pages, but not broken on the Profile sectkions.

    #32484
     sharmstr
    Moderator

    What’s the error you’re getting? Can I create an account to test on your site?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32485
     chazzzzy
    Participant

    Yes.. go to underground.net and register upper right. Once registered, go to groups, join writer’s group and then click the Text box (it will be broken)

    But if you go to your own profile/activity and click the text box.. it’s fine.

    Thanks!

    Charles

    #32506
     sharmstr
    Moderator

    Sorry for the delay. My real job got in the way 🙂 I’ll do it now.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32507
     chazzzzy
    Participant

    No prob! Thanks so much for this!

    #32508
     sharmstr
    Moderator

    I’m still sorting this out, but the “what’s new” animations aren’t the only things broken. You have other javascript things broken too. I’m leaning towards the order in which your minified files are loading. Is there any way you can unminify buddypress.js so we can test?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32509
     sharmstr
    Moderator

    Sorry, scratch that. I just realized the latest version of kleo minimizes it. Still searching….

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32514
     sharmstr
    Moderator

    Okay. For whatever reason, your page is not loading the buddypress javascript file on the groups page. That’s why some of the javascript functions aren’t firing. Try clicking on any of the comment buttons. They should be opening up a comment form instead of reloading the page. The show more / show less doesnt work either.

    It is loading on the profile page and that’s why everything works there.

    It would be easier to figure out if an error was present in the buddypress.js file, but since its not even loading, you’ll have to turn on WP Debug to see if you get an error when it makes the enqueue_scripts call.

    Turn on debuging in wp-config.php, then load the group page. Hopefully we’ll be able to see why its not loading the script.

    COPY CODE
    
    define('WP_DEBUG', true);
    define('WP_DEBUG_DISPLAY', true);
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32521
     chazzzzy
    Participant

    I set the site to debug on but put display off since I have people looking at my site right now.. the debug.log is in the /wp-content/debug.log if you want to look at it.

    Thanks!

    Charles

    #32522
     chazzzzy
    Participant

    This site is a copy of mine (staging) and has the same login so you can go into it as well.

    underground.staging.wpengine.com

    I disabled ALL plugins except for Visual Composer and BuddyPress and Revolution Slider (even with Visual composer and Slider I still got the error.)

    So this is happening with the theme pretty much right out of the box.

    Thanks

    Charles

    #32523
     sharmstr
    Moderator

    What’s in your kleo-child folder? Specially your functions.php file? Can you try enabling the parent kleo on the staging site and see if that make a difference?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32524
     sharmstr
    Moderator

    oh and enable debugging and display it on the staging site.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32525
     sharmstr
    Moderator

    And for the heck of it, try the 2014 theme. That will either pinpoint or rule out kleo. Whoop.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32529
     chazzzzy
    Participant

    I don’t think I can enable debugging on the staging site.. but I did remove everything from functions.. still same problem. I enabled the Parent theme only and the same problem. I enabled 2014 but it doesn’t do that disappear/reappear thing in the buddy press area anyway.. Tried all the other themes.. but they don’t do that expand thing..

    Let me see if I can find a theme that does the expand thing!

    #32530
     chazzzzy
    Participant

    Ahh.. I see.. 2014 DOES do the expand thing EXCEPT in the Groups area of Sitewide activity!

    http://underground.staging.wpengine.com/members/charles/ (Works here.)

    Doesn’t work here: http://underground.staging.wpengine.com/groups/writers-group/

    or here: http://underground.staging.wpengine.com/groups/writers-group/

    So it seems like it’s my provider somehow??

    Charles

    #32533
     chazzzzy
    Participant

    it is definitely something WPEngine is doing. I just emailed their support as it happens on ALL of the sites I have hosted with them.

    Thanks for everything sharmstr.

    Maybe I can hire you when things take off on my end.. which should be in the next couple weeks!

    Charles

    #32534
     sharmstr
    Moderator

    hehehe 😀

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32535
     sharmstr
    Moderator

    Short term you can load it using your functions.php file. Just make sure you put in a check so that it only runs within the groups.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32540
     Dave
    Participant

    The site I’m working on is in wpengine’s staging area also, my groups latest activity is working with my css fix.

    I haven’t updated the theme to the latest update yet though.

    #32599
     sharmstr
    Moderator

    @dave Are you saying that the javascript that unhides the buttons works? Or are you just saying that you see the buttons right when the page loads? What about your comment buttons? Do those unhide the comment form without reloading the page? Its an important difference.

    In any case, its not a css issue in @chazzzzy case.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32601
     Dave
    Participant

    @sharmstr

    I see the buttons when the page loads, there’s no unhide animation on mine which I’m ok with.

    I’ve installed BuddyPress Activity Plus though which adds a few icons to add an image/link/video underneath the main box which might be making a difference.

    I posted something in the groups last night and I noticed that the top of the post was partially hidden after posting it on my screen, but after refreshing it, everything looked fine.

    I haven’t noticed anything odd with the comment buttons.

    #32606
     chazzzzy
    Participant

    Yeah, I’m not cool with a bandaid. I did get a response rom WPEngune and his suggestion actually fixes the problem of the buttons, but of course disables the auto updating feature:

    Tony Le, Oct 21 10:36 PM:
    Hi Charles,

    Thanks for the details. After reviewing the article, it looks like there is a possible solution: Uncheck the “update activity automatically” feature in BuddyPress settings.

    Is this something you have tried on your end? Additionally, is this an issue that has recently occurred? Look forward to hearing from you. Thanks!

    Sincerely,

    Tony Le | Customer Support Specialist
    WP Engine – Finely Tuned WordPress

    If you go back to my underground.net it now works.

    But it means that WPEngine is doing something that breaks BuddyPress and I’d like it if they could fix it.

    Dave, how long ago did you notice this problem? I’d like to let WPEngine know.


    @sharmstr
    , what is the code to load the script on particular pages (activity, /groups/group-name/)?

    Thanks!
    Charles

    #32609
     Dave
    Participant

    @chazzzzy I noticed it right around when I created this post, October 10th.

    I’ve been a little concerned about doing this on WPEngine. I can just imagine the issues that are going to pop up once it’s moved to their super cached front end. Hopefully I’ll be wrong!

    #32610
     chazzzzy
    Participant

    I’ve had no other issues with WPEngine and they are great at getting back with you support wise, so I wouldn’t worry about it.

    Perhaps you should open a support ticket as well. That way we can stack this from all sides!

    Charles

    #32611
     Dave
    Participant

    Good to hear about WPEngine, they seem fine to me too except the FTP is really slow. The issue here isn’t a problem for me, I’m ok with my quick css fix and kind of prefer it since I have the Activity Plus buttons below it. I think we should definitely stay in touch on WPEngine matters though so we know when problems are universal. If you want, let me know when you have your contact form up on your site and I’ll send you my email address.

    #32612
     sharmstr
    Moderator

    @chazzzzy try this in your fucntions.php file

    COPY CODE
    
    add_action( 'wp_enqueue_scripts', 'load_buddypress_js'  );
    function load_buddypress_js () {
    	global $bp;
    	if (bp_is_group()) {
    		wp_enqueue_script('buddypress',get_template_directory_uri() . 'buddypress/js/buddypress.min.js');
    	}
    }
    
    

    As far as Uncheck the “update activity automatically” feature in BuddyPress settings I saw that when searching for the problem over on the buddypress support forums. And there was an open ticket on it that’s gone no where.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32623
     chazzzzy
    Participant

    sharmstr.. slight typo in your code.. should be ‘/buddypress…’ the / before buddypress.

    I added the code.. then it of course breaks things.. the comments below the text box won’t load and I get the following error when looking at the console:

    COPY CODE
    [Error] TypeError: undefined is not a function (evaluating 'jq.cookie("bp-activity-oldestpage",1,{path:"/"})')
    	bp_init_activity (buddypress.min.js, line 1)
    	(anonymous function) (buddypress.min.js, line 1)
    	j (jquery.js, line 2)
    	fireWith (jquery.js, line 2)
    	ready (jquery.js, line 2)
    	J (jquery.js, line 2)
    #32628
     sharmstr
    Moderator

    hmmm. its hard to test with my setup because buddypress.js already loads. give me a sec.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32631
     sharmstr
    Moderator

    I just looked and your site isn’t loading several buddypress javascript files. Not just buddypress.js. :/ It should be loading 6 of them, but is only loading 1. All of those files get loaded by the enqueue_scripts function in buddypress-functions.php (around line 232). Maybe you can call that function instead of the wp_enqueue_scripts line. Its in a class so you’d have to account for that.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32634
     sharmstr
    Moderator

    OKAAAAYYYY. Try this.

    COPY CODE
    
    
    add_action( 'wp_enqueue_scripts', 'load_buddypress_js'  );
    function load_buddypress_js () {
    	if (bp_is_group()) {
    		wp_enqueue_script('buddypress_query',plugins_url() . '/buddypress/bp-core/js/jquery-query.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_members',plugins_url() . '/buddypress/bp-core/js/widget-members.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_cookie',plugins_url() . '/buddypress/bp-core/js/jquery-cookie.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_scroll',plugins_url() . '/buddypress/bp-core/depreciated/js/jquery-scroll-to.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_js',get_template_directory_uri() . '/buddypress/js/buddypress.min.js',array("jquery"));
    	}
    }
    

    I suck at calling functions in classes, so the above will just load all the missing js files one by one. To test this (DONT DO THIS) I removed all the code in the enqueue_scripts function that buddypress uses to make sure that none of those files would load. Seems to work. Let me know.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32642
     chazzzzy
    Participant

    sharmstr, you are the MAN! (If you are a man.) Works like a charm!

    I updated it a little to fix it on the Activity Page as well:

    COPY CODE
    add_action( 'wp_enqueue_scripts', 'load_buddypress_js'  );
    function load_buddypress_js () {
    	if (bp_is_group() || is_page( 'activity' )) {
    		wp_enqueue_script('buddypress_query',plugins_url() . '/buddypress/bp-core/js/jquery-query.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_members',plugins_url() . '/buddypress/bp-core/js/widget-members.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_cookie',plugins_url() . '/buddypress/bp-core/js/jquery-cookie.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_scroll',plugins_url() . '/buddypress/bp-core/deprecated/js/jquery-scroll-to.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_js',get_template_directory_uri() . '/buddypress/js/buddypress.min.js',array("jquery"));
    	}
    }

    By the way.. I LOVE street art.. always doing stuff with it over here are Underground Network. Shoot me an email at the contact on my website as I’d like to have your contact info.


    @Dave
    .. you too as well..

    #32645
     sharmstr
    Moderator

    Its WOman 🙂 Ah, I didnt know you had an issue with the activity stream as well. You should really keep an eye on a fix for this though. It would suck to have theme add new scripts and you not know about it.

    Street Art… yeah, that’s my friends area. I’m just building a site for her. You should hit her up. She’s currently on the board of whatever you call it in Los Angeles. They decide what murals to put where or something like that 🙂 And she’s reppin’ artists from across the globe trying to bring them over here for short stints. She an amazing person in general. Her name is Zippy

    Glad you got everything sorted. Whoop!

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32647
     chazzzzy
    Participant

    I know.. I was trying to use a phrase to express my happiness and after I wrote it I had a sneaky suspicion I was making a faux-pas!

    Thanks again for everything and I’ll contact your friend for sure!

    I’ll forward the fixes to WPEngine to get them to fix the deal.

    Charles

    #32649
     Dave
    Participant

    Thank you sharmstr! Those scripts weren’t loading for me either. I want to hire you too after I win the lottery!

    Charles, I’ll send you my email.

    #32665
     Abe
    Keymaster

    great debugging… you are really the .. woman 🙂

    thanks @sharmstr

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #48130
     jrantz6
    Participant

    I’m having the same issue and I’m hosted on WPEngine as well. Where exactly do I add this code?

Viewing 40 posts - 1 through 40 (of 42 total)

The topic ‘Attachment and Post Buttons for "What's new posts" on groups were hidden’ is closed to new replies.

Log in with your credentials

Forgot your details?