Support » Plugin: ZM Ajax Login & Register » How to change dialog box labels & adding link in between posts.

  • Resolved Fahad

    (@chocfahad)


    How can i change the labels on the dialog boxes, from login to Sign-in or from register to subscribe.

    Would also like to invoke the dialog box from a link on post or page, like if I place a link that says SIGN-IN or REGISTER in between posts, when clicked that link opens the dialog box.
    I don’t want to have the entire login/Register form in between the post like the shortcode places.

    https://wordpress.org/plugins/zm-ajax-login-register/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Zane Matthew

    (@zanematthew)

    Currently the text in the dialogs are hard coded and translation ready.

    Are you familiar with filters? If so I can add a filter that would allow change the text from your functions.php in your theme.

    Hi Zane, Yes, Ill manage, if it has to be done.

    What about he second query?

    Would also like to invoke the dialog box from a link on post or page, like if I place a link that says SIGN-IN or REGISTER in between posts, when clicked that link opens the dialog box.
    I don’t want to have the entire login/Register form in between the post like the shortcode places.

    Plugin Author Zane Matthew

    (@zanematthew)

    Fahad,

    What you’ll need to do is to use the “Advanced” feature in the settings and set a “login handle” or “register handle”. Then create your link in the editor and provide the class name you entered as the “login handle” or “register handle”.

    For example;

    1. From the zM AJAX Login & Register “Advanced” settings add a “login handle” and “register handle”. This is the HTML class name or ID of the link we will be creating.

    2. From the editor create your link in your page or posts

    3. Since WordPress does not provide an interface to add a class name or id, you can click the “text” view of the editor and add your class or id.

    You should have: <a href="#" class="my-login-handle">Login</a>
    Where my-login-handle matches the class set in your settings.

    Hi Zane,
    Apologies for the delayed response, This method works just fine,
    However there is an error message displayed on every page of my site about some line 80 within the plugin.php file of your plugin.

    here it is:
    Strict Standards: Non-static method AjaxLogin::status() should not be called statically in /home/greatnew/public_html/reduce-weight.in/wp-content/plugins/zm-ajax-login-register/plugin.php on line 80

    how can i fix this message?

    Although everything seems to be working fine its just the error message that has to be taken care of.

    Please see:http://reduce-weight.in/

    Plugin Author Zane Matthew

    (@zanematthew)

    Hi,

    Thanks for reporting this, I’ve opened it as a ticket on GitHub and will have it fixed in the next release.

    In the mean time you can do two things to remove the PHP message:

    1. Lower your standards to e-notice compliant
    or (if you want to keep strict standards on)
    2. Change the line around line number 214 in controllers/abstract.php where is says:

    public function status
    to
    static public function status

    Hi Zane,
    As per your suggestions I made changes to to the mentioned file and tried to get the links back to work. but for unknown reasons the links no longer work, in fact they don’t work anywhere. for now Im disabling the plugin. once its updated pls let me know. Ill update and give it a try.

    Dustin Nordquist

    (@dustinnordquistgmailcom)

    Hi Zane. I get the same error as Fahad. I added “static” to the public function status, but it didn’t work. Debug doesn’t show any errors after the change, but the form still doesn’t display.

    Note:
    I am using the form with this landing pages plugin, http://wordpress.org/plugins/landing-pages/. Also, the form does display and work just fine on standard Pages and Posts. It is only on the landing pages that it will not display.

    Plugin Author Zane Matthew

    (@zanematthew)

    Hi Dustin,

    The issue shouldn’t be related to another plugin, its due to the plugin not supporting strict standards.

    We do have this in our issue tracker and will fix it in the next release.

    Dustin Nordquist

    (@dustinnordquistgmailcom)

    I see. Do you have a time estimate for the next release?

    Also, great work on your plugin. I definitely prefer it over any other login/register plugin.

    Plugin Author Zane Matthew

    (@zanematthew)

    Hi Dustin,

    Thanks for the support. As of now I plan on working on the next release next week. So possibly before the end of next week.

    Dustin Nordquist

    (@dustinnordquistgmailcom)

    Sounds good. Thanks.

    Plugin Author Zane Matthew

    (@zanematthew)

    Hi Dustin,

    I’ve recently fixed this in the issue here: https://github.com/zanematthew/zm-ajax-login-register/issues/56

    We’ve just wrapped up the launch of the zM store , along with our first premium plugin, a Pro version of the free AJAX Login & Register.

    I’m closing this reply as I expect to have this fix in the latest release.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to change dialog box labels & adding link in between posts.’ is closed to new replies.