• 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

View Count / Add User Functionality

rikanm

Chevereto Member
Hello guys,
let me say something first - great script. Well worth the price. Now I have 2 questions so I can modify it to fit my needs.

1.: View count. Where in the script is the image view processed and the view counted?
2.: If I wanted to add another page to the user-panel, how would I go about that? Where is that processed?

Thank you for the help,

Nils
 
Hi there,

1. view count is handled in app/routes/route.image.php
PHP:
$image = CHV\Image::getSingle($id, !in_array($id, $_SESSION['image_view_stock']) ? true : false, true);

In this case, as you may notice it the second argument of this "getSingle" determinate if the view is counted or not and in Chevereto it doesn't count twice.

2. That is done in app/routes/route.dashboard.php is not that hard but you need to dig it.

Cheers.
 
Back
Top