member->get_guest_cookies(); if( $only_new_guests && wpfval($guest, 'email') ) return false; $set = WPF()->tools_legal; if( wpfval($set, 'checkbox_forum_privacy') && wpfval($set, 'forum_privacy_text') ){ $forum_home = preg_replace('|\?.+$|', '', wpforo_home_url() ); $str_privacy = wpforo_phrase( 'forum privacy policy', false, 'native' ); $str_privacy_label = wpforo_phrase('I have read and agree to the %s.', false); $str_privacy_link = ' ' . $str_privacy . ''; $str_privacy = sprintf( $str_privacy_label, $str_privacy_link ); $str_privacy_text = wpautop(stripslashes($set['forum_privacy_text'])); $str_privacy_text = apply_filters('wpforo_legal_forum_privacy_text', $str_privacy_text); $url = parse_url( get_bloginfo('url') ); $find = array('[forum-name]', '[forum-url]'); $domain = (wpfval($url, 'host')) ? $url['host'] : $_SERVER['HTTP_HOST']; $replace = array( WPF()->general_options['title'] , $domain); $str_privacy_text = str_replace($find, $replace, $str_privacy_text); ?> member->get_guest_cookies(); if( $only_new_guests && wpfval($guest, 'email') ) return false; $set = WPF()->tools_legal; if( wpfval($set, 'rules_checkbox') && wpfval($set, 'rules_text') ){ $forum_home = preg_replace('|\?.+$|', '', wpforo_home_url() ); $str_rules = wpforo_phrase( 'forum rules', false, 'native' ); $str_rules_text = wpforo_phrase('I have read and agree to abide by the %s.', false); $str_rules_link = ' ' . $str_rules . ''; $str_rules = sprintf( $str_rules_text, $str_rules_link ); $str_rules_text = apply_filters('wpforo_legal_forum_rules_text', $set['rules_text']); ?> member->get_guest_cookies(); if( $only_new_guests && wpfval($guest, 'email') ) return false; $set = WPF()->tools_legal; $str_and = ''; $str_terms = ''; $str_privacy = ''; $str_site_name = get_bloginfo( 'name' ); $str_site_name = ( $str_site_name ) ? $str_site_name : wpforo_phrase('the website', false); $str_terms_privacy = wpforo_phrase('I have read and agree to the', false); $str_if_no_pages = sprintf( wpforo_phrase('I have read and agree to %s privacy policy.', false), $str_site_name); if(wpfval($set, 'page_terms')){ $term_url = $set['page_terms']; $term_pageid = wpforo_wp_url_to_postid( $term_url ); $str_terms = wpforo_phrase('Terms', false); $term_title = ($term_pageid) ? get_the_title( $term_pageid ) : $str_terms; $str_terms = ' ' . $str_terms . ' '; } if(wpfval($set, 'page_privacy')){ $privacy_url = $set['page_privacy']; $privacy_pageid = wpforo_wp_url_to_postid( $privacy_url ); $str_privacy = wpforo_phrase('Privacy Policy', false); $privacy_title = ($privacy_pageid) ? get_the_title( $privacy_pageid ) : $str_privacy; $str_privacy = ' ' . $str_privacy . ' '; } if( $str_terms && $str_privacy ){ $str_and = wpforo_phrase('and', false, 'lower'); } if( $str_terms || $str_privacy || (wpfval($set, 'checkbox_forum_privacy') && wpfval($set, 'forum_privacy_text')) ){ $terms_privacy = $str_terms_privacy . ' ' . $str_terms . ' ' . $str_and . ' ' . $str_privacy; $terms_privacy = apply_filters('wpforo_legal_checkbox_label_terms_and_privacy', $terms_privacy); if( ( $str_terms || $str_privacy ) && $terms_privacy ){ ?> tools_legal; if( wpforo_feature('user-register-email-confirm') && wpfval($set, 'checkbox_email_password') ){ $str_email_password = wpforo_phrase('I agree to receive an email confirmation with a link to set a password.', false); $str_email_password = apply_filters('wpforo_legal_checkbox_confirm_email_password', $str_email_password); ?> tools_legal; if( wpfval($set, 'checkbox_forum_privacy') ){ $str_privacy_text = wpautop(stripslashes($set['forum_privacy_text'])); $str_privacy_text = apply_filters('wpforo_legal_forum_privacy_text', $str_privacy_text); $url = parse_url( get_bloginfo('url') ); $find = array('[forum-name]', '[forum-url]'); $domain = (wpfval($url, 'host')) ? $url['host'] : $_SERVER['HTTP_HOST']; $replace = array( WPF()->general_options['title'] , $domain); $str_privacy_text = str_replace($find, $replace, $str_privacy_text); $str_privacy_text = apply_filters('wpforo_legal_forum_privacy_output', $str_privacy_text); ?>
tools_legal; if( wpfval($set, 'rules_checkbox') ){ $str_rules_text = wpautop(stripslashes($set['rules_text'])); $str_rules_text = apply_filters('wpforo_legal_forum_rules_text', $str_rules_text); ?>
tools_legal; if( wpfval($set, 'contact_page_url') ){ $url = $set['contact_page_url']; $html = '' . wpforo_phrase('Contact the forum administrator', false) . ''; echo apply_filters('wpforo_legal_contact_forum_admin_button', $html); } } add_action( 'wpforo_profile_account_bottom', 'wpforo_contact_forum_admin', 10 );