WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
How to edit this page is restricted message (5 posts)

  1. bojan85
    Member
    Posted 1 year ago #

    Does anyone know how to edit this page is restricted message that shows when no a non member user tries to submit a post. I have tried to edit the text from the back end but the whole site gets a error when I do. Any tips?

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. stickFinger
    Member
    Posted 1 year ago #

    Hi

    Did you try editing your language file?

    I hope that helps.

  3. bojan85
    Member
    Posted 1 year ago #

    figured it out by editing the text wpuf-add-post.php but for some reason i cannot add a link whole site stop workin when i do that. any ideas why?

  4. stickFinger
    Member
    Posted 1 year ago #

    Hi

    else {
                printf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( get_permalink(), false ) );
            }

    Be aware that you´ll lose the translation on future updates, ok?

    If you prefer just open your language po file and around line 47 you should find:

    msgid "This page is restricted. Please %s to view this page."
    msgstr "Página restrita. Por favor faça o %s para poder acessá-la.."

    Translate the msgstr to whatever you want.

    Regarding the briking link take a look if you don´t forget any " and the %s sign, close to "Please %s"

  5. bojan85
    Member
    Posted 1 year ago #

    Hi StickFinger thanks for your help. I was able to edit the text using the first example but everytime i try to add a link in the text (to my registration page) the site got a syntax T error. Any idea how add a link in to that template file?

    When trying to change the language po file the changed text wouldnt show for some reason.

    Once again thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.