Forum Replies Created
-
Author
-
tdarnoldParticipant
Also need to know which file to edit to Make United States the first country in the drop down there.
tdarnoldParticipantWhich switch changes the color. FWIW I find much confusion when it comes to color buttons. Not sure which does what
tdarnoldParticipantThats perfect but need to know how to change the color of the font and also increase the size of the field below:
View
Edit
Change Profile PhototdarnoldParticipantOk now everything seems to be working again.
Having a huge problem with spam and wanguard wont take the key for some reason. Any other suggestions?
tdarnoldParticipantOnce you sign up, activate your account, then log back in it takes you automatically back to the signup page.
You can sign up and see if you like
tdarnoldParticipantThe total numbers of members being reports on the front end is not the same as what is on the back end. Its about double.
tdarnoldParticipantI also need to add google translate to the very top. I did it once before but cant remember which file it goes in
tdarnoldParticipanttdarnoldParticipantSorry not much of a coder. Can you give me the exact code and format and I will try it again.
tdarnoldParticipantThanks. I am guessing the word menu is on the grey bar. What otpion controls the color of the menu text?
tdarnoldParticipantFrom 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 PaneltdarnoldParticipantOk I will check it and appreciate your help. One last question What is the link to get the theme API?
tdarnoldParticipant<?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’);
}?>
tdarnoldParticipantFound the problem. I see now where the code should be inserted before the php closing tag.
tdarnoldParticipantI copied the code to functions,php but am getting an error message and can see the code at the top when logged in. I know absolutely nothing about php but am thinking it has to do with a closing tag. around the code
-
AuthorPosts