• 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

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