Search Results for 'wp user activate'
-
AuthorSearch Results
-
January 17, 2017 at 4:10 am #262949
In reply to: Wont let me accept or apply to groups
gprovostjr
Participant1. 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.39. 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?
January 10, 2017 at 5:27 pm #262714In reply to: Multisite issue
danbp
ParticipantWhat 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.comSorry, 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).
December 24, 2016 at 11:54 am #262362dekoningalex
ParticipantHi 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
December 17, 2016 at 9:05 am #262209In reply to: Buddypress Cover Photo Does Not Save
danbp
Participantdid 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…
December 8, 2016 at 11:45 am #261891In reply to: User profile links are broken
danbp
ParticipantCheck 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 havehttp://mario/Once BP is activated, you’ll gethttp://mario/members/orhttp://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
You can also follow the bbPress install guide if you use bbPress separately.
December 6, 2016 at 9:48 am #261789Jay
ParticipantThanks 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.
December 6, 2016 at 9:31 am #261787danbp
Participanti’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).
December 2, 2016 at 4:50 pm #261638In reply to: Registration form => 404 not found
danbp
ParticipantHi,
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.
November 15, 2016 at 11:17 am #261020In reply to: Incorrect password (even when it is right)
mashauri
ParticipantI 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 1416Please NOTE: this is input to my main query – not the issue itself of incorrect passwords
November 2, 2016 at 3:16 pm #260651In reply to: Display user country flag
danbp
ParticipantThe 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.
October 29, 2016 at 8:40 am #260543In reply to: How to Turn Off Email Notifications for All Users
danbp
Participantdealing 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 tutorialYou 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.
October 28, 2016 at 10:01 pm #260533In reply to: how to add new members
Steve
ParticipantThanks 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.
October 28, 2016 at 8:54 pm #260531In reply to: how to add new members
danbp
ParticipantHow 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.October 27, 2016 at 5:54 pm #260457jenfilgate
Participant1. 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 Smush9. 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.
October 26, 2016 at 6:54 pm #260405In reply to: [Resolved] Can’t Create Groups
danbp
ParticipantHi,
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 userIt works the same for groups.
Once BP and WP are working correctly together, you can reactivate the child theme and your plugins.
October 20, 2016 at 9:37 am #260041In reply to: BP on Multisite multi-language
Paul Wong-Gibbs
KeymasterI 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.🙂
October 16, 2016 at 11:42 pm #259898In reply to: Migrating Ning to BuddyPress
karennadine
ParticipantI 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
October 14, 2016 at 12:39 am #259824Topic: BuddyPress Emails Not Sending
in forum How-to & Troubleshootingbcanr2d2
ParticipantMy 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 wellI 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.5October 3, 2016 at 4:09 pm #259368In reply to: TinyMCE for replying to messages
danbp
ParticipantHi 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.
September 27, 2016 at 7:48 am #259142In reply to: Unable To Save Profile Settings
danbp
ParticipantHi @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.xYou 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.
September 27, 2016 at 7:33 am #259141In reply to: buddypress user settings problem
danbp
Participantguess 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.September 22, 2016 at 5:21 pm #259033In reply to: Order by custom field in member loop
ositive
ParticipantThank 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' );September 11, 2016 at 11:01 pm #258638danbp
ParticipantI’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’sTry 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
September 11, 2016 at 2:40 am #258619jowyds
Participanthello danbp, thanks for your reply.
I have tried the suggestion to use
define('WP_DEBUG', true);in conjuction withdefine('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?
September 9, 2016 at 6:17 pm #258589In reply to: Order by custom field in member loop
ositive
ParticipantI 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; } -
AuthorSearch Results