Add the option to disable the meta tags editing for users

malc_b - April 26, 2009 - 16:40
Project:Nodewords
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Issue tags:6.x-1.0
Description

When edit meta tags is enabled the user also sees edit meta tags on the account pages where they edit their username, password etc.. With normal content then admin can turn off editing of meta tags in the content type but there seems no way to turn it off for user account pages. Meta tags on these pages does not make a lot of sense anyway since only the user sees those pages not searches engines. I think meta tags should be restricted just to nodes (and views).

#1

briansea - May 28, 2009 - 20:42

While this isn't the most elegant way, creating a module with this in it will fix your problem:

function MODULENAME_form_user_profile_form_alter(&$form, &$form_state)
{
unset($form['nodewords']);
}

Hope this helps.

#2

kiamlaluno - May 28, 2009 - 22:17
Title:Meta tage edit on user edit form» Add the option to disable the meta tags editing for users
Category:bug report» feature request

Search engines can see also the user profiles pages, if the anonymous user has the access user profiles permission.

This is more a feature request. I will value it.

#3

kiamlaluno - May 29, 2009 - 02:00
Status:active» fixed

The code has been changed for version 6.x-1.x-dev, and committed in CVS.

#4

kiamlaluno - May 29, 2009 - 02:14

The meta tags fieldset is still visible in the user profile pages to the users with administer users permission; those users can still set the user meta tags, but their value will not be used when the user meta tags are not enabled.

#5

System Message - June 12, 2009 - 02:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#6

vmenelas - August 11, 2009 - 04:58

This is not working for me.
I added the above code in my css, any ideas?

#7

kiamlaluno - August 11, 2009 - 12:14

There is nothing reported here that should be added to a CSS file; what you see is PHP code.

#8

vmenelas - August 14, 2009 - 04:29

Oh I see, where do I add this php code?

#9

kiamlaluno - August 14, 2009 - 09:32
Version:6.x-1.0» 6.x-1.x-dev

As the code has been already added in the development snapshot, there is no code to add (click on "View all the releases" to see the link to version 6.x-1.x-dev).

#10

kiamlaluno - August 14, 2009 - 09:34

I am adding a tag to track the differences between version 6.x-1.0 and version 6.x-1.1-beta1.

 
 

Drupal is a registered trademark of Dries Buytaert.