| 1 |
When installing this module, it won't appear to do anything at first. This is
|
| 2 |
because you need to modify your theme in order to place the output where
|
| 3 |
you like.
|
| 4 |
|
| 5 |
The function you need to call to get the data is
|
| 6 |
user_titles_get_user_title(). This module will automatically populate the
|
| 7 |
$user_title and $user_title_image variables into your nodes and comments.
|
| 8 |
|
| 9 |
In your node.tpl.php and/or your comment.tpl.php, choose where you would like
|
| 10 |
the user title to appear, and place this code:
|
| 11 |
|
| 12 |
<?php if ($user_title): ?>
|
| 13 |
<div class="user-title">
|
| 14 |
<?php
|
| 15 |
print $user_title;
|
| 16 |
print $user_title_image ? $user_title_image : '';
|
| 17 |
?>
|
| 18 |
</div>
|
| 19 |
<?php endif; ?>
|