Project:User titles
Version:6.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed

Issue Summary

Here are some simple GIF star images that I created and use on my forum to differentiate between 'newbies' and senior members. If you don't have anything yet, these should get you started. They are transparent and look good on Garland but I think they will work for almost any theme.

The admin image has five red stars to make the moderator stand out. These images are nothing fancy but they resemble what I have seen on other messageboards.

These images are released under GPL. I have never actually released anything before so please help me if I have made any mistakes in this process.

AttachmentSize
StarImages.zip5.98 KB

Comments

#1

Version:6.x-1.0-beta2» 6.x-1.x-dev
Status:active» postponed

Thanks for the images.

At this stage, with the ability to add your own images, adding images to titles is the job of the user not the module.

Also, when issue #453190: Role based titles is done there will also be more flexibility in regards to admins having different images.

I will look at possibly having default images at some stage but seeing as users can upload their own images already I'm putting this one to the bottom of the pile. People can get these image from this issue and upload them if they want.

#2

on my theme the images are not displayed :( i'm using the acquia_marina theme

#3

Did you upload the images? As was explained above, they are not included by default in the module. You need to download the zip package and then upload each image using the module.

#4

i have used the module to upload the images

#5

Have you read the modules readme.txt file?

You have to enter code into your theme to make the titles print where you want them.
Have you done that?

#6

ups, where i have to enter the code in the acquia marina version 3 theme. there is just a comment.tpl.php. acquia marina uses the fusion theme also, there is the node.tpl.php

#7

Just like it says in the readme.txt:

put this code in the node.tpl wherever you want the title to print (it doesn't matter which theme you are using):

<?php if ($user_title): ?>
  <div class="user-title">
    <?php
     
print $user_title;
      print
$user_title_image ? $user_title_image : '';
   
?>

  </div>
<?php endif; ?>

Because acquia_marina doesn't have a node.tpl.php file it uses the one in the fusion theme.
You should copy the node.tpl.php from your fusion theme to your acquia_marina theme and then add the above code to that.

#8

oh it works, thx
but only on nodes
how can i do this for the user profile too
and how can i place the user title next to submitted by ... at ... (e.g. submitted by admin at 01/25/10 User title: "image" "title")

AttachmentSize
node.tpl_.zip 614 bytes