1

Topic: Privacy option for blocking Google

I'd like to add a new checkbox in privacy settings for blocking search engines from indexing people's profiles. I've seen this on a lot of dating websites and I think it's pretty essential.

So I assume I need to add something into: includes/lib/lib.account_privacy.php

And when the checkbox is ticked, it adds this to the profile: <meta name="robots" content="noindex">

Can someone help?

2

Re: Privacy option for blocking Google

Easier way to do this is to use regular fields:
1. Create new combo field with label say 'seaccess' and name "Can Google index my profile?" and items Yes and No. Load in account profile: Yes. Load in public profile: Yes. Rest is No.

2. Modify your header.tpl part and put in appropriate place:
<!-- IF member_username AND profile_field_seaccess_value == "No" -->
<meta name="robots" content="noindex">
<!-- ENDIF -->

If you use few languages on your site use _value_id and numeric values to make condition lang independable.

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com/radioact - my profile at vldCrowd

3

Re: Privacy option for blocking Google

but be carfeul not to change the order in the backend, because it will mess up the function ;-)

4

Re: Privacy option for blocking Google

I think this is a sloppy fix, does anyone else have any suggestions? Privacy options should be contained in the privacy section not the general section