Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Sep 24th, 2017, 05:31am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Hide email addresses from guests  (Read 3304 times)
overlord
Member


member is offline

Avatar




PM


Posts: 0
xx Hide email addresses from guests
« Thread started on: Jan 3rd, 2004, 5:22pm »

When guests view profiles, you may have noticed that members that do not have their emails hidden have their email address viewable by everyone, including guests. This can be a security issue. Here is a code that prevents guests from seeing emails in profiles.

Code:
<script language="javascript">
/*
Hide members email addresses from members
Written by jaws
Use freely, but do not post in other locations please
*/
if(location.href.indexOf("action=viewprofile&username")!==-1){
var td = document.getElementsByTagName("TD")
if(!td[5].innerHTML.match("action=profile")){
for(x=0;x<td.length;x++){
if(td[x].innerHTML=="<FONT size=2><B>Email: </B></FONT>"){
td[x+1].innerHTML="<i>hidden</i>"
}}}}
</script>
 


Main footers.

~jaws
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls