![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
So Fucking Banned
Join Date: Jan 2005
Posts: 3,716
|
Simple Wordpress How to Question
How can I remove the email field from the comments or email & url?
I tried deleting the code directly from comments.php but when a user tries to comment it brings up an error. I think I just need to hide it but how, I have tried a few ways by adding code to my functions.php but they always result in a header error. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Nov 2010
Posts: 305
|
Dashboard > Settings > Discussions
There you can uncheck Comment author must fill out name and e-mail and you have other options about comments too
__________________
Premium wordpress themes VividThemes |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
So Fucking Banned
Join Date: Jan 2005
Posts: 3,716
|
Quote:
I want to remove them altogether (or hide them). |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Nov 2010
Posts: 305
|
Than once they are not mandatory find them in comments function, usually in comments.php and remove them, or use css to hide them.
__________________
Premium wordpress themes VividThemes |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
So Fucking Banned
Join Date: Jan 2005
Posts: 3,716
|
If you read my post, I tried deleting the code but when a user tries to post a comment it generates an error.
I have tried a few options for hiding it, usually within the functions.php file. How do I hide it with CSS? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Annakin Skywalker
Industry Role:
Join Date: Jan 2013
Location: megaminds' secret lair
Posts: 1,324
|
GitHub-Repo...plug in that disables all comments
__________________
[email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 2,622
|
add this to your functions file
Code:
add_filter('comment_form_default_fields', 'email_filtered'); function email_filtered($fields) { if(isset($fields['url'],$fields['email'])) unset($fields['url'],$fields['email']); return $fields; } disable ?require email? in WP preferences aswell |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
So Fucking Banned
Join Date: Jan 2005
Posts: 3,716
|
This didn't do anything at all..
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 2,622
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Amateur Pimpin
Industry Role:
Join Date: Aug 2004
Location: Orlando, FL
Posts: 13,075
|
I wonder if there's a plugin to block .pl users from creating accounts.... assholes
__________________
Make easy money with Webcams |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
So Fucking Banned
Join Date: Jan 2005
Posts: 3,716
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 2,622
|
Quote:
limit the POST function to specific countries. The POST request method is used when the client needs to send data to the server as part of the request, such as when uploading a file or submitting a completed form so keep in mind this will affect all POST methods on your site. Code:
#BLOCK_POLAND <Limit POST> order allow,deny deny from 46.17.112.0/21 deny from 46.18.104.0/21 deny from 46.20.48.0/20 and so on.... allow from all </Limit> #COUNTRY_BLOCK_END |
|
![]() |
![]() ![]() ![]() ![]() ![]() |