I’m looking for any guidance on what code to put in, where should it go in the php file and in which php file should I put in the shortcode?
The shortcode is from the popup maker plugin and I want it to only work on the registration page (register.php) The idea of the plugin is to activate a popup when the person is about to leave the registration page. The plugin works perfectly fine on other pages, but it won’t work on the register page.
Here’s the code that Iv’e tried:
Option 1:`
<?php echo do_shortcode(‘[popmake-20646]’);?>`
Option 2:
<?php echo apply_filters('the_content',"[popmake-20646]"); ?>
Option 3:
<?php if ( is_page( 'register' )) echo do_shortcode('[popmake-20646]'); ?>
Option 4:
<?php if(!is_home()): ?>
<div id="cristi"><?php echo do_shortcode( '[popmake-20646]' ) ?></div>
<?php endif; ?>
I am not very good with php. I only want this popup to work on the register page. What am I doing wrong? I put in the code listed above into the register.php file. Should it go into a functions.php file or another file? Do I need to create a div to “hold” the code?
Any help would really be appreciated.
Thank You
Hey, I’ve been running a couple BuddyPress sites for a good number of years now, and well, the setups are pretty involved.
I’m curious, if there might not now be a few plugin combinations that create reasonably functional BuddyPress communities, out-the-box.
So, basically: everything works.
It’s not that important “how” everything works, but the setup creates a site that won’t be plagued by splogs or spam, obviously registration works properly, and there are usable community features that aren’t broken.
Ideal answers would basically be lists of plugins & possibly themes.
This sounds like a problem with the edit profile screen rather than your registration hook.
Buddy press is working great on all browsers and devices apart from on Windows mobile. When you are on the registration page on a windows phone and press one of the input fields the page just reloads and either doesn’t let you enter in any text or it lets you enter in the text but when you go to the next input field the page reloads again and loose the content from the previous field.
I have got Twenty-fifteen theme enabled, I have also tried twenty-sixteen and the same happens.
Any ideas what could be causing this?
I am running:
Wordpress 4.5.2
Buddy press 2.5.2
Thank you for your help.
Hi all
So I’ve been doing some further trouble shooting on this one and it’s just… odd.
The issue doesn’t seem to be with just buddypress in isolation. It appears to be related to (whatever happens or changes) when buddypress and bbpress are activated at the same time.
So, I created a brand new install of WordPress and installed WP job manager
Within WP job manager I have the “allow account creation’ setting enabled when submitting a job listing
With buddy press installed and enabled by itself I can enter and preview a new job listing without any issues.
With bbpress installed and enabled (and buddypress disabled) I can enter and preview a new job listing without any issues.
With buddypress + bbpress enabled at the same time, previewing a job posting takes me to a 404 page not found error message
The interesting thing is.
If I leave Buddypress and bbpress enabled but I disable “allow account creation” when submitting a new job listing in WP job manager. The job preview step works just fine.
So I guess from I’ve been able to ascertain that it is the WP job manager account creation step which is conflicting with ‘something’ that changes on the back end when both buddypress and bbpress are enabled at the same time.
I have no idea what might change on the backend when bbpress and buddypress are enabled from an account registration perspective so at this point I’m stumped.
Does anyone have any ideas where I might be able to look next?
Thanks
Mark
@maganiza,
how and when do you generate the field value, if the user can’t edit it ?
The only place a user can acces a field is on his profile.
On signup page, only fields who are part of the “Base” field group are shown.
You can create another field group who will contain the field you want after signup. Then, to enter something to it, the user must go on his profile. But if you disallow edition for that field, it’s quite impossible.
Before signing in, a user doesn’t exist. He can only fill some registration fields before asking to be a member. Once he is approved, he can access to his profile and fill additionnal fields.
Aside, is the field value the same for all user ? Perhaps you could add this information differently to profile. Give details please.
I am trying to assign a default member type when users register from a non-buddypress registration form. This is the action I’m adding:
add_action( 'user_register', 'default_member_type', 10, 1 );
function default_member_type( $user_id ) {
if ( ! bp_get_member_type($user_id) ) {
bp_set_member_type( $user_id, 'member' );
}
}
…and the member type gets set at the end of the function ( the bp_set_member_type()
does set the member type ) but when the user gets dropped into the edit profile screen, the member type is unfilled / unselected. Little help?
registration and activation pages should not be cached as its for logged out users i believe
Earl – If you want to use W3 Total Cache’s page cache, but want to whitelist the registration and activation pages, you should be able to do that within W3TC.
This is an old guide that I found on Google to show you how to whitelist pages in W3TC:
https://www.itsupportguides.com/wordpress/w3-total-cache-how-to-exclude-posts-and-pages/
For your needs, whitelist the /register/
and /activate/
page slugs or whatever you have those slugs set to in BuddyPress.
Very interested in this conversation. I have X cache enabled on my server. But deactivated w3tc when I started having issues with registration. Any tips can I set so that I know w3tc wouldn’t be interfering with registration. Is it as simple as turning of/disabling page caching.
Hello,
My site (lr417.com) is under construction, and I am a total newbie to all of this, so please forgive my ignorance.
I am using the Customizr theme with WordPress 4.5.2 and BuddyPress 2.5.3. What I am trying to accomplish is setting up a social site to compliment a group page I manage on Facebook. For now, I’d like my site to allow users to contribute blog posts. I would like them to be able to Register as well as Log in using their Facebook account (for users that have one).
I have installed Nextend Facebook Connect, but all I can get it to do is allow someone to register/login through the wp-admin page. Like I said, I’m new here, but I don’t think this is what I’m looking for it to do. I want users to register for blogging. (This plugin is still activated)
Next I activated WP-FB-AutoConnect and filled in the same App ID/Secret that I successfully used for Nextend. Now I am seeing Login and Register links at the top of my page. The Login link goes to a page that is once again some sort of WordPress login. The Register link take you to the BuddyPress page for registration.
I’m really at a loss for understanding how to achieve the registration/login process that I am looking for, and I do not know of any sites using the same or similiar theme/plugins that I am using that I can look at to see how they work.
Please be patient with me while I learn all this, and thank you in advance for your help.
Jim
let me know what issues u found with registration and activation pages?
Anyone have recommendations on spam catchers for BP. Particularly that weeds out spam before registration. Non captcha preferred.
Thanks in advance
How does it handle whitelisting pages like registration and activation pages
@masoud1111,
thank you for your appreciation. And sorry for my confusion about setting > general. That’s traditionnally the path used on admin dashboard. In regard of the picture, it’s the mandatory wp registration email field. This part is on your-site/members/USERNAME/settings.
The template file you can modify is members/single/settings/general.php
In that file is a form who contains a label and a input type for “email”. To hide, you could add a conditionnal for admin’s only.
For example, before both label and input lines, add
<?php if(is_super_admin() ): ?>
<label>bla
<input>bla
<?php endif; ?>
To be complete, you may want to show message to explain about the email field. In that case, add something like following above:
<?php if ( !is_super_admin() ) : ?>
<p>Ask site admin if you want to change your email address.</p>
<?php endif; ?>
BP Registration Options Works pretty well for me includes option to approve every registration prior to user accessing full BP features.
WP 4.5.2
BP 2.5.3
Conditional Profile Fields for BuddyPress 1.1.9
Flatsome theme by UX 2.9.2
currently working offline, testing my site, hence no link
Hi!
I got 2 separate questions about using BP. I’ll be as brief as possible.
1) Is there any way to fix required logic for conditional fields in the registration form? I have the following fields in my form, all of them drop down menues to choose one option:
– State > NY / CA / FL / etc.
– City in NY (show only if State = NY) > Albany / Buffalo / NY / etc.
– City in CA (show only if State = CA) > LA / San Diego / Fresno / etc.
and so on…
The “State” field is required. The “City in…” field is required as well. Of course, only one “City in…” shows after choosing the state. The problem is that ALL of the “City in…” fields are marked as required, and BP expects the user to fill in all of them, even if they’re not showing due to conditional logic.
Is there any way to fix it besides disabling the required status? Basically, people choose their location or something else. Maybe a product thing (PC / TV > laptop – desktop / lcd – led).
2) I have in my sql database tables to organize a lot of products, separated into categories and cross-related. Very neat. Is there a way to easily put that into the registration form with conditional logic? Like the state>county>city thing. Drop down menues that import options from the tables.
Thanks a lot in advance.
If you do not have access to your database, you can temporarily put the following snippet in your theme’s functions.php or wp-content/plugins/bp-custom.php file:
function ray_xprofile_group_fix() {
global $wpdb, $bp;
if ( empty( $_GET['xprofilefix'] ) || empty( $bp ) ) {
return;
}
$wpdb->query( "UPDATE {$bp->profile->table_name_groups} SET id = 1 WHERE id = 2" );
}
add_action( 'get_header', 'ray_xprofile_group_fix' );
Then, go to your website and append ?xprofilefix=1
to your website URL.
eg. example.com/?xprofilefix=1
This should change your profile group ID back to 1. Next, check your registration page and “Edit Profile” link and see if they work.
Once you have confirmed that it works, remove the code snippet from your theme’s functions.php or bp-custom.php file.
Can both of you try reading this and see if the same problem applies to you?
https://buddypress.org/support/topic/registration-page-does-not-work/#post-251532
https://buddypress.org/support/topic/bad-link-to-profile-edit/#post-174602
It sounds like this might be the problem at least for @angelaq.
So I thought I would shed some light on this issue. Since I’ve seen so many threads regarding it and I was having same issue.
this is regarding 404 error page if you are on page profile/edit/group/1/
Problem is group 1 is missing in your profile section.
All you need to do is go into you DB and look for table: wp_bp_xprofile_groups
Then look for id=2, Base
then just change id=2 to 1 and that’s it.
I’m also having this issue. Per recommendation on these forums, the plugin I’m using to assist with registration is Theme My Login.
I’m using ColorMag theme and the latest BP and WP…
I ran a test this morning with BP as the only plugin activated using tiny framework theme. Ran the same again two minutes ago with twenty twelve as theme. I do NOT use any special registration template only what comes with BP out of the box. This is the third time I have done that to prove convincingly that it isn’t simply plugins. Each time the result is the same. Whenever extended profile fields turned on registration does not go through.
I have removed all the extended profile fields except the one on the Base which cannot be removed. That is display name. That is the only thing other than account name, email and password fields that shows up on the registration form.
I am not the only one experiencing this issue I linked to support topic here on this board where someone else having the same problem.
This is literally ruining the launch of my site all my marketing has been wasted since no one can register. If his is not a problem that can be fixed can someone PLEASE tel me how to downgrade. So all my money and effort don’t get blown away.
I also tested BP 2.5.3 on WP 4.5.2 on a fresh install and cannot duplicate your problem, Earl_D.
I tested with the Extended Profiles component enabled.
Are you using any caching plugins? If so, try to disable it or whitelist the register
and activate
pages from caching.
Do you have any special extended profile registration fields? If so, can you list what they are and how they are configured?
@maganiza,
it’s possible. I suppose you need a unique code for some later user specific actions. But that code exist nowhere when a user register. What can we do ?
1) generate a 6 digit code and show it on the register page
2) asign that code to the user
3) show the code on his profile
1 – we use php mt_rand to generate the code and one of the available action hook on the register page for his output. Add this snippet to bp-custom.php
function bpfr_digit_generator() {
$num = mt_rand ( 0, 0xffffff );
$output = sprintf ( "%06x" , $num );
echo '<strong>Your personnal code: '. $output .'</strong>';
}
add_action( 'bp_after_account_details_fields', 'bpfr_digit_generator' );
2) create a new xprofile field, call it Personnal Code or whatever. Make it mandatory and asign it the visibility level you want. In field description, ask the user to copy/paste in the code.
3) as the user entered the code in a xprofile field, you get automagically this field on his profile.
I’m a bit unsure how to insert this field value in the activation email, or if it’s even possible. Perhaps somebody else can help you. See email on codex.
A bit raw, but at least you have a start point how to do that.
Here also another method, you may use if you don’t want the user to copy/paste the code.
use wp spamshield plugin..this would stop the spam registrations on your website which in turn wont lead to spam groups
Hi guys thank you for such a great plugin.
Is it possible for this plugin to assign unique 4-10 digit codes to users upon registration? I want each and every new registered user to automatically receive a unique code within the registration activation email. This code should also appear in their profile.
Regards