Forum Replies Created
-
Author
-
lux007Participant
Can also use this code to redirect members already logged in:
COPY CODE/* Redirect to Profile if Loggedin */ add_action( 'template_redirect', 'redirect_to_specific_page2' ); function redirect_to_specific_page2() { if ( is_page('PAGEIDHERE') && is_user_logged_in () ) { $current_user = wp_get_current_user(); $profileurl = $current_user->user_login; wp_redirect( 'https://www.domain.com/members/'.$profileurl.'/profile/', 301 ); exit; } }
1. Enter the Home Register page’s ID above.
2. The URL can be adjusted to whatever you want them redirect to. The above redirects them to their profile.
lux007ParticipantFYI, step #4 is wrong. You need to enter the page ID of the “Reg” page. The URL is the link to the “Home Register” page.
So people visiting http://www.domain.com/reg/ will automatically be redirected to http://www.domain.com/registration/
lux007ParticipantHere is a solution that will help everyone.
1. Create a page named – “Reg”, which will create http://www.domain.com/reg/
2. Set the “Reg” page as the registration page under Buddy Press settings.
3. Create the page “Home Register”, if already created then skip this step.
4. When under pages, hover over the edit link for the “Home Register” page and get the page ID.
5. Open your “Child-themes” functions.php file and enter the following code:
COPY CODE/* Redirect Registration Page */ add_action( 'template_redirect', 'redirect_to_specific_page' ); function redirect_to_specific_page() { if ( is_page('IDHERE') ) { wp_redirect( 'https://www.domain.com/register/', 301 ); exit; } }
6. Update the code with the page’s ID and the URL to which you want it to redirect to. No need to edit the registration.php or other files.
7. Enjoy 😛
lux007ParticipantWhere do I find the Home Register demo/content? I don’t see it in the Kleo Import options.
May 5, 2016 at 23:00 in reply to: Capture fields like birthday, age, city when register using facebook #120619lux007ParticipantI’d like to capture additional information during registration as well, especially the users location.
lux007ParticipantI’d much rather enter pure html or shortcodes as they are faster to edit than waiting for popups or moving things around 😛
lux007ParticipantThanks! Here is the code for those that are looking to duplicate the demo site:
COPY CODE[vc_row][vc_column width="1/1"][vc_column_text css_animation="right-to-left"] <h3 style="text-align: center;">Latest Site Activity</h3> [/vc_column_text][kleo_gap size="20px"][/vc_column][/vc_row][vc_row][vc_column width="1/2"][vc_column_text css_animation="right-to-left"] <h4 style="text-align: center;">Groups</h4> [/vc_column_text][kleo_divider type="long" position="center" icon="asterisk"][kleo_bp_activity_stream number="6" show_button="yes" button_label="View All Activity" button_link="/activity" show="groups"][/vc_column][vc_column width="1/2"][vc_column_text css_animation="right-to-left"] <h4 style="text-align: center;">Friends</h4> [/vc_column_text][kleo_divider type="long" position="center" icon="asterisk"][kleo_bp_activity_stream number="6" show_button="yes" button_label="View All Activity" button_link="/activity" show="friends"][/vc_column][/vc_row]
lux007ParticipantNever mind, it appears to be working this way.
Had an issue with cache/cloudflare.
lux007ParticipantThanks for the fast response! Both of those plugins worked for me 🙂
Of course, Facebook registration skips this step but it will let them select it after registration within their profile. It also adds the membership type on the members search page automatically which is awesome!
lux007ParticipantEven if there is a way to make it so that when they sign in, they can then select an option under their profile?
Then, can I sort the members page by that selection?
December 30, 2014 at 20:39 in reply to: Change Row Background Image in CLASSIC MODE, No Visual Composer #40742lux007ParticipantCOPY CODE<section style="background-image: url(http://www.domain.com/images/image.jpg);background-position: center center;background-repeat: no-repeat;background-attachment: scroll;background-size: cover;padding-top: 300px;padding-bottom: 60px;min-height: 0.04px" data-prlx-speed="0.04" class="container-wrap main-color bg-parallax text-center"><div class="section-container container"><div class="row"> <div class="col-sm-12 wpb_column column_container"> <div class="wpb_wrapper"> <div class="kleo_text_column wpb_content_element "> <div class="wpb_wrapper"> <h1><span style="color: #ffffff;">EXPLORE THE PLANET</span></h1> </div> </div> <div style="height:20px;line-height:20px;" class="kleo-gap"></div><div class="kleo-search-wrap kleo-search-form search-style-transparent"><form data-context="" action="http://www.domain.com/" id="searchform" method="get" role="search"> <div class="input-group"> <input type="text" placeholder="" value="" class="ajax_s form-control input-lg" autocomplete="off" id="s" name="s" style="opacity: 0.5;"><span class="input-group-btn"><input type="submit" class="button" id="searchsubmit" value="Search"></span></div></form><span class="kleo-ajax-search-loading"><span class="kleo-loading-icon"></span></span><div class="kleo_ajax_results" style="opacity: 0.5;"></div></div><div style="height:30px;line-height:30px;" class="kleo-gap"></div> <section style="" class="container-wrap main-color"><div class="section-container container"><div class="row"> <div class="col-sm-3 wpb_column column_container"> <div class="wpb_wrapper"> </div> </div> <div class="col-sm-2 wpb_column column_container"> <div class="wpb_wrapper"> <div class="kleo_text_column wpb_content_element "> <div class="wpb_wrapper"> <h2 style="margin-bottom: 0; color: #fff !important;"><span data-timer="1500" class="kleo-animate-number animate-when-almost-visible number_prepared start-animation" data-number="2">2</span>.<span data-timer="1500" class="kleo-animate-number animate-when-almost-visible number_prepared start-animation" data-number="247">247</span></h2> <p style="color: #fff;">PORTFOLIO ITEMS</p> </div> </div> </div> </div> <div class="col-sm-2 wpb_column column_container"> <div class="wpb_wrapper"> <div class="kleo_text_column wpb_content_element "> <div class="wpb_wrapper"> <h2 style="margin-bottom: 0; color: #fff !important;"><span data-timer="1500" class="kleo-animate-number animate-when-almost-visible number_prepared start-animation" data-number="158">158</span></h2> <p style="color: #fff;">FEATURED ARTICLES</p> </div> </div> </div> </div> <div class="col-sm-2 wpb_column column_container"> <div class="wpb_wrapper"> <div class="kleo_text_column wpb_content_element "> <div class="wpb_wrapper"> <h2 style="margin-bottom: 0; color: #fff !important;"><span data-timer="1500" class="kleo-animate-number animate-when-almost-visible number_prepared start-animation" data-number="28">28</span>.<span data-timer="1500" class="kleo-animate-number animate-when-almost-visible number_prepared start-animation" data-number="731">731</span></h2> <p style="color: #fff;">DAILY SEARCHES</p> </div> </div> </div> </div> <div class="col-sm-3 wpb_column column_container"> <div class="wpb_wrapper"> </div> </div> </div></div></section><!-- end section --> </div> </div> </div></div></section>
I guess that’s the only way to do it… straight html.
December 30, 2014 at 20:38 in reply to: Change Row Background Image in CLASSIC MODE, No Visual Composer #40741lux007ParticipantSo there’s no solution to this?
If I’m designing a site, would it be more efficient to:
1. upload/overwrite an image in http://www.site.com/images/ or
2. Go to pages, edit, switch to “backend editor”, edit row, wait for it to load, and upload the image (while knowing that I’d have to still delete all other previous uploads).I’d rather do option #1.
-
AuthorPosts