I have been trying to figure out a few things within in the user profile module and having little success so I figured I would ask the community.

Has anyone figured out how to:

1.) Create custom meta description and keywords for the profile pages?

2.) Remove the History and Member from info at the bottom, here is an example page http://www.dailyshepherd.com/cliff-sanders

Much appreciated if anyone has any ideas on how to accomplish this!

Regards

Keto

Comments

removemeplease’s picture

Have you tried http://drupal.org/node/35728 yet?

--------------------------------------------------
Martin - Pedigree Music - Drupal Powered Music Blog

keto-1’s picture

Thanks Martin, I was able to customize the content using your suggested method.

Any idea on how to customize the meta data?

removemeplease’s picture

Put this somewhere between the < head > tags in your template:

// If its is a user profile page
if (arg(0) == "user" && is_numeric(arg(1))) {
	print '<meta name="keywords" content="profile" />';
	print '<meta name="description" content="profile" />';
}
// All other pages
else {
	print '<meta name="keywords" content="" />';
	print '<meta name="description" content="" />';
}

Replace content="profile" with whataver you want.
--------------------------------------------------
Martin - Pedigree Music - Drupal Powered Music Blog

keto-1’s picture

Martin, I am assuming you are saying that this code should go in the page.tpl.php file?

In the following code where does it pull the keywords and description from? Is it possible to make those fields on the profile creation page and then pull them in here using a variable?

if (arg(0) == "user" && is_numeric(arg(1))) {
    print '<meta name="keywords" content="profile" />';
    print '<meta name="description" content="profile" />'

Thank you again for all your help!

----------------------------------------------
DailyShepherd.com - Christian Living Articles