• 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
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Reorder Direct links

imghut

πŸ’– Chevereto Fan
Is it possible to reorder the direct links under Embed codes so I can have "Image Link" first and "Image URL" second in the list?

Thanks
 
Sure, edit the theme. There are several sections with embed codes so I really don't know where you want to see results.
 
After the last update my mod was overwritten, so I added again but this time it did not make any difference?
I tried to swap as below, but image URL is still top? I want image Link at the top.

// Embed codes
$embed = [];
$embed['direct-links'] = [
'label' => _s('Direct links'),
'entries' => [
[
'label' => _s('Image link'),
'value' => $image['url_viewer']
],
[
'label' => _s('Image URL'),
'value' => $image['url']

],
[
'label' => _s('Thumbnail URL'),
'value' => $image['thumb']['url']
],
]
 
Try using G\debug($var) to detect what's going on and where the order is being altered.
 
Sorry but no idea what that means, all I did last time was change

'label' => _s('Image URL'),
'value' => $image['url']
],
[
'label' => _s('Image link'),
'value' => $image['url_viewer']

to

'label' => _s('Image link'),
'value' => $image['url_viewer']
],
[
'label' => _s('Image URL'),
'value' => $image['url']

and it worked.
 
Works for me, check your cache.

upload_2017-7-14_14-53-29.png

Every single time you edit something check if your server has a cache on PHP files. If so, then every single time flush that cache of you will keep getting this issue over and over.
 
In your original code you posted the error was you forgot a comma (,) when you edited it πŸ˜€ I do it all the time.

], sometimes just needs to be ]
 
Back
Top