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

    (@mibuthu)

    First question: Do you want users to login before they can post a comment?

    Thread Starter ybalias1

    (@ybalias1)

    Thanks a bunch, Mibuthu. I do want my site visitors to register and log in, but my question is about changing the text of the message itself.

    I just want to change the wording of “you must login”, plus the font, size, and color of that message.

    Is there a way you to access this sentence and change its contents?

    Thanks again, Mike

    Plugin Author mibuthu

    (@mibuthu)

    I will add an option for this.

    Thread Starter ybalias1

    (@ybalias1)

    Thanks much, Mibuthu. I’ll be waiting for that!

    Plugin Author mibuthu

    (@mibuthu)

    It’s available in the today released version 0.7.0.

    Thread Starter ybalias1

    (@ybalias1)

    Thank you, Mibuthu, for your latest update, 0.7.0.

    I do see the additional controls related to my original question, but they don’t seem to work for me.

    I tried to insert your sample code into the box “Comment form styles:”

    .form-submit { text-align:center; }
     #submit { font-weight:bold; }

    but it has no effect on the “must login” message.

    That message is still determined in code line 2226 of wp-includes/comment-template.php.

    I changed the string to:
    sprintf( __( 'Please <a href="%s">LOG IN</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) )
    and that works—although I know that’s NOT the correct way to do it.

    Here is the page that contains the Guestbook, https://rami.ybarniv.com/?page_id=314

    Thread Starter ybalias1

    (@ybalias1)

    Mibuthu, Hello once again:

    I wish I knew how to edit my previous message because I need to correct it.

    Changing the text of the “must login” message DOES WORK!!!

    But changing the

      Style

    of that single line doesn’t.

    The Field in

    Comment Guestbook Settings

    called

    Comment form styles:

    DOES affect the whole page of messages, but I only want to change the style of this single sentence “must login” while NOT touching the rest of the page.

    Thanks again, Mike

    Plugin Author mibuthu

    (@mibuthu)

    What if you add an additional <p> or <div> tag in your text where you can specify your own class for selecting only this message?

    Thread Starter ybalias1

    (@ybalias1)

    Mibuthu, thank you for your tip but my programming ability is too limited to actually write what’s necessary.

    Maybe you can tell me how to exactly write this code in your “Comment Guestbook Settings” > Comment-Form Settings >

    Must login message: Please <a href="%s">register and log in</a> to post a comment.

    This sentence appears in my website, https://rami.ybarniv.com/?page_id=314

    Thanks much, Mike

    Plugin Author mibuthu

    (@mibuthu)

    If you set the “Must login message” to:
    <div class="mustlogin">Please <a href="%s">register and log in</a> to post a comment.</div>

    Then you can define a “Comment form style” like this:
    div.mustlogin { color: red }

    Thread Starter ybalias1

    (@ybalias1)

    Thank you Mibuthu,

    I know how to edit the message per your first sentence, <div..../div>
    but I don’t know how to define a “Comment form style”.

    Specifically, where do I write div.mustlogin { color: red } ?

    Thanks again, Mike

    Thread Starter ybalias1

    (@ybalias1)

    Mibuthu, it’s me again, and this time with GOOD NEWS.

    I now figured out that you meant to add div.mustlogin { color: red } to YOUR OWN “Comment form styles” > “Comment Guestbook Settings”. In other words, it’s inside my Dashboard and ready to be edited right there.

    FROM MY POINT OF VIEW, THIS PROBLEM IS REALLY SOLVED—AT LAST!!!!!

    Thank you so much, Mibuthu, for sticking this out with me until this Happy Ending. I am now ready to praise your Plugin as being an EXCELLENT contribution to the WP community.

    Yours, Mike

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Plugin to change :"must loggin"’ is closed to new replies.