• 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

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