-
Author
-
February 10, 2015 at 17:00 #45431tdarnoldParticipant
After signing up I can no longer navigate to any pages. Everything redirects to the home page. FWIW I have the code installed in the functions.php to make it free for women.
February 10, 2015 at 17:01 #45434LauraModeratorHello, can you share your functions.php file here?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 10, 2015 at 17:04 #45440tdarnoldParticipant<?php
/**
* @package WordPress
* @subpackage Sweetdate
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Sweetdate 1.0
*//**
* Sweetdate Child Theme Functions
* Add extra code or replace existing functions
*//**
* When registering, add the member to a specific membership level
* based on the field value he has selected
*
* @global object $wpdb
* @global object $bp
* @param integer $user_id
*/
function kleo_pmpro_default_level($user_id) {
global $wpdb, $bp;//Change this with your field name
$field_name= “I am a”;//Change the field value
$value_to_match = “Woman”;//Membership level id
$membership_level = 2;//Done editing
$field_id = $wpdb->get_var( $wpdb->prepare( “SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s”, $field_name ) );
if ($_POST[‘field_’.$field_id] == $value_to_match) {
pmpro_changeMembershipLevel($membership_level, $user_id);
}
}function kleo_mu_pmpro_default_level($user_id, $password, $meta) {
global $bp, $wpdb;//Change this with your field name
$field_name= “I am a”;//Change the field value
$value_to_match = “Woman”;//Membership level id
$membership_level = 1;//Done editing
$field_id = $wpdb->get_var( $wpdb->prepare( “SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s”, $field_name ) );
$field_value = $meta[‘field_’.$field_id];
if ( $field_value == $value_to_match ) {
pmpro_changeMembershipLevel($membership_level, $user_id);
}
}if (is_multisite()) {
add_action( ‘wpmu_activate_user’, ‘kleo_mu_pmpro_default_level’, 10, 3);
} else {
add_action(‘user_register’, ‘kleo_pmpro_default_level’);
}?>
February 10, 2015 at 17:06 #45444LauraModeratorHello, please share a link to your website and also login credentials to ftp and wp-admin 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 10, 2015 at 17:25 #45447LauraModeratorHello, it doesnt redirect me, but if it does to you, it may be because of a plugin you have installed, see attachment. It may be causing that
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
Attachments:
You must be logged in to view attached files.February 10, 2015 at 17:27 #45450tdarnoldParticipantOk I will check it and appreciate your help. One last question What is the link to get the theme API?
February 10, 2015 at 17:29 #45451LauraModeratorHello, what do you mean? Purchase code for updates?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 10, 2015 at 17:42 #45458tdarnoldParticipantFrom the sales page:
Easy update using Envato WordPress Toolkit. This is included in our theme, all you need is to set your username and API key is our smart Admin PanelFebruary 10, 2015 at 18:29 #45469LauraModeratorHello, look here http://themeforest.net/help/api
In theme options you will find where to insert itHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.