Add-on Seeking Team Logo Add-on

Zachary Ball

Active member
I have been playing around with both the ribbon add-ons and they only use usergroups and not custom fields for displaying ribbons or banners.

I am trying to accomplish where users can register a team logo and it would display in postbit.

This is as far as I have gotten:

5601844234551296.webp

At the bottom of post bit, that is the custom field, but i would like to display something like this in a banner such as these. Just need some direction, maybe a combination of add ons or some simple html/css fixes.

Thanks!
 
so you are wanting to display an image within the banner?...may look a lil odd though...
you will have to do a template edit on message_user_info template
find:
Code:
<h3 class="userText">
            <xen:username user="$user" itemprop="name" rich="true" />
            <xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user, 1, 1}</xen:contentcheck></em></xen:if>
add after:
Code:
<!-- team logo -->
<em class="class="userBanner wrapped">
    <span class="before"></span>
<xen:if is="{$user.customFields.team_logo}">
<img src="{$user.customFields.team_logo}"  class="Tooltip tlogo" title="{$user.customFields.team_logo_descrip}">
   <span class="after"></span>
</xen:if>
<!-- end team ranger -->

I used "team logo" as the possible name for the custom user field input (couldn't quite make out the title at bottom of postbit) and if desired you could add a 2nd custom user field for the "team logo description"entered by user so when hovering will give a brief description that was entered by user. If not desired then delete title="{$user.customFields.team_logo_descrip}" field

then add to EXTRA.css
.tlogo {
margin: Xpx;
padding: Xpx;
box-shadow: 1px 1px 3px;
}

simply change X to adjust position to desired location if needed.
 
No i don't need an image, i just need a custom field text to show inside of banners. So they sign up as "Team Polaris", then it will be diplayed within a banner or image.

I am currently using the ribbon image add-on but it only lets you use usergroups.
 
Back
Top Bottom