• 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

Easily get raw URL for other PHP scripts

ashkir

👽 Chevereto Freak
Hello! Does anyone know of an easy way to get the raw URL (or even CDN) url for use on a php page that is not a part of Chevereto?

Basically, I'm trying to connect to the database right now via:
Code:
$sql = "SELECT image_id, image_name, image_extension, image_album_id FROM chv_images WHERE image_album_id = '146'";

 echo "image link: <a href='https://cdn.nickpic.host/images/". $row["image_name"]. "." . $row["image_extension"]."'>". $row["image_name"]. "." . $row["image_extension"]."</a> - Name: " . $row["image_id"]. " " . $row["image_album_id"]. "<br>";
    }
It works flawlessly for anything with the album 146.

However, what I want to do is to easily get the full URL for the image. Right now the only thing I can think of is by manually typing the domain. There doesn't seem to be an easy way to call the image's URL from the database? Or did I miss something?

I'm planning on adding a file server soon, so the raw image link is going to become increasingly more important, which basically renders this script useless.
 
Back
Top