solved Fix for Profile Index Displayed Categories

Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
I saw that the update was supposed to hide categories and re-size accordingly if no content is present.

However, I had an artist who had songs but no videos. Her half size video category was still showing, but by itself with nothing to the right. Songs were full page.

So I rewrote the code to this, and it fixed it. Hey, you guys are turning me into a programmer lol

 {* Latest Music and Latest Videos Row *}
       
        <div class="row">

            <div class="{if $profile_jrVideo_item_count > 0}col6{else}col12 last{/if}">
                {if $profile_jrAudio_item_count > 0}<div class="block">
                   {jrCore_include template="profile_index_music.tpl"}{else} {/if}
                </div>
            </div>


            <div class="{if $profile_jrAudio_item_count > 0}col6{else}col12 last{/if}">
                {if $profile_jrVideo_item_count > 0}<div class="block">
                     {jrCore_include template="profile_index_video.tpl"}{else} {/if}
                </div>
            </div>

        </div>
        



--

Ken Rich
indiegospel.net

updated by @ken-rich: 07/09/16 09:21:02AM
douglas
@douglas
11 years ago
2,797 posts
It would be better if you did this instead.

{* Latest Music and Latest Videos Row *}
       
        <div class="row">

            {if $profile_jrAudio_item_count > 0}
            <div class="{if $profile_jrVideo_item_count > 0}col6{else}col12 last{/if}">
                <div class="block">
                   {jrCore_include template="profile_index_music.tpl"}
                </div>
            </div>
            {/if}


            {if $profile_jrVideo_item_count > 0}
            <div class="{if $profile_jrAudio_item_count > 0}col6{else}col12 last{/if}">
                <div class="block">
                     {jrCore_include template="profile_index_video.tpl"}
                </div>
            </div>
            {/if}

        </div>



--

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

updated by @douglas: 12/29/14 09:23:54AM
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Thanks Douglas,

Your way fixes it too, just tried it. Probably better code since I am clueless... lol


--

Ken Rich
indiegospel.net

updated by @ken-rich: 12/29/14 09:23:54AM
douglas
@douglas
11 years ago
2,797 posts
No problem! Your are getting the hang of it though. ;)


--

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

updated by @douglas: 12/29/14 09:23:54AM