• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Add Zodiac Sign to the message userinfo bit

Status
Not open for further replies.

erich37

Well-known member
#6
I designed all the zodiac icons years ago, I'll need to hunt for them and submit them into the resource area. Nice work Rigel.
Hey Shelley,

do you have XF-styled Zodic-signs available ?

I am also wondering whether this Add-on works with XF Beta5 and RC1 ?

Many thanks,
 

SchmitzIT

Well-known member
#10
is this plugin working for XF Beta5 and RC1 ?

Thanks!
Yes, it is.

I made some minor changes to the original code. I centered the image, and added a check to ensure it doesn't show up if a user did not specify a date of birth (in my case, I did an import, and for some reason ended up with users displaying the word "zodiac_" instead of an image).

Code:
        <div class="usericons">
            <xen:if is="{$message.zodiac_sign}"><center><img src="styles/default/zodiac/{$message.zodiac_sign}.gif" alt="{$message.zodiac_sign_label}" title="{$message.zodiac_sign_label}" /></center></xen:if>
        </div>
Thanks for the Add-On :)
 

erich37

Well-known member
#12
Yes, it is.

I made some minor changes to the original code. I centered the image, and added a check to ensure it doesn't show up if a user did not specify a date of birth (in my case, I did an import, and for some reason ended up with users displaying the word "zodiac_" instead of an image).

Code:
        <div class="usericons">
            <xen:if is="{$message.zodiac_sign}"><center><img src="styles/default/zodiac/{$message.zodiac_sign}.gif" alt="{$message.zodiac_sign_label}" title="{$message.zodiac_sign_label}" /></center></xen:if>
        </div>
Thanks for the Add-On :)
Do I need to use this code or the .zip-File from the initial post ?

Many thanks for help!
 

Peggy

Well-known member
#18
Rigel I'm assuming, from the screenshot, that this puts the zodiac sign on the postbit?

It would be great if you could work it so it goes on either the member card or the profile.
Or perhaps have an option to choose between the three?
 

James

Well-known member
#19
Instead of the style path being styles/default/zodiac/{$message.zodiac_sign}.gif, shouldn't it be @imagePath/zodiac/{$message.zodiac_sign}.gif?

Rigel I'm assuming, from the screenshot, that this puts the zodiac sign on the postbit?

It would be great if you could work it so it goes on either the member card or the profile.
Or perhaps have an option to choose between the three?
Have you tried taking the code in the OP and applying it to the locations you wish, just as a quick fix?
Code:
<div class="usericons">
<img src="styles/default/zodiac/{$message.zodiac_sign}.gif" alt="{$message.zodiac_sign_label}" title="{$message.zodiac_sign_label}" />
</div>
 

Peggy

Well-known member
#20

Have you tried taking the code in the OP and applying it to the locations you wish, just as a quick fix?
Code:
<div class="usericons">
<img src="styles/default/zodiac/{$message.zodiac_sign}.gif" alt="{$message.zodiac_sign_label}" title="{$message.zodiac_sign_label}" />
</div>
nooooo I haven't. I wouldn't even begin to know where to place the code.
 
Status
Not open for further replies.