콘텐츠로 바로가기
WordPress.org

한국어

  • 테마
  • 플러그인
  • 소식
    • 문서
    • 포럼
  • About
    • WordPress 6.9
    • 워드프레스 6.8
    • 워드프레스와 40% 웹을 위한 여정
    • 워드프레스 번역 핸드북
  • 워드프레스 한국팀
  • 워드프레스 받기
워드프레스 받기
WordPress.org

Plugin Directory

Mm Ajax Login

  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인
  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인

이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Mm Ajax Login

작성자: Braad
다운로드
  • 세부사항
  • 평가
  • 설치
  • 개발
지원

설명

This plugin allows you to create special links that check whether a user is logged in and then follow the link if they are or show an ajax-powered login form in a simple lightbox if they are not. Once the user fills out the login form with valid credentials they will be logged in and redirected to the page the link points to.

Scenario

Let’s say you’ve got a page on your site that only logged in users are able to access. It could be a private page or ideally it is a page that is set up to show a standard login form to users who are not logged in. With this plugin you could add the class ‘ajax-login-trigger’ to all the links that point to that page, then when a user clicks one of these links an ajax request is sent to the server to check whether the user is already logged in, and if they are the user is redirected to the page without ever noticing that the login check was done, or if they aren’t logged in they’ll see a login form appear in a simple lightbox. When the user fills out the form, a second ajax request is sent to the server to attempt to log them in, and if successful the user is redirected to the page.

Customize It!

This plugin includes lots of hooks and filters that allow for all sorts of customizations and unique use cases. Here’s a quick list:

작업:

mm_ajax_login_before_form_outside
mm_ajax_login_before_form_inside
mm_ajax_login_extra_buttons
mm_ajax_login_after_form_inside
mm_ajax_login_after_form_outside

Filters:

mm_ajax_login_trigger_selector
mm_ajax_login_form_title
mm_ajax_login_status_message
mm_ajax_login_username_label
mm_ajax_login_password_label
mm_ajax_login_rememberme_text
mm_ajax_login_lost_password_text
mm_ajax_login_button_text
mm_ajax_login_custom_login_action
mm_ajax_login_email_login_fail_message
mm_ajax_login_success_message
mm_ajax_login_fail_message
mm_ajax_login_allow_email_login

Many things are possible with these hooks. The hooks mm_ajax_login_before_form_inside and mm_ajax_login_after_form_inside allow you to add any custom input elements to the form. When the login form is submitted all of the values from the input elements included in the form will get passed to the PHP function that processes the ajax request, which will then pass the data to the mm_ajax_login_custom_login_action filter. You can intercept the incoming data using this filter and proceed with any custom action you want, like registering new users and logging them in during the same action.

Filter Examples

Use a custom selector for the trigger link:

add_filter( 'mm_ajax_login_trigger_selector', 'prefix_custom_login_trigger' );
function prefix_custom_login_trigger( $selector ) {

    // Custom selector goes here.
    $selector = '.my-custom-selector';

    return $selector;
}

Use a custom status message:

add_filter( 'mm_ajax_login_status_message', 'prefix_custom_status_message' );
function prefix_custom_status_message( $status_message ) {

    // Custom status message goes here.
    $status_message = 'Magic happening...';

    return $status_message;
}

This plugin is on Github and pull requests are always welcome.

스크린샷

  • The login form in twentyfifteen
  • The login form in twentyfourteen
  • The login form in twentytwelve

설치

Manual Installation

  1. Upload the entire /mm-ajax-login directory to the /wp-content/plugins/ directory.
  2. Activate Mm Ajax Login through the ‘Plugins’ menu in WordPress.

Better Installation

  1. Go to Plugins > Add New in your WordPress admin and search for Mm Ajax Login.
  2. Click Install.

FAQ

Can I use any selector I want?

Yes! The included filter mm_ajax_login_trigger_selector allows you to specify any custom selector you want as a string. The default value is .ajax-login-trigger.

Can the form be styled?

Yes! The default CSS is designed to be minimal and work with the existing styles included in your theme, but you can write additional CSS to take full control over the lightbox and form.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Mm Ajax Login”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자
  • Braad
  • MIGHTYminnow

“Mm Ajax Login”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Mm Ajax Login”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

1.0.0

  • First release

기초

  • 버전 1.0.0
  • 최근 업데이트: 10년 전
  • 활성화된 설치 10+
  • 워드프레스 버전 3.8 또는 그 이상
  • 다음까지 시험됨: 4.4.34
  • 언어

    English (US) 및 Swedish.

    자국어로 번역하기

  • 태그:
    ajaxformlightboxlogin
  • 고급 보기

평점

아직 제출된 리뷰가 없습니다.

Your review

모든 리뷰 보기

기여자

  • Braad
  • MIGHTYminnow

지원

할 말 있으신가요? 도움이 필요하신가요?

지원 포럼 보기

기부

이 플러그인이 발전하도록 도우시겠습니까?

이 플러그인에 기부하기

  • 소개
  • 뉴스
  • 호스팅
  • 개인정보
  • 쇼케이스
  • 테마
  • 플러그인
  • 패턴
  • 배우기
  • 지원
  • 개발자 도구
  • WordPress.tv ↗
  • 참여하기
  • 이벤트
  • 기부하기 ↗
  • 미래를 위한 5가지
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

한국어

  • X(이전 트위터) 계정 방문하기
  • 블루스카이 계정 방문하기
  • 마스토돈 계정 방문하기
  • 스레드 계정 방문하기
  • 페이스북 페이지 방문하기
  • 인스타그램 계정 방문하기
  • LinkedIn 계정 방문하기
  • 틱톡 계정 방문하기
  • 유튜브 채널 방문하기
  • 텀블러 계정 방문하기
코드는 詩다
The WordPress® trademark is the intellectual property of the WordPress Foundation.