bnovak Posted June 11, 2010 Share Posted June 11, 2010 Pretty much the subject says it all. I'd like something that will either black out, XXX out, hide entirely or whatever else you can think of to cover up when a user puts an email address and/or phone number in a forum post. I can setup the function to call a JS based on the user being logged in or not, I just need the script to actually do it. Any ideas? (i've seen it done on a couple sites but have no idea how it works.) Quote Link to comment Share on other sites More sharing options...
trq Posted June 11, 2010 Share Posted June 11, 2010 Would be pretty useless doing this in Javascript as its client-side and could be easily worked around. Quote Link to comment Share on other sites More sharing options...
bnovak Posted June 11, 2010 Author Share Posted June 11, 2010 Would be pretty useless doing this in Javascript as its client-side and could be easily worked around. I agree - but my end users are not exactly a "web savvy" bunch of code junkies so I'm not overly concerned about it. You understand what i'm trying to do though - got any other opinions for an option? The pages are PHP, so If there is some PHP code I could put in that would work also.... Quote Link to comment Share on other sites More sharing options...
trq Posted June 11, 2010 Share Posted June 11, 2010 Well, using php you could create a regex that searches for string that look like emails or phone numbers and then obfuscate them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.