Trying to change the appearance of the Add Comment screen
tp
Joined: 2003-03-26
Posts: 104 |
Posted: Tue, 2013-08-13 20:08 | |||
I am on version 3.09 and followed Dave's suggestion here and successfully removed the requirements for email and url for adding comments: Then I thought 'I'd like to remove the fields altogether for those options', so I poked around and found 'comment/controllers/comments.php' and tried removing: $comment->guest_email = $form->add_comment->email->value; $comment->guest_url = $form->add_comment->url->value; I thought this worked because those fields were then gone from the add comment screen, but then later when I tried to access the site, I got the attached message and could not get into any page of the gallery, even admin/dashboard... I then went and added the lines back to 'comment/controllers/comments.php' and after 5 or 10 minutes, I could get back into the site. Any suggestions for how to safely remove those lines (email and url) from the add comment screen? Thanks,
|
||||
Posts: 27300
I would use CSS to hide the fields now that the validation is not done.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 104
thanks again Dave. Seems to have worked perfectly (of course)
Posts: 104
Hmm Now my whole site is down (last time it was just G3..) 500 Internal Server Error.. The only changes were to the comments/models/comment.php as advised and then adding the CSS change above... Strange. It was working at least for a little while after I made the CSS change because I tested it. (Linked images and emails are still up and I can ftp to the host so it seems to suggest if must be config related)
I guess I will put these changes back and see if the problem resolves.
Posts: 104
Sure enough.. Site is back up once I reverted these changes (it takes a while but I am assuming this is why it came back up).. Doesn't make sense that these two files could bring down wordpress, G2 and G3.. Any thoughts?
Posts: 27300
a css change will not do this. must be something else.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 104
Yeah. Really strange. I put the comment.php change back in a couple hours ago and it's still running. I will put the CSS change back in now before I hit the sack and see how it goes.. Thanks
Posts: 12
Looking to get rid of the URL part of the comment form. Can someone point me to how to accomplish this safely. I have looked at the comment/css/comment.css file; but cannot quite figure out what to change.
Thanks,
Tamer