Jump to content


SMF hide member email addresses by default


No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 03 January 2008 - 02:28 PM

SMF (Simple Machines Forum) exposes member email addresses by default. In order for a member to hide his email address he must opt out. This query will hide member email addresses by default. Users can choose to show email addresses by changing the setting in their Profile Control Panel.

As always, backup your database before making changes.

You may need to change the "smf_" table prefix to reflect the database prefix you are actually using.

This query is for SMF 1.1.4 but may work with previous versions. You will have to check that for yourself.

ALTER TABLE `smf_members` CHANGE `hideEmail` `hideEmail` TINYINT( 4 ) NOT NULL DEFAULT '1'



Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users