I would be great to have a option to activate the user titles only on user profiles

CommentFileSizeAuthor
#7 user_titles-694936-7.patch2.45 KBrooby
#2 user title.png4.41 KBBabalu

Comments

Babalu’s picture

Title: option to show only on nodes or user profile » option to show only on nodes or user profile or both
Babalu’s picture

StatusFileSize
new4.41 KB

or maybe per node-type
on two node-types i have deactivated the use of the submitted by ...
just the user title looks a little strange (e.g. in terms of use)

rooby’s picture

Because user titles are displayed from your theme you have complete control over where they are displayed and where they are not.

If you don't want titles to display on nodes don't print them in your node.tpl.php file.
Or if you want titles only to display in some nodes you can either use an if statement with node type or have a node-[type].tpl.php files for each type.

As for the user profile screen, There could be an option on the settings screen to disable the display on that screen.

Babalu’s picture

it would be much easier to have a option for that.
i'm not a not a programmer :)
can someone please make a patch to have a node type option for that ?

rooby’s picture

It would be possible to populate the template variable for specific node types based on a setting but you still have to print
the title in the theme.

Having to print things from modules in themes is not uncommon in drupal.
I have an idea about how to fully automate the process so there is no need for copy and paste of code into theme.
I'll try it out when I get a chance.

I think that would be good for users who don't need to put the title somewhere specific or don't want to look at code at all.
It would still be flexible for people to print anywhere if they want but they wouldn't have to.

I'll create an issue for that.

rooby’s picture

Title: option to show only on nodes or user profile or both » Option to disable display of title on user profile
Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Assigned: Unassigned » rooby

I'll look into doing this one too.

rooby’s picture

Status: Active » Needs review
StatusFileSize
new2.45 KB

Here is a patch that adds this functionality.

This applies over the the patch in #453190: Role based titles so you have to apply that one first.

agileware’s picture

Status: Needs review » Fixed

Committed and in 6.x-1.0-beta3

Status: Fixed » Closed (fixed)

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