Search Results for 'wordpress'
-
Search Results
-
My proto website is at https://ecohydraulics.org/. I am running WordPress 5.1 and I use Easy Hide Login 1.0.6. I have installed BuddyPress 4.2 and set it up as instructed. The problem I need help with is that the “Login” top menu item that is added by BuddyPress wants to go to the wp-login.php, but this is expressly blocked by the plugin Easy Hide Login. I need to set the Login hypertext URL to go to the slug I have specified in the Easy Hide Login plugin. Please advise me how to do that or where I can find the answer.
I have searched the BuddyPress documentation and support forum extensively as well as the internet for MANY hours. I have not found an explicit instruction how to do this, but I get the hint that I probably have to edit one or more .php files. I just don’t want to do that without being sure what to do, so it is not pure trial and error. Ideally, I would just specify the slug somewhere, but I’ll do whatever is advised. I apologize in advance if this is already answered somewhere, so I will gladly take a link to such a place, but my searches have not yielded the answer, so I am asking for help now after many days of struggle. Thanks.
Hi everyone! does anyone here experience the same thing when you compose a message then you view the thread you will notice the text above the subject like this (Conversation between you and Deleted User and you.) it has a redundant (you) how to fix this? does anyone experience the same thing? i am using buddypress Version: 4.2.0 and wordpress 5.1 thank you guys..
Topic: AJAX Request Spinner
Hello,
I’m trying to add a spinner gif to the webpage whenever someone clicks a button that uses AJAX to show them that their request is being worked on. I wish to use the Nouveau theme.
I’m running WordPress 5.1 and BuddyPress 4.2.0
There hasn’t been much on this topic except for here (which is now 4.75yrs old): Feature Request AJAX Loading Spinner
To start, I’m trying to get things to work with the messaging section.
I added
<img class='ajax-gif' src='http://localhost:8080/WEBSITE/wp-content/themes/THEME/classicloader30px.gif'/>to a file I made in my theme file for the messages template:
wp-content/themes/THEME/buddypress/common/js-templates/messages/index.phpIt was added underneath each input type=button and input type=submit.
Next I added this css:
.ajax-gif{ display:none; } .loading + .ajax-gif, .loading > .ajax-gif{ display:block; }My only problem now is that these buttons do not apply the “loading” class to the buttons anymore (like they do in Legacy).
I found that you can add and remove the classes during the function that is triggered on the click by going to /wp-content/plugins/buddypress/bp-templates/bp-nouveau/js/buddypress-messages.js.
Unfortunately, I don’t believe this is a file meant to be able to be changed in custom files.I added:
$('#bp-messages-send').addClass('loading');to sendMessage: function(),
$( '#send_reply_button' ).addClass( 'loading' );to sendReply: function(),
and$( '#send_reply_button' ).removeClass( 'loading' );to replySent and replyError.Any help in figuring out how to make this not be lost on a new BuddyPress update would be extremely helpful.
I’m also trying to figure out how to target any other BuddyPress AJAX events. I’m sure I can do the same thing with the Members Directory, but will probably need to do the same thing with figuring out what function is called when someone requests a friendship/cancel a friendship etc.
Topic: Restricting private messages
I am looking for some help with restricting private messages.
I have Paid Memberships Pro – BuddyPress Add On Version 1.2.1 and BP Better Messages (Premium) Version 1.9.7.9 with WordPress 5.1
BuddyPress Version 4.2.0I am looking for a way to restrict the private message option for certain type of users. I am trying to have this modification multiple ways, with and without PMPro but none of them working so far.
With PMPro I supposed to restrict easily, still I can only totally restrict all BuddyPress functions or enable all of them, customization looks like broken.
I looked into the codes of all the mentioned plugins, tried to restrict access by using below code that I found in another topic:
add_filter( 'bp_get_send_message_button', function( $array ) { if ( pmpro_hasMembershipLevel('Premium') ) { return $array; } else { return ''; } } );Maybe I am just trying to make it too complicated and there is an easier way to do it with shortcodes under the Members page that currently contains only [bps_directory] shortcode.
Any suggestion and help would be welcome.
Log:
PHP Warning: reset() expects parameter 1 to be array, boolean given in /site_path/wp-content/plugins/buddypress/bp-core/bp-core-template.php on line 3034Code: https://buddypress.trac.wordpress.org/browser/trunk/src/bp-core/bp-core-template.php#L3034
BuddyPress 4.2.0
WordPress 5.1.0
PHP 7.2.15-1+ubuntu16.04.1+deb.sury.org+1