Join our Facebook Group
ScriptsTribe • Sngine • Community
Join

Forums

The great place to discuss topics with other users

Add default Cover Image to Sngine

'
Join the Conversation Post Reply
Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2025-05-17 05:19:09

this is working

Mike Sieck
Member
Joined: 2025-12-28 00:13:09
2025-12-31 06:50:35

Sngine does not have profile default cover as of out of the box, so I added this little hack

 

Open profile.tpl look for content/themes/default/templates

   <!-- cropped-cover -->
            <img class="js_position-cover-cropped {if $user->_logged_in && $profile['user_cover_lightbox']}js_lightbox{/if}" data-init-position="{$profile['user_cover_position']}" data-id="{$profile['user_cover_id']}" data-image="{$profile['user_cover_full']}" data-context="album" src="{$profile['user_cover']}" alt="{$profile['name']}">
          <!-- cropped-cover -->

And after that Add

 

{else}
    <!-- Default cover image -->
    <img class="js_position-cover-cropped" src="{$system['system_url']}/content/themes/{$system['theme']}/images/default_cover.jpg" alt="{__("Default Cover")}">


add a default cover image to theme folder like this 

/content/themes/default/images/default_cover.jpg

and that is all enjoy.
Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2026-01-13 04:15:07

Sngine does not have profile default cover as of out of the box, so I added this little hack

 

Open profile.tpl look for content/themes/default/templates

   <!-- cropped-cover -->
            <img class="js_position-cover-cropped {if $user->_logged_in && $profile['user_cover_lightbox']}js_lightbox{/if}" data-init-position="{$profile['user_cover_position']}" data-id="{$profile['user_cover_id']}" data-image="{$profile['user_cover_full']}" data-context="album" src="{$profile['user_cover']}" alt="{$profile['name']}">
          <!-- cropped-cover -->

And after that Add

 

{else}
    <!-- Default cover image -->
    <img class="js_position-cover-cropped" src="{$system['system_url']}/content/themes/{$system['theme']}/images/default_cover.jpg" alt="{__("Default Cover")}">


add a default cover image to theme folder like this 

/content/themes/default/images/default_cover.jpg

and that is all enjoy.
Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2026-01-14 14:27:43

Sngine does not have profile default cover as of out of the box, so I added this little hack

 

Open profile.tpl look for content/themes/default/templates

   <!-- cropped-cover -->
            <img class="js_position-cover-cropped {if $user->_logged_in && $profile['user_cover_lightbox']}js_lightbox{/if}" data-init-position="{$profile['user_cover_position']}" data-id="{$profile['user_cover_id']}" data-image="{$profile['user_cover_full']}" data-context="album" src="{$profile['user_cover']}" alt="{$profile['name']}">
          <!-- cropped-cover -->

And after that Add

 

{else}
    <!-- Default cover image -->
    <img class="js_position-cover-cropped" src="{$system['system_url']}/content/themes/{$system['theme']}/images/default_cover.jpg" alt="{__("Default Cover")}">


add a default cover image to theme folder like this 

/content/themes/default/images/default_cover.jpg

and that is all enjoy.
ScriptsTribe https://scriptstribe.com