• 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

image id

mydive

Chevereto Member
Hi

I have a custom php script and i wanted to know how to put chevereto's image ID in that line of code?

<?php echo ThumbsUp::item('item_name') ?>

John
 
If the id is something like "asYd" you need to use CHV\decodeID("asYd"). If you have the real database id then you don't need to call that function.
 
the image name field in the code needs to be unique to that image... could this be put in?

'
<?php echo ThumbsUp::item('.$share_element["image"].') ?>
 
Honestly I don't understand what you are doing here. Maybe you can give me a little heads up with the documentation of ThumbsUp or something like that.
 
Best that you can do is use the image id which you can get using $image['id']. It will depend where you want to implement this how you call the image array, for instance in /image/<encoded id> you need to use get_image()['id'] to get the id.
 
Back
Top