• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

hiding album embed codes

Status
Not open for further replies.

pxljar

Chevereto Member
Website URL
<private>

Chevereto version
3.10.0

Description of the issue
I'm unable to hide the "embed codes" tab when viewing albums. I disabled embed codes under both Theme (content) and Image Upload (uploader) but there is no option to disable embed codes for albums. I don't want the ability to hotlink.

Please point the way.
 
app/routes/route.album.php

If it's where I think you mean the I'm guessing you could simply rip out the following from that file:

Code:
        $tabs[] = [
            'list'        => FALSE,
            'tools'        => FALSE,
            'label'        => _s('Embed codes'),
            'id'        => 'tab-codes',
        ];

Not tried it but should work. Just run the error log for a while to make sure it's not producing errors when viewing that page. Try it as Admin and as a Member/Guest before viewing log.

Not for me to say but as this is a change to the styling then it would have probably been better to post in the "Styling and Customization" board.

Edit: BTW keep the original where it is and put the revised file into app/routes/overrides/route.album.php
 
Last edited:
Embed codes toggle doesn't work in albums at this time. It will be added in next release.
 
I can confirm that this will be added to v3.10.1 which should be released tomorrow.
 
Status
Not open for further replies.
Back
Top