esyoo 86 ارسال شده در اردیبهشت 91 گزارش بازنشر ارسال شده در اردیبهشت 91 سلامدوستان من از این افزونه Sidebar Login استفاده می کنم.می خوام عبارت login رو تبدیل به ورود بکنم.چه کاری باید انجام بدم؟ نقل قول لینک به ارسال
Morteza 34190 ارسال شده در اردیبهشت 91 گزارش بازنشر ارسال شده در اردیبهشت 91 خط 156 فایل sidebar-login.php رو ویرایش کنین. 1 نقل قول لینک به ارسال
esyoo 86 ارسال شده در اردیبهشت 91 مالک گزارش بازنشر ارسال شده در اردیبهشت 91 با سلام مجددکدوم یکی رو تغییر بدم؟این خطها از 155 تا 160 می باشد. <p class="submit"> <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Login »', 'sblogin'); ?>" /> <input type="hidden" name="redirect_to" class="redirect_to" value="<?php echo $redirect_to; ?>" /> <input type="hidden" name="sidebarlogin_posted" value="1" /> <input type="hidden" name="testcookie" value="1" /> </p> نقل قول لینک به ارسال
Morteza 34190 ارسال شده در اردیبهشت 91 گزارش بازنشر ارسال شده در اردیبهشت 91 <?php _e('Login »', 'sblogin'); ?>-><?php _e('ورود »', 'sblogin'); ?>البته افزونه فایل زبان هم داره و میتونید ترجمه ش کنید. 1 نقل قول لینک به ارسال
esyoo 86 ارسال شده در تیر 92 مالک گزارش بازنشر ارسال شده در تیر 92 با عرض سلام و خسته نباشید خدمت دوستان عزیز.من امروز این افزونه رو آپدیت کردم و تنظیماتم به هم خورد.متاسفانه این خط کد ها دیگه وجود نداره.چطور می تونم این مشکل رو دوباره بر طرف کنم؟با تشکر<?php/*Plugin Name: Sidebar LoginPlugin URI: http://wordpress.org/extend/plugins/sidebar-login/Description: Allows you to easily add an ajax-enhanced login widget to your WordPress blog sidebar.Version: 2.5.3Author: Mike JolleyAuthor URI: http://mikejolley.comRequires at least: 3.5Tested up to: 3.5Copyright: 2013 Mike Jolley.License: GNU General Public License v3.0License URI: http://www.gnu.org/licenses/gpl-3.0.html*//*** Sidebar_Login class.*/class Sidebar_Login {private $version = '2.5.3';/** * __construct function. * * @access public * @return void */public function __construct() { // Hook-in add_action( 'plugins_loaded', array( $this, 'i18n' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ) ); add_action( 'widgets_init', array( $this, 'register_widget' ) ); // Ajax events add_action( 'wp_ajax_sidebar_login_process', array( $this, 'ajax_handler' ) ); add_action( 'wp_ajax_nopriv_sidebar_login_process', array( $this, 'ajax_handler' ) );}/** * i18n function. * * @access public * @return void */public function i18n() { load_plugin_textdomain( 'sidebar_login', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );}/** * enqueue function. * * @access public * @return void */public function enqueue() { $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; $js_in_footer = apply_filters( 'sidebar_login_js_in_footer', false ); // Register BLOCK UI wp_register_script( 'jquery-blockui', plugins_url( 'assets/js/blockui.min.js', __FILE__ ), array( 'jquery' ), '2.57', $js_in_footer ); // Enqueue Sidebar Login JS wp_enqueue_script( 'sidebar-login', plugins_url( 'assets/js/sidebar-login' . $suffix . '.js', __FILE__ ), array( 'jquery', 'jquery-blockui' ), $this->version, $js_in_footer ); // Enqueue Styles if ( apply_filters( 'sidebar_login_include_css', true ) ) { wp_enqueue_style( 'sidebar-login', plugins_url( 'assets/css/sidebar-login.css', __FILE__ ), '', $this->version ); } // Pass variables $sidebar_login_params = array( 'ajax_url' => $this->ajax_url(), 'force_ssl_login' => force_ssl_login() ? 1 : 0, 'force_ssl_admin' => force_ssl_admin() ? 1 : 0, 'is_ssl' => is_ssl() ? 1 : 0, 'i18n_username_required' => __( 'Please enter your username', 'sidebar_login' ), 'i18n_password_required' => __( 'Please enter your password', 'sidebar_login' ), 'error_class' => apply_filters( 'sidebar_login_widget_error_class', 'sidebar_login_error' ) ); wp_localize_script( 'sidebar-login', 'sidebar_login_params', $sidebar_login_params );}/** * Include and register the widget class. * * @access public * @return void */public function register_widget() { include_once( 'includes/class-sidebar-login-widget.php' );}/** * ajax_url function. * * @access public * @return void */private function ajax_url() { if ( is_ssl() ) { return str_replace( 'http:', 'https:', admin_url( 'admin-ajax.php' ) ); } else { return str_replace( 'https:', 'http:', admin_url( 'admin-ajax.php' ) ); }}/** * ajax_handler function. * * @access public * @return void */public function ajax_handler() { // Get post data $creds = array(); $creds['user_login'] = stripslashes( trim( $_POST['user_login'] ) ); $creds['user_password'] = stripslashes( trim( $_POST['user_password'] ) ); $creds['remember'] = sanitize_text_field( $_POST['remember'] ); $redirect_to = esc_url_raw( $_POST['redirect_to'] ); $secure_cookie = null; // If the user wants ssl but the session is not ssl, force a secure cookie. if ( ! force_ssl_admin() ) { $user_name = sanitize_user( $_POST['user_login'] ); if ( $user = get_user_by('login', $user_name ) ) { if ( get_user_option( 'use_ssl', $user->ID ) ) { $secure_cookie = true; force_ssl_admin( true ); } } } if ( force_ssl_admin() ) $secure_cookie = true; if ( is_null( $secure_cookie ) && force_ssl_login() ) $secure_cookie = false; // Login $user = wp_signon( $creds, $secure_cookie ); // Redirect filter if ( $secure_cookie && strstr( $redirect_to, 'wp-admin' ) ) $redirect_to = str_replace( 'http:', 'https:', $redirect_to ); // Result $result = array(); if ( ! is_wp_error($user) ) { $result['success'] = 1; $result['redirect'] = $redirect_to; } else { $result['success'] = 0; if ( $user->errors ) { foreach ( $user->errors as $error ) { $result['error'] = $error[0]; break; } } else { $result['error'] = __( 'Please enter your username and password to login.', 'sidebar_login' ); } } echo '<!--SBL-->'; echo json_encode( $result ); echo '<!--SBL_END-->'; die();}}if ( ! function_exists( 'sidebarlogin' ) ) {function sidebarlogin( $args = '' ) { _deprecated_function( 'sidebarlogin', '2.5', 'the_widget' );}}new Sidebar_Login(); نقل قول لینک به ارسال
Parsa 23463 ارسال شده در تیر 92 گزارش بازنشر ارسال شده در تیر 92 خب ببنید به جای اون چه نوشته ای هستویرایش کنید 1 نقل قول لینک به ارسال
esyoo 86 ارسال شده در تیر 92 مالک گزارش بازنشر ارسال شده در تیر 92 با تشکر از شماببینید دیگه این خط کد وجود نداره<?php _e('Login »', 'sblogin'); ?>هرچی رو هم که دست کاری می کنم به هم می ریزه!! نقل قول لینک به ارسال
Parsa 23463 ارسال شده در تیر 92 گزارش بازنشر ارسال شده در تیر 92 در این فایل هست includes/class-sidebar-login-widget.php 2 نقل قول لینک به ارسال
BahramElf 3 ارسال شده در تیر 93 گزارش بازنشر ارسال شده در تیر 93 با سلام و خسته نباشیدمن هم قصد دارم مقداری کد های html و css این افزونه رو ادیت کنم. اما کد های html فرم رو پیدا نمیکنم تو فایل ها. ممنون میشم راهنماییم کنید. نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .