solved Image gallery showing up on profile

Elise
Elise
@elise
8 years ago
249 posts
Profiles are showing a section called "Image gallery" even though the member quota does not have permission to this module. I even disabled the module to see if that fixed the issue. I had never noticed this before, so I am puzzled.

See screenshot and live url:
http://empathcommunity.eliselebeau.com/eliselebeau

Tips on why this is happening?
updated by @elise: 01/07/17 12:05:11PM
douglas
@douglas
8 years ago
2,790 posts
Hello,

In your skins/YOURSKIN/profile_index.tpl find this code:

{* Latest Images section *}
        {if $profile_jrGallery_item_count > 0}
        <div class="row">
            <div class="col12 last">
                <div class="block">
                    {jrCore_include template="profile_index_image.tpl"}
                </div>
            </div>
        </div>
        {/if}

and change it to this:

{* Latest Images section *}
        {if  jrCore_module_is_active('jrGallery') && $profile_jrGallery_item_count > 0}
        <div class="row">
            <div class="col12 last">
                <div class="block">
                    {jrCore_include template="profile_index_image.tpl"}
                </div>
            </div>
        </div>
        {/if}

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Elise
Elise
@elise
8 years ago
249 posts
Thanks!

Tags