• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • ๐Ÿ˜Œ This community is user driven. Be polite with other users.
    • ๐Ÿ‘‰ Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • ๐Ÿ’ธ Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • 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.
 
Those embed codes are at app/routes/route.image.php
 
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 :D I do it all the time.

], sometimes just needs to be ]
 
Back
Top