solved User Birthday Display

Jeff Gilder
Jeff Gilder
@jffgldr
8 years ago
69 posts
Anyone using the "User Birthday" Module? Looking for the solution to display birthdays by horizontal grid rather than the default vertical column.
Thank you!


--
Thank you!
Jeff
Running JR6 with Follow Me on one JamRoom Network and JR6 and ISkin on another - Migrated From Ning. LOVE JamRoom!

updated by @jffgldr: 03/11/17 05:28:34AM
douglas
@douglas
8 years ago
2,793 posts
If this is what you were referring to in your support email, try changing the code in the Gallery modules widget_birthdays.tpl file to this:

{if isset($_items)}
    {foreach $_items as $item}
        {if $item@first || ($item@iteration % 4) == 1}
        <div class="row">
        {/if}
            <div class="col3{if $item@last || ($item@iteration % 4) == 0} last{/if}">
                <div class="p10">
                    {jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="large" crop="portrait" class="img_scale" style="margin:0" alt="@`$item.user_name`" title="@`$item.user_name`"}<br>
                    <a href="{$jamroom_url}/{$item.profile_url}">@{$item.profile_url}</a>
                    <br>
                    {if $item.user_birthdate_today == 1}
                        &nbsp;<strong>{jrCore_lang module="jrBirthday" id=7 default="Today"}</strong>
                    {else}
                        &nbsp;{$item.user_birthdate_epoch|jrCore_date_format:"%B %e"}
                    {/if}
                </div>
            </div>
        {if $item@last || ($item@iteration % 4) == 0}
        </div>
        {/if}
    {/foreach}
{else}
    <div class="item">
        {jrCore_lang module="jrBirthday" id=8 default="No birthdays found"}
    </div>
{/if}

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Jeff Gilder
Jeff Gilder
@jffgldr
8 years ago
69 posts
Thanks Douglas. Yes this is what I was describing. Event when I limit the birthday display to "today" the single column is extremely long. With 15,000 members, there are a lot of common birthdays...apparently. I'll give that a shot. I appreciate your help.
Jeff


--
Thank you!
Jeff
Running JR6 with Follow Me on one JamRoom Network and JR6 and ISkin on another - Migrated From Ning. LOVE JamRoom!
Jeff Gilder
Jeff Gilder
@jffgldr
8 years ago
69 posts
Douglas,
I changed the code as you recommended, and it did not affect the display. But... in reading the post again...you mentioned "Gallery Modules" in your post. I made the change at ACP>Users>User Birthday>Templates>widget_birthdays.tpl
I'm guessing that is not what you meant.
Thanks,
Jeff


--
Thank you!
Jeff
Running JR6 with Follow Me on one JamRoom Network and JR6 and ISkin on another - Migrated From Ning. LOVE JamRoom!
douglas
@douglas
8 years ago
2,793 posts
I'm not really sure why I put Gallery in that post, you got what I meant though. That is the correct template to modify (Birthday > Templates > widget_birthdays.tpl).

Are you saying you modified the template and there is no change?

If so, send us your admin login (support[at]jamroom[dot]net) and I'll take a look at it for you.

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
8 years ago
2,793 posts
I just tested this code out and it does work. Let me know if your seeing any issues.

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Jeff Gilder
Jeff Gilder
@jffgldr
8 years ago
69 posts
I went back and reset the code and tried again. It worked. Looks great. Thank Douglas!


--
Thank you!
Jeff
Running JR6 with Follow Me on one JamRoom Network and JR6 and ISkin on another - Migrated From Ning. LOVE JamRoom!
douglas
@douglas
8 years ago
2,793 posts
Glad it worked out, thanks! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos