• 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.
hmmm perhaps next to the username on the membercard?
On the profile, I don't know.
d3fa62667daf4740a05733f.png

Apply the edits above then:
open template member_card
find:
Code:
<h3 class="username"><xen:username user="$user" class="NoOverlay" /></h3>
replace:
Code:
<h3 class="username"><xen:username user="$user" class="NoOverlay" /><img src="styles/default/zodiac/{$message.zodiac_sign}.gif" alt="{$message.zodiac_sign_label}" title="{$message.zodiac_sign_label}" /></h3>
If you want your padding, apply padding-left to the img element, something like: style="padding-left: 10px;"

Alternatively...
81351d71757548fa89f9408.png

Apply the edits above then:
open template member_card
find:
Code:
<h3 class="username"><xen:username user="$user" class="NoOverlay" /></h3>
replace:
Code:
<h3 class="username"><xen:username user="$user" class="NoOverlay" /><img src="styles/default/zodiac/{$message.zodiac_sign}.gif" alt="{$message.zodiac_sign_label}" title="{$message.zodiac_sign_label}" style="float:right" /></h3>
 
just under "Birthday" in the user-Profile at the left......
If you want it under the Birthday text then:
Open up member_view template.
Find:
Code:
<xen:if is="{$birthday}">
					<dt>{xen:phrase birthday}:</dt>
						<dd><span itemprop="dob">{xen:date $birthday.timeStamp, $birthday.format}</span> <xen:if is="{$birthday.age}">({xen:phrase age}: {xen:number $birthday.age})</xen:if></dd>
				</xen:if>
Replace:
Code:
<xen:if is="{$birthday}">
					<dt>{xen:phrase birthday}:</dt><img src="styles/default/zodiac/{$message.zodiac_sign}.gif" alt="{$message.zodiac_sign_label}" title="{$message.zodiac_sign_label}" />
						<dd><span itemprop="dob">{xen:date $birthday.timeStamp, $birthday.format}</span> <xen:if is="{$birthday.age}">({xen:phrase age}: {xen:number $birthday.age})</xen:if></dd>
				</xen:if>

If you want it under the actual birthday:
Find:
Code:
<xen:if is="{$birthday}">
					<dt>{xen:phrase birthday}:</dt>
						<dd><span itemprop="dob">{xen:date $birthday.timeStamp, $birthday.format}</span> <xen:if is="{$birthday.age}">({xen:phrase age}: {xen:number $birthday.age})</xen:if></dd>
				</xen:if>
Replace:
Code:
<xen:if is="{$birthday}">
					<dt>{xen:phrase birthday}:</dt>
						<dd><span itemprop="dob">{xen:date $birthday.timeStamp, $birthday.format}</span> <xen:if is="{$birthday.age}">({xen:phrase age}: {xen:number $birthday.age})</xen:if></dd>
<img src="styles/default/zodiac/{$message.zodiac_sign}.gif" alt="{$message.zodiac_sign_label}" title="{$message.zodiac_sign_label}" />
				</xen:if>
 
just not working for me... nothing is getting displayed... all with birthdays visible

UPDATE - appears to be working only in the messageUserBlock class when reading message threads. New members have the text 'zodiac_ ' and NOT the image. Please advise
 
Old bump - but I like this modification and it would be very nice on the newest project I'm working on. I've gotten the same error as masterchief above:



Is there a fix for this? I'm using xenforo 1.0.4

Thanks :)

J.
 
Old bump - but I like this modification and it would be very nice on the newest project I'm working on. I've gotten the same error as masterchief above:



Is there a fix for this? I'm using xenforo 1.0.4

Thanks :)

J.
I took a look after seeing the link in your signature--your URL for that image is incorrectly set as http://knowyourzodiac.com/styles/default/zodiac/.gif. I see the Virgo one in another post is working, so I think it must be just that one (from looking at the birthday of that account, it should be Gemini).
 
Thanks for posting Trombones13
I think this issue has something to do with the cron job perhaps. The cron job has to run, THEN the {$message.zodiac_sign} will be populated by the actual zodiac symbol/text. This is just a theory (I'm not much a coder - so the jargon may be bonkers lol) -- but I've created a new user/test thread -- cron is supposed to run 8PM EST and we shall see...

I did edit the alt text to alt=""

HTML:
<img src="@imagePath/zodiac/{$message.zodiac_sign}.gif" alt="" title="{$message.zodiac_sign_label}" />

This will make it so the image text is not visible - but when the cron runs - the image will be visible. Anyway - hope it works :)
 
Status
Not open for further replies.
Top Bottom