Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable customization of the login title and "preamble" #145

Open
asirota opened this issue May 17, 2023 · 5 comments · Fixed by #173
Open

Enable customization of the login title and "preamble" #145

asirota opened this issue May 17, 2023 · 5 comments · Fixed by #173
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@asirota
Copy link
Member

asirota commented May 17, 2023

The standard WAP short code generates a page which has a title and a short description. Let's add options to WAP plugin options tab which allows the editing of

a. the login page name
b. the introductory text
c. the submit button name

Also under the submit button we should add 20px of margin to make some space under the button.

The title of the page is hard coded in line 504 of class-wa-integration.php

$login_title = 'Login with your WildApricot credentials';

The current values are hardcoded in class-wa-integration.php in function custom_login_form_shortcode()

line 1459 has this code

<p id="wawp_wa_login_direction">Log into your WildApricot account here to access content exclusive to WildApricot
        members!</p>

line 1477 has the code for submit button name

  <br><input type="submit" id="wawp_login_submit" name="wawp_login_submit" value="Submit">
@asirota asirota added this to the 1.0.2 milestone May 17, 2023
@asirota
Copy link
Member Author

asirota commented Aug 7, 2023

Line 1484 pf class-wa-integration.php has this line

<p>You are already logged in to your WildApricot account.</p>

@asirota
Copy link
Member Author

asirota commented Aug 7, 2023

Line 456 off class-wa-integration.php has these lines

Log::wap_log_warning('Please log out of your WildApricot account before accessing the Wordpress admin menu.');
echo 'Are you trying to access the WordPress administrator menu while still logged into your WildApricot account?';
echo 'If so, ensure that you are logged out of your WildApricot account by clicking <a href="' . esc_url($logout_link). '">Log Out</a>.';

@asirota
Copy link
Member Author

asirota commented Aug 7, 2023

line 680 of class-wa-integration.php has these lines

$restriction_message .= '<p style="color:red;">Please note that while you are logged into WordPress, you have not synced your account with WildApricot. ';
$restriction_message .= 'Please <a href="'. esc_url($login_url) .'">Log In</a> into your WildApricot account to sync your data to your WordPress site.</p>';

@asirota asirota added the enhancement New feature or request label Aug 8, 2023
@asirota
Copy link
Member Author

asirota commented Sep 13, 2023

related to issue #50

@asirota
Copy link
Member Author

asirota commented Sep 16, 2024

could make these edits under a Plugin Styles tab in the plugin admin screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants