phpbb user register, email veiwing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
BlueFlame
Forum Commoner
Posts: 33
Joined: Wed Oct 12, 2005 5:21 am

phpbb user register, email veiwing

Post by BlueFlame »

in phpbb, when a user registers theres a option where the user can say not to show his/hers email address, well im trying to get rid of that and allow all emails to be shown, i just have to find the line of code that sends that to the database. I think iv found it but im not to sure.

Code: Select all

$viewemail = ( isset($HTTP_POST_VARS['viewemail']) ) ? ( ($HTTP_POST_VARS['viewemail']) ? TRUE : 0 ) : 0;
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If that element name matches the radio button or whatever phpBB uses for it, then that should be it.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: phpbb user register, email veiwing

Post by Roja »

BlueFlame wrote:in phpbb, when a user registers theres a option where the user can say not to show his/hers email address, well im trying to get rid of that and allow all emails to be shown
Have you considered the implications for users, and the internet in general? Thats going to cause members to get a considerable amount of spam, and no option to avoid it.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Not to mention you can still access their emails from the database through simple query, even if they did decide to hide their email from public view.. no need to expose them to spambots.
BlueFlame
Forum Commoner
Posts: 33
Joined: Wed Oct 12, 2005 5:21 am

Post by BlueFlame »

As you should know phpbb dosnt directly display there email addresses so people wouldnt get spammed. I will still allow the user to switch the email veiwing off but i would like it to make it automacally switch on when they register.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

BlueFlame wrote:I will still allow the user to switch the email veiwing off but i would like it to make it automacally switch on when they register.
Thats different than what you described initially. Changing the default to show is totally different from "Removing the option to hide your email", which was your initial post.

That said, yes, phpbb does some protection around the email - but there is a reason it defaults to off. It still remains a spammers paradise.

I'm glad to hear you will at least leave members the option to hide it, despite your preference to the contrary.
BlueFlame
Forum Commoner
Posts: 33
Joined: Wed Oct 12, 2005 5:21 am

Post by BlueFlame »

can someone tell me how to make it default to yes?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

$viewemail = true;
:?:
BlueFlame
Forum Commoner
Posts: 33
Joined: Wed Oct 12, 2005 5:21 am

Post by BlueFlame »

thanks, worked perfectly.
Post Reply