Forum Replies Created
-
Author
-
valuser
ParticipantKieran,
Thank you so so much for the super prompt reply.
Its perfect.
I was expecting a reply on Monday!!!!
Many thanks.
Val
valuser
Participantok got this done
solution
add
<?php get_template_part( 'page-parts/posts-social-share' ); ?>
to line (say) 45 (or just after line 43) of
bp-idea-stream/templates/idea-group.php
valuser
Participantupdate: item 2 of this query is not valid! – the simple solution is to enable comments on pages.
So this query is now just Item 1 –extending the share links to BuddyPress ideas.
please note Ideas have been checked in the Social Share—>Social share post types
Have tried adding “idea”, “ideas” to line 10 of post-social-share.php but no dice.
Hopefully you might be able to suggest a solution.
Thanks.
valuser
ParticipantThank you.
I will add this to improvement list and in future we will implement this
Any provisional timeframe?
or Even if you could please now point to the files that need changing ?
In the meantime is it reasonable comment to say that your theme is not entirely compatible with recent updates of BuddyPress e.g 2.6. ??
Many thanks.
valuser
Participantperhaps this is relevant
https://bpdevel.wordpress.com/2016/10/11/changes-to-template-files-for-buddypress-2-7/
also changes for 2.6 may be relevant
valuser
Participantvaluser
Participanthi there is only one plugin active on a local test site.
Buddypress 2.7 release candidate 1
it incorporates BuddyPress Group Types
https://downloads.wordpress.org/plugin/buddypress.2.7.0-rc1.zip
valuser
Participant[attachment file=139051]
Attachments:
You must be logged in to view attached files.valuser
ParticipantThanks for pushing this up to devs.
Now updated to kleo v. 4.1.5
BuddyPress Group Types Codex Page is now updated.
So i have in kleo (v.4.1.5) functions.php the following functions
COPY CODEfunction my_bp_custom_group_types() { bp_groups_register_group_type( 'team', array( 'labels' => array( 'name' => 'Teams', 'singular_name' => 'Team' ), // New for 2.7 - Change 'teams' to whatever slug you want your group type directory to have. 'has_directory' => 'teams', 'show_in_create_screen' => true, 'show_in_list' => true, 'description' => 'Teams are good', 'create_screen_checked' => true ) ); } add_action( 'bp_groups_register_group_types', 'my_bp_custom_group_types' );
no response from theme to insert group types
whereas in twenty sixteen see the following attachments.
I think perhaps that the buddypress group component in your theme needs updating
please keep me posted
Attachments:
You must be logged in to view attached files.valuser
ParticipantResolved!
Can’t thank you enough for taking the time to have a look at the code.
Change it to $redirect_to and remove the exit.
Was all that was needed.
Just a copy and paster myself so huge huge thank you.
Great support over and above what could reasonably be expected!
valuser
ParticipantThanks – Last code works – will report if anything out of order.
Only updated an online TEST site in order to demonstrate and to report the glitch –
Every update is first played around with here on local installs.
valuser
Participantdone & thanks!
fyi – am not a coder but excellent at following instructions, copy and pasting, & trying things out etc.January 9, 2015 at 02:00 in reply to: Problem on one server only – can't make activity comments #41420valuser
Participantok the solution is at
add this to your functions.php
COPY CODEadd_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")); } }
January 9, 2015 at 01:58 in reply to: Problem on one server only – can't make activity comments #41419valuser
Participantok the solution is at
add this to your functions.php
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/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"));
}
}BUT BUT BUT BUT
PLease be sure to replace “depreciated” with “deprecated” !!!!!!!!!
January 9, 2015 at 01:51 in reply to: Problem on one server only – can't make activity comments #41417valuser
Participanti have changed “depreciated” to “deprecated”
January 9, 2015 at 01:46 in reply to: Problem on one server only – can't make activity comments #41413valuser
Participantbecause your site is throwing a 404 error on /wp-content/plugins/buddypress/bp-core/deprecated/js/jquery-scroll-to.min.js
That should fix everything.
? how?
January 9, 2015 at 01:01 in reply to: Problem on one server only – can't make activity comments #41406valuser
Participantno problem. i’ll leave it with you. thanks
January 9, 2015 at 00:33 in reply to: Problem on one server only – can't make activity comments #41394valuser
ParticipantThis reply has been set as private.January 9, 2015 at 00:19 in reply to: Problem on one server only – can't make activity comments #41390valuser
ParticipantI now have examined two (almost) identical sites on different servers.
The differences (in regard to javascripts) are as follows:
The five scripts put into functions.php – as per your advice – are coming in to the “bad” server (wpengine) like this: (with the wp version 4.1 not the bp version 2.1.1 as in the “good” server (bluehost).)
COPY CODE<script type='text/javascript' src='http://dogdrill.com/wp-content/plugins/buddypress/bp-core/js/jquery-query.min.js?ver=4.1'></script> <script type='text/javascript' src='http://dogdrill.com/wp-content/plugins/buddypress/bp-core/js/widget-members.min.js?ver=4.1'></script> <script type='text/javascript' src='http://dogdrill.com/wp-content/plugins/buddypress/bp-core/js/jquery-cookie.min.js?ver=4.1'></script> <script type='text/javascript' src='http://dogdrill.com/wp-content/plugins/buddypress/bp-core/depreciated/js/jquery-scroll-to.min.js?ver=4.1'></script> <script type='text/javascript' src='http://dogdrill.com/wp-content/themes/kleo/buddypress/js/buddypress.min.js?ver=4.1'></script>
AND
only on the good server this (the “heartbeat” file) comes in:
COPY CODE<script type='text/javascript'> /* <![CDATA[ */ var heartbeatSettings = {"ajaxurl":"\/wp-admin\/admin-ajax.php","nonce":"3ca3c1a148"}; /* ]]> */ </script> <script type='text/javascript' src='http://www.rvews.com/wp-includes/js/heartbeat.min.js?ver=4.1'></script> <script type='text/javascript'> /* <![CDATA[ */ var BP_DTheme = {"accepted":"Accepted","close":"Close","comments":"comments","leave_group_confirm":"Are you sure you want to leave this group?","mark_as_fav":" ","my_favs":"My Favorites","rejected":"Rejected","remove_fav":" ","show_all":"Show all","show_all_comments":"Show all comments for this thread","show_x_comments":"Show all %d comments","unsaved_changes":"Your profile has unsaved changes. If you leave the page, the changes will be lost.","view":"View","newest":"Load Newest","pulse":"15"}; /* ]]> */ </script>
this is not to be seen on the “bad” server.
Any help at all very much appreciated
January 8, 2015 at 16:19 in reply to: Problem on one server only – can't make activity comments #41322valuser
Participantput the above into header.php – no improvement
January 8, 2015 at 13:40 in reply to: Problem on one server only – can't make activity comments #41300valuser
Participantok so far – just a more complete rendition of what is missing in the “bad” server compared to a similar setup on a “good” server.
immediately following the heartbeat line is also missing —–
<script type=”text/javascript”>var BP_DTheme{}</script>COPY CODE<script type="text/javascript"> /* <![CDATA[ */ var heartbeatSettings = {"ajaxurl":"\/wp-admin\/admin-ajax.php","nonce":"1d1a7d444d"}; /* ]]> */ </script> <script type="text/javascript" src="http://mydomain.com/wp-includes/js/heartbeat.min.js?ver=4.1"></script> <script type="text/javascript"> /* <![CDATA[ */ var BP_DTheme = {"accepted":"Accepted","close":"Close","comments":"comments","leave_group_confirm":"Are you sure you want to leave this group?","mark_as_fav":" ","my_favs":"My Favorites","rejected":"Rejected","remove_fav":" ","show_all":"Show all","show_all_comments":"Show all comments for this thread","show_x_comments":"Show all %d comments","unsaved_changes":"Your profile has unsaved changes. If you leave the page, the changes will be lost.","view":"View","newest":"Load Newest","pulse":"15"}; /* ]]> */ </script>
Whe i googled var BP_DTheme the first result is a three year old thread https://buddypress.org/support/topic/comments-are-not-working/ which must mean i’m getting closer!!
Please understand I just haven’t any great clue about this stuff but would greatly appreciate any help that you van give
January 8, 2015 at 12:42 in reply to: Problem on one server only – can't make activity comments #41297valuser
Participantadded
wp_enqueue_script( 'heartbeat_js', get_template_directory_uri() . '/wp-includes/js/heartbeat.min.js', array(), '4.1', true );
to your function but it did not have the desired effect.then added
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/wp-includes/js/heartbeat.min.js?ver=4.1"></script>
to header.php but but it also did not have the desired effect.If i haven’t done this properly please let me know.
(btw the undeclared crippling of a core file by a wordpress host is an issue in itself!!!!!!)
so i presume i will now have to do a very detailed comparison of the source files of two sites on different hosts
January 8, 2015 at 02:21 in reply to: Problem on one server only – can't make activity comments #41227valuser
Participantno problem.
Now, if possible bear with me on this.
First cursory comparison: the file at mydomain/wp-includes/js/heartbeat.min.js?ver=4.1 is not being loaded to the unresponsive site while it is being loaded to the “good” site on the “good” server.
the missing bit (thats not on the “bad” server) is
COPY CODE<script type="text/javascript"> /* <![CDATA[ */ var heartbeatSettings = {"ajaxurl":"\/wp-admin\/admin-ajax.php","nonce":"ef57d07069"}; /* ]]> */ </script> <script type="text/javascript" src="http://mydomain.com/wp-includes/js/heartbeat.min.js?ver=4.1"></script>
Could that possibly be relevant ??
/**
* Heartbeat API
*
* Heartbeat is a simple server polling API that sends XHR requests to
* the server every 15 – 60 seconds and triggers events (or callbacks) upon
* receiving data. Currently these ‘ticks’ handle transports for post locking,
* login-expiration warnings, autosave, and related tasks while a user is logged in.If not I will do a detailed comparision, hopefully, tomorrow.
January 7, 2015 at 20:13 in reply to: Problem on one server only – can't make activity comments #41184valuser
ParticipantFully aware that this is not a theme issue – as (as stated) all is OK on other servers and on localhost xampp.
So, I’m not in any way suggesting that seventhqueen is “responsible”.
Frankly wpengine’s support is not what it should be.
They have suggested it is “buddypress” related which is nonsense given that i can use this setup on very very cheap shared hosting.
Perhaps, like some hosts, they would really like buddypress users to go elsewhere!!
Wil try to examine it as you have suggested. and will come backJanuary 6, 2015 at 19:07 in reply to: Problem on one server only – can't make activity comments #41113valuser
ParticipantThe fix you kindly provided allows the top activity “What’s new?, Joe” box to function properly
But comments can’t be made.
Both “Allow comments” & “Allow trackbacks and pingbacks on this page.” are checked.
Unchecking them makes no difference.
Again, all this is only on one server.
December 23, 2014 at 03:38 in reply to: Buddypress – whats-new-options – ajax no show on one server #40121valuser
ParticipantI now think my last post was a false alarm.
Now using uptodate kleo and wp and it WAS necessary to use your fix as per your post above.
just to let you know.
Again only on wpengine
valuser
ParticipantDone! Was pretty obvious, (just replaced “echo #primary-menu” bit with the relevant part of pastebin) though at the time I froze.
valuser
ParticipantPoint taken. and my issue is NOT a big deal. this only happens in Safari.
However
In multisite installations it is sometimes the case that
the Network root site has just the logo in the header
and subsites have the logo Plus the subsite title.
eg network home Chanel – logo only
subsites Chanel Perfumes logo + title
Chanel Eau de— logo + titletemporary fix appears to be to specify the width via a function with php browser detect plugin/wp-mobile-detect (in use anyway)
COPY CODEfunction add_safari_fix_header() { global $current_user, $wpdb; if (function_exists('wpmd_is_phone') && !wpmd_is_phone() && is_safari() ) { ?> <style type="text/css"> .logo {width: 400px !important;} </style> <?php }//end if } add_action('wp_head', 'add_add_safari_fix_header');
December 17, 2014 at 02:43 in reply to: Buddypress – whats-new-options – ajax no show on one server #39383valuser
ParticipantI just was examining something with twenty fourteen and took the enque code out and purge caches and it worked. so did same with kleo child.
wpengine didn’t notify .
Anyway if its a false alarm i will post it here
December 17, 2014 at 02:29 in reply to: Buddypress – whats-new-options – ajax no show on one server #39378valuser
Participantwpengine appear to have fixed this issue
-
AuthorPosts