DJD Site Post
[resolved] I would like to change uout put text (2 posts)

  1. donsilvernail
    Posted 2 years ago #

    I would like to change the output of "Notice: Please login or register to use this function."

    I would like it to say please login or register with a button after that that links to my registration page.

    Here is the html for my button and link
    "http://storyshare.org/create-story/"><button class="btn btn-large btn-primary" type="button">Large button</button>

    I know where to add this in the plugin in php. If you could give me the proper php code format to input I would be ok to do myself.



  2. djarzyna
    Plugin Author

    Posted 2 years ago #

    You could try it this way:

    In djd-site-post.php around line 465 replace the line

    return $this->format_error_msg(__("Please login or register to use this function.", 'djd-site-post'),__("Notice", 'djd-site-post'));

    with something like this:

    $str = "<a href='http://localhost/wptest/wp-login.php'><button class='btn btn-large btn-primary'>Please Login or Register</button></a>";
    return $str;

    Obviously you have to replace http://localhost/wptest/wp-login.php with your own correct url/path to the login/registration form.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • DJD Site Post
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.