A WordPress-based access method and access system
By implementing URL request interception and unique identification code management on the WordPress site, the pain points of anonymous user access and information filling are solved, and the function of filling in information once and accessing the page again without registration is realized. It is suitable for any WordPress site and reduces the cost Maintenance costs and improved user experience.
Patent Information
- Application Number
- CN202111177606.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-09
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When existing WordPress-based sites handle anonymous user visits, they are unable to implement the function of filling in information once and accessing the page again without registration, and the collection of user information is restricted under certain policy environments, resulting in increased user experience and maintenance costs.
Provide an access method and system based on WordPress. By obtaining the user's URL access request, it determines whether it hits the form design model, intercepts the request and sets a unique identification code. If it does not exist, the form is generated and stored in the user management system. The user fills in the form. There is no need to submit again, the page content is directly presented, and the access data is recorded in the background.
It achieves an access experience where users do not need to register and repeatedly fill in form information. It is suitable for special environments and policy environments, reduces form maintenance costs, and improves user experience and the data analysis capabilities of the management system.
Smart Images

Figure CN113849749B
Abstract
Description
Technical Field
[0001] The present application relates to the field of network technology, and in particular to an access method and an access system based on WordPress. Background Art
[0002] A large number of websites on the current Internet are created based on WordPress, and each website collects user registration information by filling out forms. However, each form requires rewriting complex code, and it cannot meet a requirement, that is, some pages on the site must be viewed after filling out the information form without registering as a member of the website, and the next time the page is visited, the page can be opened directly without the user continuing to fill in relevant information. Example of usage scenario: For example, a company uses WordPress to build a list of products provided by the company. The list can be accessed anonymously, but the product details must first fill in some basic information (usually some questionnaires or purchase intentions, etc.) before they can be accessed. At the same time, if the user can query the product details after filling in the information, the next time (shut down / close the browser) to revisit the product details, there is no need to fill in the form information. Under this requirement, ordinary WordPress-based functions cannot meet this requirement for the time being. The current practice is that users must first register as website members before user category judgment can be performed. However, under this premise, many anonymous visitors do not want to register as members. At the same time, the collection and registration of users is not allowed under the policies of Internet regulatory agencies in some regions.
[0003] In view of this, overcoming the deficiencies of the prior art products is an urgent problem to be solved in the field of this technology. Summary of the invention
[0004] The main technical problem solved by this application is to provide an access method and access system based on WordPress. Users do not need to register with the target website, and users do not need to repeatedly fill in form information. It can meet special environments and policy environments, can perfectly solve the pain points existing in the existing technology, and can be used on any WordPress site. It has high practical value and greatly reduces the maintenance cost of the form.
[0005] In order to solve the above technical problems, a technical solution adopted by the present application is: to provide an access method based on WordPress, the access method comprising:
[0006] Get the user's URL access request;
[0007] Determine whether the URL access request hits the URL attribute of the form design model;
[0008] If a hit occurs, the URL access request is intercepted and a unique identification code is set for the corresponding browser;
[0009] Determining whether the unique identification code exists in the form design model;
[0010] If it does not exist, the unique identification code is sent to the user management system, and a form is generated according to the content corresponding to the URL access request, so that the user can fill in and submit the form content;
[0011] After submitting the form, when the user visits the page, the original content of the corresponding URL will be presented based on the user's unique identifier and the data that has been submitted without submitting the form again, and the access record will be sent to the user management system for reference.
[0012] Preferably, after determining whether the URL access request hits the URL attribute of the form design model, the method further includes:
[0013] If no hit is found, the subsequent processing logic of WordPress itself is returned to respond to the URL access request.
[0014] Preferably, after determining whether the unique identification code exists in the form design model, the method further includes:
[0015] If it exists, it returns to the subsequent processing logic of WordPress itself to respond to the URL access request.
[0016] Preferably, generating a form according to the content corresponding to the URL access request so that the user can fill in and submit the form content includes:
[0017] Based on the API short code logic of WordPress, the content corresponding to the URL access request is completely replaced with a preset form, rendered through a form generator, and finally returned to the site visitor for form content filling and submission.
[0018] To solve the above technical problems, another technical solution adopted in the present application is: to provide an access system based on WordPress, the access system comprising: a user management system and a WordPress site, the user management system comprising a form model module, the form model module being provided with a form design model; the WordPress site being provided with a WordPress plug-in, the WordPress plug-in being used to implement the access method as described above.
[0019] Preferably, the user management system further comprises: a user management module and a user authority module;
[0020] The user management module includes the following functions: registration, adding, deleting, modifying and checking users;
[0021] The user authority module: freeze / unfreeze, use the user's unique identifier to distinguish users, and use the user's password to verify the user's identity in a one-way encrypted manner.
[0022] Preferably, the user management system further comprises: a form management module and a single submission data management module;
[0023] The form management module: uses the user's unique identifier to distinguish the forms created and available to the user, and generates a permanent and unique authentication token for each form;
[0024] The form submission data management module: a form created by a user. When a user accessing the site submits the content of the form, the data submitted on the form is stored in the data area of this module for analyzing and tracking the user's access data.
[0025] Preferably, the WordPress site also includes: a form generator, which is used to obtain the data required to define the form model from the user management system, render the form according to the predefined form control specifications, and add the unique identification code of the current visiting browser as a hidden field parameter into the form data. When the visitor submits the form, all the data is submitted to the signature management system together.
[0026] Preferably, when rendering form controls, the layout uses a 12-column, infinite-row grid design.
[0027] Preferably, the form is a web form.
[0028] The beneficial effects of the present application are as follows: the present application provides an access method and an access system based on WordPress, the access method comprising obtaining a user's URL access request; determining whether the URL access request hits the URL attribute of a form design model; if so, intercepting the URL access request and setting a unique identification code for the corresponding browser; determining whether the unique identification code exists in the form design model; if not, adding the unique identification code to a user management system, and generating a form according to the content corresponding to the URL access request, so that the user can fill in and submit the form content.
[0029] The access method of this application does not require users to register with the target website, nor does it require users to repeatedly fill in form information. It can meet special environments and policy environments, can perfectly solve the pain points existing in the existing technology, and can be used on any WordPress site. It has high practical value and greatly reduces the maintenance cost of the form. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0031] Figure 1 This is an interactive schematic diagram of an access system based on WordPress provided in an embodiment of the present application;
[0032] Figure 2 It is a data structure of a form provided in an embodiment of the present application;
[0033] Figure 3 This is a flowchart of a WordPress-based access method provided in an embodiment of the present application;
[0034] Figure 4 It is a flowchart of another WordPress-based access method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0036] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first" and "second" are used only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0037] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0038] It should be noted that since the method of the embodiment of the present application is executed in an electronic device, the processing objects of each electronic device exist in the form of data or information. For example, time is actually time information. It can be understood that if size, quantity, position, etc. are mentioned in subsequent embodiments, they are all corresponding data for processing by the electronic device. The details will not be elaborated here.
[0039] Embodiment 1:
[0040] Usage scenario of this technical solution: This technical solution first creates a management system that serves each site. This management system uses the WordPress site owner as the terminal user of the system. Each user first registers as a user in the management system, and then configures the Web form according to the guidance of the management system. The management system then uses JsonWebToken technology to authenticate the user. Then the WordPress site owner installs the plug-in provided by this technical solution, uses the shortcode function provided by WordPress, and writes the shortcode in the WordPress Post according to the requirements of this technical solution. When the browser is used to access the WordPress POST normally, the mechanism provided by this technical solution will directly display the Web form pre-configured in the management system provided by this technical solution, and the WordPress site user does not need to worry about other matters. The specific implementation scheme is described below.
[0041] See also Figure 1 The access system is built using a web application. The site owner of a WordPress site registers and logs in to the system by themselves. The system is used to manage and support dynamic forms and allows the site owner of a WordPress site to query various form information registered by users in the system, count and analyze user behavior and preferences, and facilitate the site owner of a WordPress site to maintain customer relationships and other operations through this technical solution.
[0042] The access system includes: a user management system and a WordPress site, the user management system includes a form model module, and the form model module is provided with a form design model; the WordPress site is provided with a WordPress plug-in, and the WordPress plug-in is used to implement the access method described in Example 2.
[0043] Furthermore, the user management system further comprises: a user management module and a user authority module;
[0044] The user management module includes the following functions: registration, adding, deleting, modifying and checking users; the user authority module includes freeze / unfreeze, using the user's unique identifier to distinguish users, and using the user's password to encrypt the user's identity in a one-way encrypted manner.
[0045] Furthermore, the user management system further comprises: a form management module and a single submission data management module;
[0046] The form management module: uses the user's unique identifier to distinguish the forms created and available to the user, and generates a permanent and unique authentication token for each form;
[0047] The form submission data management module: a form created by a user. When a user accessing the site submits the content of the form, the data submitted on the form is stored in the data area of this module for analyzing and tracking the user's access data.
[0048] Furthermore, the WordPress site also includes: a form generator, which is used to obtain the data required to define the form model from the user management system. The data defines the layout, height and width, form name, and form type of the form. The form is rendered according to the predefined form control specifications, and the unique identification code of the current browser is added as a hidden field parameter into the form data. When the visitor submits the form, all the data is submitted to the signature management system. The form is a web form. When rendering the form control, the layout uses a 12-column, infinite-row grid design (such as Figure 2 As shown), use the matrix layout method to limit the outer layer of the form control to prevent it from occupying the space of other controls.
[0049] Specifically, the generation of the aforementioned form relies on a defined data structure. This technical solution designs a set of models to adapt to the description model of the general Web form control, and stores the properties of the Web form control as a data structure. Based on this, the aforementioned dynamic form generator is provided to render the appearance of the control according to the pre-customized specifications, set the layout of the form, and set the properties of the control. The model design is as follows: {
[0050] name:”, this value describes the name of the form, usually used to display in the aforementioned management system description:”, this value describes the description information of the form, usually used to display in the aforementioned management system items:[This value describes the collection of all controls in the form
[0051] {
[0052] type:"text", this value describes the type of the control
[0053] layout:{
[0054] column:4, the number of columns occupied in the layout
[0055] row:1, the number of rows occupied in the layout
[0056] width:100,
[0057] height:20
[0058] },
[0059] label:"", this value describes the label text of the form
[0060] name:”, this value describes the name of the form and is used when submitting the form
[0061] defaultValue:"", this value describes the default value of the control
[0062] properties:[Describes the properties of the component
[0063] {
[0064] name:"data-id",
[0065] value:"1"
[0066] }, ...
[0068] ],
[0069] func:eval(object) / / Custom method on this control
[0070] }, ... ]
[0073] }
[0074] The access system of this application does not require users to register with the target website, nor does it require users to repeatedly fill in form information. It can meet special environments and policy environments, can perfectly solve the pain points existing in the existing technology, and can be used on any WordPress site. It has high practical value and greatly reduces the maintenance cost of the form.
[0075] Embodiment 2:
[0076] Corresponding to Example 1, this embodiment provides an access method based on WordPress, see Figure 4 , the access method comprises the following steps:
[0077] Step 101: Obtain the URL access request of the user;
[0078] Step 102: Determine whether the URL access request hits the URL attribute of the form design model;
[0079] If no hit is found, the subsequent processing logic of WordPress itself is returned to respond to the URL access request.
[0080] If it hits, execute step 103.
[0081] Step 103: If a hit occurs, intercept the URL access request and set a unique identification code for the corresponding browser;
[0082] Step 104: Determine whether the unique identification code exists in the form design model;
[0083] If it exists, it returns to the subsequent processing logic of WordPress itself to respond to the URL access request.
[0084] If not, execute step 105;
[0085] Step 105: If it does not exist, the unique identification code is sent to the user management system, and a form is generated according to the content corresponding to the URL access request, so that the user can fill in and submit the form content.
[0086] After submitting the form, when the user visits the page, the original content of the URL will be presented based on the user's unique identifier and the data that has been submitted without submitting the form again. Then, each time the user visits the details page (the original content of the URL), the access record will be sent to the management system. Over time, the site administrator can see the focus and page information of each user in the management system, thereby facilitating the site administrator to conduct targeted customer relationship management for the user.
[0087] Specifically, based on the API short code logic of WordPress, the content corresponding to the URL access request is completely replaced with a preset form, and is rendered through a form generator, and finally returned to the site visitor for form content filling and submission.
[0088] That is, Figure 4 As shown, WordPress itself provides the API extension function of the program. This embodiment uses the publicly available API of WordPress for secondary development, and uses the action interface after each URL request provided by WordPress to perform "aspect programming". After the WordPress program processes the URL request, it temporarily interrupts and enters the operation logic of this embodiment. First, check whether the URL of the current request hits the corresponding URL attribute in the form design model. If it does not hit, it returns to the subsequent processing logic of WordPress itself and does not interfere with this URL request. If it hits, the URL request is intercepted, and a universal unique identification code is generated for each browser using the RFC4122 standard. This identification code is submitted to the aforementioned management system as the form content. The next time the same browser visits the same URL, it enters the aforementioned "aspect programming" logic, first determine whether the universal unique identification code exists. If it exists, it also exits the current logic and returns to the subsequent processing logic of WordPress itself. If it does not exist, use another publicly available API short code logic provided by WordPress to replace the original content of the current request URL with the designed form, and hand it over to the form generator for rendering processing, and finally return it to the site visitor to fill in and submit the form content.
[0089] The access method of this application does not require users to register with the target website, nor does it require users to repeatedly fill in form information. It can meet special environments and policy environments, can perfectly solve the pain points existing in the existing technology, and can be used on any WordPress site. It has high practical value and greatly reduces the maintenance cost of the form.
[0090] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A WordPress-based access method, characterized in that: The access method includes: Get the user's URL access request; Determine whether the URL access request hits the URL attribute of the form design model; If a hit occurs, the URL access request is intercepted and a unique identification code is set for the corresponding browser; Determine whether the unique identification code exists in the form design model; If it does not exist, the unique identification code is added to the user management system, and a form is generated according to the content corresponding to the URL access request, so that the user can fill in and submit the form content; specifically, based on the API short code logic of WordPress, the content corresponding to the URL access request is completely replaced with a preset form, and rendered through the form generator, and finally returned to the site visitor for filling in and submitting the form content; After submitting the form, when the user visits the page, the original content of the corresponding URL will be presented based on the user's unique identifier and the data that has been submitted without submitting the form again, and the access record will be sent to the user management system for reference.
2. The access method according to claim 1, characterized in that: After determining whether the URL access request hits the URL attribute of the form design model, the method further includes: If no hit is found, the subsequent processing logic of WordPress itself is returned to respond to the URL access request.
3. The access method according to claim 1, characterized in that: After determining whether the unique identification code exists in the form design model, the method further includes: If it exists, it returns to the subsequent processing logic of WordPress itself to respond to the URL access request.
4. A WordPress-based access system, characterized in that: The access system includes: a user management system and a WordPress site, the user management system includes a form model module, and the form model module is provided with a form design model; the WordPress site is provided with a WordPress plug-in, and the WordPress plug-in is used to implement the access method as described in any one of claims 1 to 3.
5. The access system according to claim 4, characterized in that: The user management system also includes: a user management module and a user authority module; The user management module includes the following functions: registration, adding, deleting, modifying and checking users; The user authority module: freeze / unfreeze, use the user's unique identifier to distinguish users, and use the user's password to verify the user's identity in a one-way encrypted manner.
6. The access system according to claim 4, characterized in that: The user management system also includes: a form management module and a single submission data management module; The form management module: uses the user's unique identifier to distinguish the forms created and available to the user, and generates a permanent and unique authentication token for each form; The form submission data management module: a form created by a user. When a user accessing the site submits the content of the form, the data submitted on the form is stored in the data area of this module for analyzing and tracking the user's access data.
7. The access system according to claim 4, characterized in that: The WordPress site also includes: a form generator, which is used to obtain the data required to define the form model from the user management system, render the form according to the predefined form control specifications, and add the unique identification code of the current visiting browser as a hidden field parameter into the form data. When the visitor submits the form, all the data is submitted to the signature management system.
8. The access system according to claim 6, characterized in that: When rendering form controls, the layout uses a 12-column, infinite-row grid design.
9. The access system according to claim 4, characterized in that: The form is a web form.
