Birthday Cake

Position birthday - Birthday Cake

Position birthday

by bennybernaer » Mon Jan 23, 2017 12:22 pm

Is it possible to place the birthday cake next to the user name?

Image
User avatar
bennybernaer
Registered User
Posts: 725
Joined: Tue Mar 22, 2011 9:53 pm

Re: Position birthday

by RMcGirr83 » Mon Jan 23, 2017 6:42 pm

Rename the template event file within the extension from viewtopic_body_postrow_custom_fields_after to viewtopic_body_post_author_after and change this in that file

Code: Select all

<dd class="profile-birthdaycake">{postrow.USER_BIRTHDAYCAKE}</dd>
to

Code: Select all

&nbsp;{postrow.USER_BIRTHDAYCAKE}
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22092
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Position birthday

by bennybernaer » Mon Jan 23, 2017 7:07 pm

Following these changes, I have a white page

Code: Select all

<!-- IF postrow.USER_BIRTHDAYCAKE -->
	&nbsp;{postrow.USER_BIRTHDAYCAKE}
<!-- ENDIF -->
User avatar
bennybernaer
Registered User
Posts: 725
Joined: Tue Mar 22, 2011 9:53 pm

Re: Position birthday

by RMcGirr83 » Mon Jan 23, 2017 8:01 pm

Purge the cache.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22092
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Position birthday

by Laarela » Fri Mar 03, 2017 5:53 pm

Hello! :)

I would like to have the birthday cake appear at the very end of the mini profile (beneath "Contact") instead of between "Joined" and "Contact". Would that be possible?

Image

Thank you in advance for your help! :)
User avatar
Laarela
Registered User
Posts: 3
Joined: Fri Mar 03, 2017 5:27 pm
Location: Germany

Re: Position birthday

by RMcGirr83 » Fri Mar 03, 2017 6:38 pm

Change the naming of the prosilver/template/event/viewtopic_body_postrow_custom_fields_after to viewtopic_body_contact_fields_after. Then purge the cache.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22092
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Position birthday

by Laarela » Fri Mar 03, 2017 6:44 pm

Thank you so much! It worked! :)
User avatar
Laarela
Registered User
Posts: 3
Joined: Fri Mar 03, 2017 5:27 pm
Location: Germany

Re: Position birthday

by Fezroux » Sun May 05, 2024 11:05 am

RMcGirr83 wrote:Rename the template event file within the extension from viewtopic_body_postrow_custom_fields_after to viewtopic_body_post_author_after and change this in that file

Code: Select all

<dd class="profile-birthdaycake">{postrow.USER_BIRTHDAYCAKE}</dd>
to

Code: Select all

&nbsp;{postrow.USER_BIRTHDAYCAKE}

How is this done in 2024 with version 1.0.5? The coding has changed since your initial post.

Thanks
Fezroux
Registered User
Posts: 64
Joined: Thu Dec 14, 2017 7:41 am
Location: US

Re: Position birthday

by RMcGirr83 » Sun May 05, 2024 1:21 pm

From this

Code: Select all

{% if postrow.BIRTHDAYCAKE %}
	<dd><i class="icon fas fa-birthday-cake" style="font-size:16px; color:green;" title="{{ lang('VIEWTOPIC_BIRTHDAY') }}" aria-hidden="true"></i><span class="sr-only">{{ lang('VIEWTOPIC_BIRTHDAY') }}</span></dd>
{% endif %}
to this

Code: Select all

{% if postrow.BIRTHDAYCAKE %}
	&nbsp;<i class="icon fas fa-birthday-cake" style="font-size:16px; color:green;" title="{{ lang('VIEWTOPIC_BIRTHDAY') }}" aria-hidden="true"></i><span class="sr-only">{{ lang('VIEWTOPIC_BIRTHDAY') }}</span>
{% endif %}
don't forget to purge the cache after making that change.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22092
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Position birthday

by Fezroux » Mon May 06, 2024 4:30 am

Worked great! Thanks for helping me out. :)
Fezroux
Registered User
Posts: 64
Joined: Thu Dec 14, 2017 7:41 am
Location: US