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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-26-2013, 02:00 PM   #1
nexcom28
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.
nexcom28 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2013, 02:37 PM   #2
lonerunner
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
lonerunner is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2013, 02:41 PM   #3
nexcom28
So Fucking Banned
 
Join Date: Jan 2005
Posts: 3,716
Quote:
Originally Posted by lonerunner View Post
Dashboard > Settings > Discussions

There you can uncheck Comment author must fill out name and e-mail and you have other options about comments too
This is ok and I didn't know this was possible but all it does is stop the fields being mandatory.
I want to remove them altogether (or hide them).
nexcom28 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2013, 03:17 PM   #4
lonerunner
Confirmed User
 
Industry Role:
Join Date: Nov 2010
Posts: 305
Quote:
Originally Posted by nexcom28 View Post
This is ok and I didn't know this was possible but all it does is stop the fields being mandatory.
I want to remove them altogether (or hide them).
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
lonerunner is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2013, 03:24 PM   #5
nexcom28
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?
nexcom28 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2013, 07:27 PM   #6
purecane
Annakin Skywalker
 
purecane's Avatar
 
Industry Role:
Join Date: Jan 2013
Location: megaminds' secret lair
Posts: 1,324
GitHub-Repo...plug in that disables all comments
__________________
[email protected]
purecane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2013, 01:01 AM   #7
Manfap
Confirmed User
 
Manfap's Avatar
 
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
Manfap is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2013, 01:41 AM   #8
nexcom28
So Fucking Banned
 
Join Date: Jan 2005
Posts: 3,716
This didn't do anything at all..

Quote:
Originally Posted by Manfap View Post
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
Sorry, I misunderstood what you wrote, this did actually work. Thanks

Quote:
Originally Posted by nexcom28 View Post
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?
nexcom28 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2013, 03:34 AM   #9
Manfap
Confirmed User
 
Manfap's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 2,622
Quote:
Originally Posted by nexcom28 View Post
This didn't do anything at all..



Sorry, I misunderstood what you wrote, this did actually work. Thanks
np you're welcome.
Manfap is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2013, 06:21 AM   #10
CIVMatt
Amateur Pimpin
 
CIVMatt's Avatar
 
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
CIVMatt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2013, 06:41 AM   #11
nexcom28
So Fucking Banned
 
Join Date: Jan 2005
Posts: 3,716
Quote:
Originally Posted by CIVMatt View Post
I wonder if there's a plugin to block .pl users from creating accounts.... assholes
Yeah, along with .cn and .ru
nexcom28 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2013, 07:27 AM   #12
Manfap
Confirmed User
 
Manfap's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 2,622
Quote:
Originally Posted by CIVMatt View Post
I wonder if there's a plugin to block .pl users from creating accounts.... assholes
Add to htaccess maybe? I´m not an Apache expert, but I think this should work.

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
full code here https://dl.dropboxusercontent.com/u/.../blocklist.txt
Manfap is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.