First question: Do you want users to login before they can post a comment?
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
I will add an option for this.
Thanks much, Mibuthu. I’ll be waiting for that!
It’s available in the today released version 0.7.0.
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, http://rami.ybarniv.com/?page_id=314
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
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
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?
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, http://rami.ybarniv.com/?page_id=314
Thanks much, Mike
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 }
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
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