[wordpress插件] AJAX Login Widget++AJAX登录小工具++

wordpress 插件 文章 2020-02-13 22:40 524 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

Plugin Homepage

插件主页

Features

功能

    • Integrate login functionality into your site (rather than having it on a separate page).
    • 登录功能集成到您的网站中(而不是在单独的页面上)。

    • User can login, register, and retrieve a lost password without ever leaving the page they are on.
    • 用户可以登录,注册和找回丢失的密码,无需离开页面

    • AJAX-based.
    • 基于AJAX

    • XHTML 1.1 and CSS 3 compliant.
    • 符合XHTML 1.1和CSS 3

    Current Ideas for the Next Version

    下一版本的最新想法

      • Beautify for IE7
      • 美化IE7

      • Minify JS and put it in the footer
      • 缩小JS并将其放在页脚中

      • Better support for styling via CSS
      • 更好地支持通过CSS进行样式设计

      • Option to include a customizeable title above the widget
      • 在小部件上方包括可自定义标题的选项

      • Provide an additional non-table-based template
      • 提供其他基于表的模板

      • Internalization support
      • 内部化支持

      • Add login form to page/post with [insert-login] tag
      • 使用[insert-login]标签将登录表单添加到页面/帖子

      • Options
      • 选项

          • Show gravatar after user logs in
          • 用户登录后显示头像

            • Customize welcome message
            • 自定义欢迎消息

              • Titles for login form
              • 登录表单标题

                • Captcha support
                • 验证码支持

              Please continue to give me ideas for the next version

              请继续为我提供下一个版本的想法

              on my blog

              在我的博客上

              or on the forums here.

              在此处的论坛上

              This plugin provides an XHTML-compliant AJAX login form which can be easily

              此插件提供了符合XHTML的AJAX登录表单,该表单很容易

              inserted (one line of code) into your WordPress sidebar.

              (一行代码)插入了WordPress侧边栏。

              The form doubles as

              形式加倍为

              lost-password-recovery and registration forms too.

              丢失密码的恢复和注册表格。

              AJAX allows the page to be dynamically updated so that the user does not have to

              AJAX允许动态更新页面,从而使用户不必

              leave the page they were on when they decided to sign in or sign up.

              当他们决定登录或注册时,请离开他们所在的页面。

              This means

              这意味着

              users do not have to interrupt what they were looking at in order to login!

              用户无需中断即可查看登录内容!

              If

              如果

              an error occurs (like the entry of an incorrect password), then the user is

              发生错误(例如输入了错误的密码),则用户为

              alerted with a message box.

              收到消息框提示。

              The only full page refresh which occurs is when the

              唯一的整页刷新是在

              user logs in successfully, though it does not change which page the user is

              用户成功登录,尽管它不会更改用户所在的页面

              looking at (so as not to interrupt them).

              看着(以免打断他们)。

              One the user is logged in, the login form is replaced with a “You are logged in

              一个用户已登录,登录表单将替换为“您已登录

              as XYZ” message along with links to go to their profile or logout.

              作为XYZ”消息以及指向其个人资料或注销的链接。

              An

              An

              administrative user will be presented with the “Site Admin” link instead of a

              管理员用户将看到“网站管理员”链接,而不是

              profile link.

              个人资料链接。

              The plugin uses the normal WordPress 2.7 authentication process so it can easily

              该插件使用正常的WordPress 2.7身份验证过程,因此可以轻松实现

              be added to your WordPress site as a sidebar widget or by adding a single line

              可以作为侧边栏小部件或通过添加一行添加到您的WordPress网站中

              of PHP code to your theme.

              主题的PHP代码。

              This plugin extends the former AJAX

              此插件扩展了以前的 AJAX

              Login plugin written by Jonas

              Jonas编写的Login 插件

              Einarsson.

              艾纳森。

              This version fixes a number of bugs with a previous implementation

              此版本修复了以前实现中的许多错误

              (incompatibility with the latest WordPress versions) and contributes a cleaner

              (与最新的WordPress版本不兼容)并提供了更清洁的功能

              user interface with better and more reliable AJAX functionality (including

              具有更好,更可靠的AJAX功能的用户界面(包括

              animated loading icons).

              动画加载图标)。

安装步骤

    1. Unzip and then copy the ajax-login-widget folder to your wp-content/plugins/ folder.
    2. 解压缩然后将 ajax-login-widget 文件夹复制到您的 wp-content / plugins / 文件夹中。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    5. Add the widget to your page in one of two ways:
    6. 通过以下两种方式之一将小部件添加到您的页面:

    3a) If you are using the dynamic sidebar, you can add the AJAX Login Widget++ widget using the widgets administration menu.

    3a)如果使用动态侧栏,则可以使用小部件管理菜单添加AJAX登录小部件++小部件。

    3b) Add it to one of your theme’s template with the PHP call “add_ajax_login_widget()” – see below for an example.

    3b)通过PHP调用“ add_ajax_login_widget()”将其添加到您主题的模板中,请参见以下示例。

    Example: Adding AJAX Login Widget++ to your theme’s sidebar.php template page:

    示例:将AJAX登录小部件++添加到主题的 sidebar.php 模板页面:

      1. Open wp-content/themes/your-theme-name/sidebar.php

        打开wp-content / themes /您的主题名称/sidebar.php

      2. Look for “wp_register()” and “wp_loginout()”.

        寻找“ wp_register()”和“ wp_loginout()”。

        It probably looks like this:

        可能看起来像这样:

                

          <!-meta->    

                    

                    

        Meta

                    

                    

                              

                                

            <?php wp_register();

            ?>                    

            ?>                    

          • <?php wp_loginout();

            ?>

          •             

            ?>             

              

              

      3. Replace the section with those two function calls with a call to
         

        用这两个函数调用替换该部分,并调用
         

        add_ajax_login_widget, so it now looks like this:

        add_ajax_login_widget,所以现在看起来像这样:

                

          <!-meta->    

                 

                 

        <?php add_ajax_login_widget();

        ?>    

        ?>    

下载地址

https://downloads.wordpress.org/plugin/ajax-login-widget.1.0.1.zip

https://downloads.wordpress.org/plugin/ajax-login-widget.1.0.1.zip

-EOF-

AI助手支持GPT4.0