Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wp user activate'

Viewing 25 results - 126 through 150 (of 903 total)
  • Author
    Search Results
  • #262949
    gprovostjr
    Participant

    1. Which version of WordPress are you running? 4.7.1

    2. Did you install WordPress as a directory or subdomain install? Directory

    3. If a directory install, is it in root or in a subdirectory? Root

    4. Did you upgrade from a previous version of WordPress? If so, from which version? no

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. yes

    6. Which version of BP are you running? 2.7.4

    7. Did you upgraded from a previous version of BP? If so, from which version? no

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? YES
    Analytics Cat 1.0.1
    bbPress 2.5.12
    Photo Gallery 1.3.26
    Ultimate Social Media PLUS 2.5.1
    User Role Editor 4.31.1
    WP Discord 0.2.3

    9. Are you using the standard WordPress theme or customized theme? Standard

    10. Which theme do you use ? 2017

    11. Have you modified the core files in any way? no

    12. Do you have any custom functions in bp-custom.php? no

    13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? listed earlier

    14. Please provide a list of any errors in your server’s log files.

    15. Which company provides your hosting? ipage

    16. Is your server running Windows, or if Linux; Apache, nginx or something else?

    #262714

    In reply to: Multisite issue

    danbp
    Participant

    What ever the site type, users are only registered in one table: wp_users. All the magic on sub domains, blogs, plugins (myCred,WC,…), is done with user_metas.

    1) your wp is certainly installed on mainsite.com ?
    2) but you activated BP on Community.Mainsite.com

    Sorry, but i ignore if this can work (never tried such config). I always activate BP where WP is the site root.

    ) I was under the impression that if you signed up as a user on subdomain.site.com, you’d be a member of that site and that site only.

    No, with BP you’re member of a network and eventually “attached” to one or more blog, wich is by default the main blog (even if the main site doesn’t use one).

    dekoningalex
    Participant

    Hi i really want to do this too, but i am new to Php.

    This is all the code in my header.php

    <!doctype html>
    <html <?php language_attributes(); ?>>
    <head>
    	<meta charset="<?php bloginfo( 'charset' ); ?>" />
    	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    	<link rel="profile" href="http://gmpg.org/xfn/11">
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    	<?php wp_site_icon(); ?>
    	<?php 
    		$id = get_queried_object_id();
    		$page_scroll = (get_post_meta($id, 'page_scroll', true) == 'on' ? 'page_scroll' : '');
    		$snap_scroll = (get_post_meta($id, 'snap_scroll', true) == 'on' ? 'snap_scroll' : '');
    		$rev_slider_alias = get_post_meta($id, 'rev_slider_alias', true);
    		$smooth_scroll = (ot_get_option('smooth_scroll') != 'off' ? 'smooth_scroll' : '');
    		$header_style = (get_post_meta($id, 'header_style', true) ? get_post_meta($id, 'header_style', true) : ot_get_option('header_style', 'style1'));
    	?>
    	<?php
    		$class = array();
    	 	array_push($class, $page_scroll);
    	 	if(!empty($snap_scroll)) { 
    	 		array_push($class, 'snap');
    	 	}
    		array_push($class, $smooth_scroll);
    	?>
    	<?php 
    		/* Always have wp_head() just before the closing </head>
    		 * tag of your theme, or you will break many plugins, which
    		 * generally use this hook to add elements to <head> such
    		 * as styles, scripts, and meta tags.
    		 */
    		wp_head(); 
    	?>
    </head>
    <body <?php body_class($class); ?> data-themeurl="<?php echo THB_THEME_ROOT; ?>">
    <div id="wrapper" class="open">
    	
    	<!-- Start Mobile Menu -->
    	<?php do_action( 'thb_mobile_menu' ); ?>
    	<!-- End Mobile Menu -->
    	
    	<!-- Start Quick Cart -->
    	<?php do_action( 'thb_side_cart' ); ?>
    	<!-- End Quick Cart -->
    	
    	<!-- Start Content Container -->
    	<section id="content-container">
    		<!-- Start Content Click Capture -->
    		<div class="click-capture"></div>
    		<!-- End Content Click Capture -->
    		<?php 
    			if (thb_accountpage_notloggedin()) {
    				get_template_part( 'inc/header/subheader' );
    				get_template_part( 'inc/header/'.$header_style );
    			}
    		?>
    		<?php if (is_page() && $rev_slider_alias) {?>
    			<?php $rev_slider_white = get_post_meta($id, 'rev_slider_white', true); ?>
    			<div id="home-slider" class="<?php echo esc_attr($rev_slider_white); ?>">
    				<?php if (function_exists('putRevSlider')) { putRevSlider($rev_slider_alias); } else { _e('Please Install & Activate Revolution Slider', 'bronx'); }?>
    			</div>
    		<?php  } ?>
    		
    		<div role="main" class="<?php echo esc_attr($snap_scroll); ?>">
    			<?php if(!empty($snap_scroll)) { ?><div class="ai-dotted ai-indicator"><span class="ai-inner1"></span><span class="ai-inner2"></span><span class="ai-inner3"></span></div><?php } ?>

    Where do i add the from your example in the code?

    <div id="testid"><?php echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); ?></div>
    

    I already added the css to the childs theme style.css and added the three php snippers for correctly placing the bubbles as well, this is the only part i don’t understand so far.

    Thanks

    #262209
    danbp
    Participant

    @jeffwilliams-1,

    @pare81
    ,

    did you respect the size instruction ? Sizes are theme dependant and vary from one install to another.
    When it comes to image issues under BP, you’ll need to test your install without any plugin and only a Twenty theme active (never another one) as first and check if you can upload medias.
    If OK, you activate BP and check again.

    You may also verify that the attachment folder exist and has eventually the correct write rights on the server: wp-content/uploads/buddypress/members/USER_ID/cover-image/ Similar path may exist for groups, which use /groups/GROUP_ID/ instead of /members/USER_ID/

    If all is OK with Twenty, WP and BP, you can activate your plugins, one by one and testing after each. If still OK, you activate or install the definitive theme.

    If things went wrong at this stage, you can be sure there is an issue with YOU or the theme.

    You because you have omit a setting or did a wrong setting, or the theme, because all was ok while using a Twenty…

    #261891
    danbp
    Participant

    Check your forum settings and sync WP and BP users.

    Usually on a local site, and standard setup, while you use BP group forum, the forum slug is:
    http://localhost/groups/group_name/forum/
    If you use wampp, you should have a list of virtual hosts (aka site names), where you installed wordpress. This means also that wp is at the site root. If your site is called mario, you install wp there and then you should have http://mario/ Once BP is activated, you’ll get http://mario/members/ or http://mario/groups/ and so on…

    The link to the forum user/author/commenter is
    http://localhost/members/member_name/

    When you use bbPress as standalone forum (aside or without BuddyPress), the link looks like

    http://localhost/root_forum/single_forum/forum_name/
    Link to user is the same as the one indicated previously.

    More details here

    Installing Group and Sitewide Forums

    You can also follow the bbPress install guide if you use bbPress separately.

    Jay
    Participant

    Thanks for the background info about WP, @danbp. It certainly is interesting to see how the little old single-user blog platform called “WordPress” has mushroomed into the gargantuan that it is today, following the old adage, “Man expands to fill the available space.”

    Obviously I’m a bit of a noobie to WordPress (I’ll admit, so feel free to flame away ;)), but I’d like to ask about your reference to the clause “When BP is activated, and if you use the xprofile component…” I am a bit confused about “the xprofile component” and was wondering if you can help me understand it a bit better.

    Is “xprofile component” the feature exposed in “Settings > BuddyPress” named “Extended Profiles” (at the very top of the config page)? (It probably is, but I just want to be sure, thanks.)

    I am fully cognizant of the fact that one can preclude access to the WP Dashboard in a number ways, including by Role, etc., and I plan to do that. However, that causes me to provide exposure to the standard WP Profile fields (or as many of thsoe fields that I want to expose, that is) so that the user can modify them. This includes the critical email and password fields.

    Relating to this situation, you didn’t quite address my key question as to whether it is possible (without serious WP core hacking — something I would NEVER do, btw) to effect the change of either the email or password fields?

    Now listen, I realize that probably sounds like a shameless noobie question, but it really begs the question of whether modifying the email/password fields outside of the WP dashboard is considered “bad form” in some way.

    Thanks in advance for your advice and insights.

    danbp
    Participant

    @uscore713,

    i’ll try to explain. You’re using WordPress and a plugin called BuddyPRess which add a community dimension to WP.

    Members are the heart of BP. Anything done by the plugin will return something related to members: activities, friendships, dicussion and much more.

    How is this possible ?
    Because WP let you register members separately. To do this, WP ask for a username(pseudonym), a password and a valid email.

    You cannot avoid this, whatever plugin you use. It is how it works.

    Now, we have 2 different question in this topic.

    1) how to restrict access to profile settings ?
    2) do we need a plugin for that ?

    About point 1
    WordPress was designed to be a blog builder. A CMS with one blog author who was mainly also the site
    owner/builder… This changed with the years and today, you can handle a multiauthor blog.

    When you install BP, you can still handle a multiauthor blog (or even blogs) and also a big community of different users, whith different (wp) roles.

    What hasn’t changed is the way WP handles authors(or members): from within the dashboard, whatever the role.

    When BP is activated, and if you use the xprofile component, you can build a registration form who is added to the original wp registration form. This form is then available on each user profile and can be modified from there.

    To restrict user access to wp-admin, you can use different technique. This depends of your coding knowledge or working philosophy, with custom code or applying some plugin solution.

    This is independant of BuddyPress and out of the scope of this forum. Just remember that BP let you access to your credentials from front-end.

    About point 2
    – in theory, you don’t need a plugin
    – you always need to read about a plugin before using it.
    For example, the workaround mentionned in this topic about the usage of Profile Builder.
    – here a recent tutorial – for beginners – you may found more advanced advice by googling about “wordpress restrict dashbord access”.

    When you read the teaser on that plugin page, you already should have understand that you don’t need it !
    Simple to use profile plugin allowing front-end login, user registration and edit profile by using shortcodes.

    Astonishment ! BuddyPress offers exactly the same options (among others).

    What ever plugin you use, the regiter process of WordPress won’t change, and the user list or the user data will always be at the same place. What plugins do (most of them), is to modify the appearance of that process.

    What you can also do is to remove all WP related items from the toolbar, if you use it. This is widely documented and discussed on WP’s support and codex. It’s WP territory and has nothing to do with the fact you use BuddyPress.

    Admitting you found a solution for the backend, you need to use BP’s login widget. From there, users can enter the site. And if they loosed their password, they can ask for a new one from there (usually the sidebar, on front-end).

    #261638
    danbp
    Participant

    Hi,

    You have to install BP correctly on WordPress as very first.
    This means particulary that you use WordPress with one of default’s Twenty theme.
    – install BuddyPress
    – activate the component you want to use
    – ensure that each component has his own page
    – pretty permalinks must be activated too.

    To get a proper register page, allow user registration in WP settings and add manually, if not created automatically, a “register” page to BP.

    NOTE: BP pages are not usual WP pages. They are only placeholder (a unique ID in the wp ecosystem) where BP will show dynamic content. These page must be unique and shouldn’t be asigned to any template or model. Give them a title and you’re done.

    once WP+BP work correctly together and you can access to the register page without trouble, you can be sure that this couple is definetly OK.

    No it’s time to activate a custom theme if you use one. An if something gooes wrong at this stage you’re sure it’s the new theme who is the culprit.

    And if the new theme is working correctly with WP+BP, you can install plugins.

    And again, WP+BP+Theme = OK, but what about the plugin ?

    Easy to understand, easy to build, very annoying to write this for the 589 000 time, but still the only way to install BP.

    On your side, you need to follow these steps, but also to read the documentation from codex and of course, from any additionnal plugin you want to use !

    That said, be warned that we can’t assist you on this forum with third party premium theme or plugins as we have no free access to their code.

    #261020
    mashauri
    Participant

    I tried to de activate buddypress so I could re-activate t nd see if it made a difference. Bt I was unable to do as as I receved the following error:
    Fatal error: Call to undefined function bp_core_get_user_displayname() in /home/mashauri/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 1416

    Please NOTE: this is input to my main query – not the issue itself of incorrect passwords

    #260651
    danbp
    Participant

    The single topic view template (loop-single-reply.php) has 2 actions hooks you can use:

    do_action( 'bbp_theme_before_reply_author_details' );
    do_action( 'bbp_theme_after_reply_author_details' );

    In so far, the above function should work.

    Try this one. Add it into your theme function to test. And if it works from there, remove it and add it to your child-theme functions.php file.

    function country_flag() {
    if( class_exists( 'bbPress' ) ) :
    $user_id = bbp_get_reply_author_id();
    $country = xprofile_get_field_data( 'country', $user_id );
    
    	echo '<div class="country">'. $country .'</div>';
    endif;
    }
    add_filter( 'bbp_theme_after_reply_author_details', 'country_flag' );

    Activate also wp_debug in wp-config.php while testing. It could be possible you have an error somewhere who avoid the function to work properly…

    If it still doesn’t work, ask for help on the bbpress support.

    #260543
    danbp
    Participant

    @tranny,

    dealing with spammers is a long run work, to not say a never ending work. There is no miraculous plugin or trick to stop them.
    And even if you would be a genius coder creator of an extra super original spam shield, you could be sure to became target #1 of all spammers, because in this case, you would represent the absolute challenger of all code breakers !

    Back to real life.

    Most of updates spam comes directly into the DB. Bots are clever and don’t need to login to do that.
    Some spammers are real people, and once they are logged, they do their stuff manually. These people can be isolated, but to do this, you have to find them in the user list. Which is absolutely not easy and time comsumting. And of course, this is not prevention but intervention, after you where spammed.

    You could also track IP‘s, but again, this can be helpfull only AFTER you where spammed. But getting ip’s on admin user list is a great way to gain time. Once you have the IP, you can consult many anti spam sites who store any bot and user known to be attackers. And eventually ban them with this plugin.

    For now, first thing to do is to clean your user list. Whatever suspect username, like a589xdf or special to BP, Bill UNERHOOD, can be eliminated. The first example use alpha-numeric digits, the second a very well formed first and last name. It’s extremely rare that normal users enter such credentials. In addition to this, you can check their email. Why would you, for example, have members with a polish email (@blogmedykamenty.pl) if you’re in New Zeeland and your site relates about pets ? In this case, you can raisonably doubt about an interest between medicaments and pets ! You can fire such user.

    All this may be good and well, but you have also to hardening WP. This means using another table prefix as wp_ at very first. And second, to not use “admin” as user name. Never !
    Read also @venutius tutorial

    You have to clean out the existing spammers, unfortunately manually. And to avoid upcoming spam.

    To calm down the bots – in case you receive dozen of spam daily, close all comments and deactivate notices and messages component in bp settings for 2 or 3 weeks.

    Also, in case you’re on a dedicated server, you really need to enforce his security. But this is out of the scope of this forum.

    #260533

    In reply to: how to add new members

    Steve
    Participant

    Thanks for all the feedback. Sorry it seems confusing.

    I just want to add my community moderators and admins before the site goes life. I know how to promote users.

    I just want them activated. I created them in the WP User area. But they are not in the Buddypress member list (frontend).

    So, I logged into the site using their credentials. I am assuming that is how you “activate” their account.

    The reason I guess is seems confusing, is there is no actual “activate” button, link or anything like that.

    In anycase, I think I am doing it right. I create the users and then “activate” them by logging into the site using their credentials.

    Just so you know (and to avoid a bunch more questions) the site is being produced on a localhost. So I cannot have them set up their own accounts. But I want them on the site when it goes live, so I am doing it for them.

    #260531

    In reply to: how to add new members

    danbp
    Participant

    How do I add a new member to buddypress from the backend of WP?
    They are the forum moderators and group admins.
    So, how do I “activate” them?

    What should be understood from your questions ?

    Adding a new user from backend and/or promote it as mod or group admin ?
    Adding a new user is not related to BuddyPress, but to WordPress.

    To promote users as mod or admin or add new user to a group from back-end
    dashboard > groups > select the group > edit > anything to do that is at the bottom of the screen.

    jenfilgate
    Participant

    1. Which version of WordPress are you running? 4.6.1

    2. Did you install WordPress as a directory or subdomain install? directory

    3. If a directory install, is it in root or in a subdirectory? root

    4. Did you upgrade from a previous version of WordPress? If so, from which version? yes 4.6.0

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. yes

    6. Which version of BP are you running? 2.7.0

    7. Did you upgraded from a previous version of BP? If so, from which version? 2.6.2

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    – AsynCRONous bbPress Subscriptions
    – BackWPup
    – BAW Login/Logout menu
    – bbP private groups
    – bbPress
    – bbPress auto subscribe for new topics and replies
    – BP Direct Menus
    – BuddyPress
    – BuddyPress for LearnDash
    – BuddyPress NoCaptcha Register Box
    – Cloudflare
    – CodeStyling Localization
    – Contact Form 7
    – Content Aware Sidebars
    – Custom Post Type Page Template
    – Draw Attention
    – Gallery Carousel Without JetPack
    – Google XML Sitemaps
    – LearnDash & BBPress Integration
    – LearnDash – Gradebook
    – LearnDash Content Cloner
    – LearnDash LMS
    – LearnDash Pro Panel
    – LearnDash WooCommerce Integration
    – Livemesh SiteOrigin Widgets
    – MailChimp for WordPress
    – Members page only for logged in users
    – Page Builder by SiteOrigin
    – Post Types Order
    – Postman SMTP
    – Prevent Content Theft Lite
    – Revolution Slider
    – Simple User Profile
    – SiteOrigin Widgets Bundle
    – Slideshow
    – Slim Stat Analytics
    – The Events Calendar
    – Theme My Login
    – Ultimate Posts Widget
    – User Login Log
    – W3 Total Cache
    – Widget Importer & Exporter
    – WooCommerce
    – WooCommerce MailChimp
    – WordPress Importer
    – WP Better Emails
    – WP Smush

    9. Are you using the standard WordPress theme or customized theme? customized

    10. Which theme do you use ? Invent

    11. Have you modified the core files in any way? no

    12. Do you have any custom functions in bp-custom.php? no

    13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? 2.5.10

    14. Please provide a list of any errors in your server’s log files. none

    15. Which company provides your hosting? InMotion Hosting

    16. Is your server running Windows, or if Linux; Apache, nginx or something else? Apache

    I did the tests you recommended and it was my W3 Total Cache plugin that was causing the issue. I will have to look into that to figure out what setting was messing it up. @Scaffies doesn’t have that plugin, so guess our issues were caused by different things.

    #260405
    danbp
    Participant

    Hi,

    it seems that you have a lot of pages on the site and that you use weird settings.

    I would do the following:
    – remove any redirect settings and other done via plugins.
    – deactivate all plugins except buddypress.
    – activate 2016, and not a child theme.
    – ensure that each active BP component has a page assigned and that this page is unique, without any template or model assigned. Just a title and nothing else.
    Actually, you have links like “…/americannexus.net/activity/members/” (found in the Who’s on widget). Or the link to Archangel’s profile indicates “../americannexus.net/activity/members/archangel/”

    That’s unusual and cannot work properly, except if your WP is in a directory called “activity”. And it is not the case ! Note also that BP should be at the same level as WP.

    – set up pretty permalinks (what ever but default option) and save.

    – and read attentively the install guide.

    Other dysfunctionning points:
    The toolbar has a Register button who link to ../americannexus.net/join/ (this works correctly)
    but the homepage shows ../americannexus.net/register/. If you want visitors to register, send them to /join/ page and not to an empty page.

    …and of course, this link doesn’t work too (at least for a not logged visitor) : ../americannexus.net/activity/groups/create/

    Here the list of correct slugs of a default BP install:
    – your-site.net
    – your-site.net/register/
    – your-site.net/activity -> BP site activity page (active by default)
    – your-site.net/members/ -> BP members directory (mandatory)
    – your-site.net/groups/ -> BP groups directory (if group component is active)

    These BP pages are dynamic and depending the context, you can have ie:
    your-site.net/members/USERNAME -> goes to a profile
    your-site.net/members/USERNAME/friends -> goes to the friends screen of the specified user

    It works the same for groups.

    Once BP and WP are working correctly together, you can reactivate the child theme and your plugins.

    #260041
    Paul Wong-Gibbs
    Keymaster

    I guess that means that when a user registers on one of the multi-sites he can use his account on all the other websites of the Multi-site installation, right ?

    Yes, but understand that you have to give that user access to those other sites (in wp-admin) to write blog posts, for example. If a user does not have explicit permissions to a specific multisite site, they won’t have any special access; they’ll only be able to read the content as if they were another normal visitor. You can test this right now, without BuddyPress, and see how it works.

    meaning it takes him out of the French Website to put him onto the English on

    You seem to be using multisite to have your content localised into different languages. This is a common approach for WordPress multisite, but BuddyPress does not work the way you want it to in this situation.

    You can activate BuddyPress in a few different ways. Simply, on multisite, you can activate the plugin on a specific site, or network-wide. There is lots more detail at https://codex.buddypress.org/getting-started/installation-in-wordpress-multisite/ but if BuddyPress is activated network-wide, all the BuddyPress content will only appear on one site (we call this the “root blog”). We use redirects to support this, exactly as you’ve found.

    You can’t have BuddyPress active on a multisite that uses the sub-sites as different languages, and have the BuddyPress social network appear on all of them and work in the same way, except with different translations. It doesn’t work that way out the box…

    …however here is an advanced setting you can use to make BuddyPress behave like this: BP_ENABLE_MULTIBLOG

    See https://codex.buddypress.org/getting-started/customizing/bp_enable_multiblog/
    I would encourage you fully test this setting out if you enable it, before you start building the rest of your site, just to understand and confirm its behaviour.

    🙂

    #259898
    karennadine
    Participant

    I have moved my site from Ning to Wp/Buddypress with a bbpress integration a few weeks ago. I was able to import a lot of content except the forum topics/responses.

    What I did was this:
    – used the export tool from Ning
    – used the import tool to import ning to Buddypress
    All my members (not that many, around 34 at that time) and their profiles, usernames, etc were transferred. All blogposts from Ning were imported as well.
    It was easy for members to activate their account on my new Wp/Buddypress site.

    The only down thing was that I had to manually copy topics and responses from the forum since I was unable to import this due to an error in the json file. I tried to repair that file but with no succes.

    I hope this helps, should you have any questions please let me know. Like you I browsed many old topics and was unable to find any recent topics, so I just started out with trail and error to do it all myself.

    Karen

    #259824
    bcanr2d2
    Participant

    My install has stopped sending any emails out for new user activation.
    I can receive emails sent by WordPress after a user is manually activated, and can receive any email from Postman SMTP, as these test emails work.

    I don’t use any other activity markers, but emails were not received when messages were sent either.

    I have tried all of the listed troubleshooting steps that others have gone through before.

    I have a custom function that creates a post for the user during the registration process. I have removed all custom functions and tried registering a user, and it still will not send any emails.

    As BuddyPress uses it’s own PHP Mailer, I am not able to log them via any WP Mail logging tools, and want to see what might be going on here.
    The problem reared its head around the time I upgraded to 2.6 (although the custom function during registration was also added at this time) as well

    I have reset the emails multiple times, and I have not made any changes to them.

    Could someone please provide assistance, or given me a suggestion on how to run the BP Email Debug code to get an email of any issues

    Host is Bluehost

    Here is my install, and plugin list

    WordPress 4.5.4
    BuddyPress 2.6.2
    Advanced Custom Fields 4.4.10
    Akismet 3.1.11 (inactive)
    BackWPuP 3.3.4
    BP Force Profile Photo 1.0.5
    BP Member Type Manager 1.0.1 (inactive)
    BP xProfile Location 1.2
    BP XProfile WordPress User Sync 0.6.4
    Broken Link Checker 1.11.2
    Buddy Progress Bar 1.0.2
    BuddyPress Conditional Field Groups 0.1.0
    Buddypress Conditional Profile Field 2.0
    Buddypress Geodirectory Integration 1.0.0 (inactive)
    BuddyPress Member Type Generator 1.0.2
    BuddyPress Profile Tabs 1.6.1
    BuddyPress Security Check 2.1.2
    BuddyPress Simple Terms And Conditions 1.3
    BuddyPress Xprofile Custom Fields Type 2.5
    BuddyPress Xprofile Member Type Field 1.0.4
    Cherry Parallax Plugin 1.0.0 (for my theme)
    Cherry Plugin 1.2.8.1 (for my theme)
    Conditional Profile Fields for BuddyPress 1.1.9
    Contact Form 7 4.5
    Contact Form 7 – Dynamic Text Extension 2.0.1
    Custom Hooks 1.0 (All my custom functions are in this plugin)
    Custom Login 3.2.5
    Custom Post Template By Templatic 1.0
    Custom Post Type UI 1.4.1
    Disable Comments 1.5.2
    Display Posts Shortcode 2.7.0
    Easy Parallax Slider 2.1.1
    FacetWP 2.6.4
    GEO my WP 2.6.6.1
    GeoDirectory 1.6.5 (inactive)
    Hello Dolly .1.6 (inactive)
    MOJO Marketplace 1.0.1 (inactive)
    MotoPress Content Editor Lite 1.6.5 (inactive)
    Quick and Easy FAQs 1.0.3
    SuitePlugins – Advanced XProfile Fields for BuddyPress 1.0.3
    Super Socializer 7.8.1
    WP Private Content Plus 1.11
    WPFront User Role Editor 2.12.4
    Yoast SEO 3.5

    #259368
    danbp
    Participant

    Hi guys,

    you should read topics completely! 👿
    In one of my answer to the above mentionned, you have the necessary information to get it to work for replies. I tested it today and it works for me.

    Now I repeat it again, it’s not done to add wp_editor to a textarea which was never intented to be a post editor. It’s a simple message composer ! Do you write MMS with Word ?

    By adding wp_editor to this composer, you can only add the the HTML editor, like the one you have on this forum. The visual tab won’t work because of numerous filters and the way wp_editor is working. Activating the visual tab on the compose screen will also break your theme, in 99% of cases.

    Once you have it correctly displayed, you will see that most of the tags will be striped. This can be avoided by defining $allowedtags in wp_kses filter. The inconvenient of this is that it will also be available on what’s new form and any other form you use on your site. So, you’re warned.

    The code i used today, including allowed tags i had to activate.

    function bpfr_compose_msg_tiny_editor() {
    add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );
    
    $content = "";
    	
    	if ( isset( $_GET['r'] ) ) :
    	$content = esc_textarea( $_GET['r'] ); 
    	endif;
    
    	$editor_settings = array(
    		'content' => bp_messages_content_value(),
    		'textarea_name' => 'content',
    		'editor_id' => 'message_content',
    		'teeny'=>true,
    		'media_buttons'=>false,
    		'quicktags' => array(
    			'buttons' => 'strong,em,link,img,block,del,ul,ol,li,code,close'
    	) ); 
    
    	wp_editor( bp_messages_content_value(), 'message_content', $editor_settings); 
    
    }
    add_action( 'compose_edit_tools', 'bpfr_compose_msg_tiny_editor' );
    
    function bpex_allowed_tags() {
    	global $allowedtags;
    	$allowedtags['img']		= array( 'src' => array () );
    	$allowedtags['ul']		= array();
    	$allowedtags['ol']		= array();
    	$allowedtags['li']		= array();	
    }
    add_action('init', 'bpex_allowed_tags', 10);
    

    How-to is explained on the other topic.

    #259142
    danbp
    Participant

    Hi @ma3ry,

    the issue comes probably from the membership plugin who conflicts with BP registration.

    In brief, what ever this plugin does(or not), when BP is activated, you have on registration process the WP login routine (username, email, password) and the little mandatory Name field coming from BP.

    That’s all.
    What probably happen, is that you don’t have this Name field on Single Membership registering…
    Because of this, BP doesn’t know about the user existence and can’t fire the additionnal xprofile fields.

    That the first diagnostic.
    A second one may be more complex, as it is related to the fact you changed the php version and using WP 4.6.x

    You certainly made a big DB dump before that change. And also a new WP install – or at least, a WP update. If you made just a WP upgrade, it would be ok to a certain point.

    If you started a new install after the php change, the problem can be in the old datas you injected to the new DB. But no panic, it’s only an hypothese at the moment.

    So it would be great you give details about this and if possible your server configuration.

    #259141
    danbp
    Participant

    Hi @bastianernst

    guess you made some mistake while activating BuddyPress and using your theme. Probably you have also some other plugins in use ?

    So, aside from reading absolutely throuhg the install BP documentation, i strongly recommand that you check the site fonctionnalities by using only:

    WP+BP+Twenty Sixteen theme. No other plugin, no custom code.

    If you allowed registration, you have a login widget (the one coming with WP) you can activate in the sidebar. Do this for testing the password change (click on lost password ?) once active.

    Also on the basic install, you should have all BP menus in the usermenu (top right corner) and on a user profile.

    Once anything ok on this install, upload BP Default Data plugin and activate it. This will add fake datas in all parts of BP, so you have content everywhere that let you test completely the site.

    Go through and see how it works.

    If all seems ok, you can then activate the final theme. Simply remind that BP pages should be empty, without any content or template model.
    Don’t forget to set up pretty permalinks (whatever but by default) and with a little luck, you’ll be on the right path.

    #259033
    ositive
    Participant

    Thank you Shanebp
    I tried the following steps (below is the final code):
    -I started from the basic random code
    -I introduced the function to create and pass #sql (like Ninja Warrior trick code)
    but it seems not working.. Can you help me please (I’m really trying everithing..)?
    Thanks

    <?php
     
    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) ) exit;
     
    class BP_Loop_Filters {
     
        
        public function __construct() {
            $this->setup_actions();
        }
     
        private function setup_actions() {
            /**
             * Adds the Rating order to the select boxes of the Members directory pages
             */
            // Members component is core, so it will be available
            add_action( 'bp_members_directory_order_options', array( $this, 'rating_order' ) );
     
        }
     
        public function rating_order() {
           
    	global $wpdb;
    
    	$sql = "SELECT
                     a.ID as id, a.user_nicename AS name, a.display_name AS displayname, AVG(star) AS rating, COUNT(star) AS reviews
                 FROM {$wpdb->prefix}users AS a
                 LEFT JOIN {$wpdb->prefix}bp_activity AS b ON a.ID = b.usercheck
                 WHERE (b.is_activated is null or b.is_activated=1)
                 GROUP BY id
                 ORDER BY rating DESC";
        var_dump( $sql );
    
    	return $sql;
    
        }
     
    }
     
    function bp_loop_filters() {
        return new BP_Loop_Filters();
    }
     
    add_action( 'bp_include', 'bp_loop_filters' );
    #258638
    danbp
    Participant

    I’m unable to reproduce your issue on a single install with over 20 plugins active and plenty of custom functions active in bp-custom.php
    I can upload medias without problem with different 3th party themes or Twenty’s

    Try to upload a fresh copy of WordPress and BP and see if it makes a difference.

    Now about the snippet.
    It works more or less, no code error. You commented the action, so it is deactivated if someone copy/paste it without correcting this.

    That said, what is the reason behind using a redirection to login if the site, or at least the buddyPress parts, should be private ?

    Wouldn’t it be more logic to redirect visitors to an anonymous page with some important information, from which the first one could be Sorry, but this site is private ? Followed by some informations how to register or pay a fee or whatever the reason.

    A private site has two type of visitors: those invited to join and the others. Don’t give the opportunity to those who are there by chance to enter the site so easily.

    I let you think about this and eventually create an appropriate page and template.
    Here a code example redirecting to a page called Intranet and the correct calls to slugs for all components (including bbPress).

    function bpfr_guest_redirect() {
    global $bp;
    // enter the slug or component conditional here
    	if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) || is_bbpress() ) {
    	
    // not logged in user are redirected to - comment/uncomment or add/remove to your need
    		if( !is_user_logged_in() ) { 
    			//wp_redirect( get_option('siteurl') ); //back to homepage
    			//wp_redirect( get_option('siteurl') . '/register' ); // back to register page	
    			wp_redirect( get_option('siteurl') . '/intranet' ); // back to whatever page
    		} 
    	}
    }
    add_filter( 'get_header', 'bpfr_guest_redirect', 1 );

    Add it to child-theme’s functions.php

    #258619
    jowyds
    Participant

    hello danbp, thanks for your reply.

    I have tried the suggestion to use define('WP_DEBUG', true); in conjuction with define('WP_DEBUG_LOG', true); with a twenty theme. It works fine when buddypress is not activated. No error or logfile whatsover. Then after I tried to activate buddypress, and test again. The media library still cannot load out. I have tried to check for error log and I can’t seems to find any.

    Nevertheless I found the culprit can be my bp-custom.php in which I put it just under /wp-content/plugins/[here]

    if I remove the file and everything seems works fine again with buddypress activated.

    This is the content for my bp-custom.php

    
    <?php
    // hacks and mods will go here
    
    /**
     * Make a site Private, works with/Without BuddyPress
     * 
     * @author sbrajesh
     * @global string $pagenow
     * 
     */
     
     /*
    function buddydev_private_site() {
        
        //first exclude the wp-login.php
        //register
        //activate
        global $pagenow;
        
        //do not restrict logged in users
        if( is_user_logged_in() ) {
            return ;
        }
        //if we are here, the user is not logged in, so let us check for exclusion
        //we selectively exclude pages from the list
        
        //are we on login page?
        if( $pagenow == 'wp-login.php' ) {
            return ;
        }
        
        //let us exclude the home page
        if( is_front_page() ) {
            return ;
        }
        
        $exclude_pages = array( 'register', 'activate', 'excelportfolio' );//add the slugs here
        
        //is it one of the excluded pages, if yes, we just return and don't care
        if( is_page( $exclude_pages ) ) {
            return ;
        }
        
        $redirect_url = wp_login_url( site_url('/') );//get login url,
        
        wp_safe_redirect( $redirect_url );
        exit( 0 );
    }
    
    */
     
    //add_action( 'template_redirect', 'buddydev_private_site', 0 );
    
    ?>
    
    <style type="text/css">
    
    #wp-admin-bar-bp-login {
    	display:none; /* JOWY: hide login link for buddypress. */
    }
    
    #wp-admin-bar-bp-register {
    	display:none; /* JOWY: hide register link for buddypress. */
    }
    
    #adminloginform {
    	color: #ffffff; /* JOWY: text color on form. */
    }
    
    #wpadminbar {
    	opacity: 0.7; /* JOWY: Opacity for wpadminbar. */
    }
    
    </style>
    

    what can possible went wrong?

    #258589
    ositive
    Participant

    I tryed to work also with this solution (provided by @shanebp too):
    https://buddypress.org/support/topic/creating-a-new-order-by-filter-in-groups-loop-with-custom-sql/
    but I do not obtain to order members by rating.. is this the right approach??

    function antares_members_filter_options() {
        echo '<option value="rating">rating</option>';
    }
    add_action( 'bp_members_directory_order_options', 'antares_members_filter_options' );
    
    function antares_ajax_querystring( $query_string, $object ) {
    
    	if ( 'members' != $object ) 
    		return $query_string;
    
    	if ( ! bp_is_members_directory() ) 
    		return $query_string;
    	
    	$query_args = wp_parse_args( $query_string, array() );
    
            $page = $query_args['page'];
    
    	if( isset( $query_args['action'] ) && $query_args['action'] == 'rating' ) {
    	
    		$query_args = array();
    		$query_args['page'] = $page;
    		$query_args['orderby'] = 'rating';		
    		$query_args['order'] = 'ASC';			
    		$query_args['include'] = antares_get_members(); 
    		$query_string = http_build_query( $query_args );
    
    	}
    
    	return $query_string;
    
    }
    add_filter( 'bp_ajax_querystring', 'antares_ajax_querystring', 32, 2 );
    
    function antares_get_members() {
        global $wpdb;
    
            $sql = "SELECT 
    					a.ID as id, a.user_login AS name, a.display_name AS displayname, AVG(star) AS rating, COUNT(star) AS reviews
    				FROM 
    					{$wpdb->prefix}users AS a
    				LEFT JOIN 
    					{$wpdb->prefix}bp_activity AS b ON a.ID = b.usercheck
    				WHERE 
    					(b.is_activated is null or b.is_activated=1)
    				GROUP BY 
    					id
    				ORDER BY 
    					rating DESC";
        
    $buff = array();
    
    $result = $wpdb->get_results( $sql , OBJECT );
    
    		foreach ($result as $row) {
    			$buff[]= $row->id ;
    		}
    		
    $query_str= implode (',', $buff);
    return $query_str;
    }
Viewing 25 results - 126 through 150 (of 903 total)
Skip to toolbar