• 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

Data in HTML Embed Code

kuro12

Chevereto Noob
Hi,

I was trying to edit the HTML embed code and adding data width and height. I edited the file at /app/themes/Peafowl/snippets/embed.php and using:

Code:
width="%IMAGE_DISPLAY_WIDTH%" height="%IMAGE_DISPLAY_HEIGHT%"

But it does not return width and height values. Hope you can give some info on this.

Thank you.
 
Modifying the embed.php is not enough but I have no idea where to start, can you please give some info on how to get width/height to embed?
 
Code:
width="%IMAGE_DISPLAY_WIDTH%" height="%IMAGE_DISPLAY_HEIGHT%"

These are listing tags, not embed tags. Embed tags take the name from the key, you need to chop IMAGE_DISPLAY

PHP:
'<img src="%URL%" alt="%TITLE%" border="0" width="%WIDTH%" height="%HEIGHT%">'
 
Back
Top