• 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

Random button doesn't work as expected

Status
Not open for further replies.

illspirit

Chevereto Member
When logged in, the random button only shows images uploaded by me, not any other users.

When logged out sometimes the random buttons just takes me to the homepage and decides not to work altogether.
 
Last edited:
When logged in, the random button only shows images uploaded by me, not any other users.

Are you sure? In the demo I'm able to see any public picture using the random mode.

When logged out sometimes the random buttons just takes me to the homepage and decides not to work altogether.

That is because random mode needs like 5 images or so at least to work properly.
 
That is because random mode needs like 5 images or so at least to work properly.

Okay, so that is why it was doing that. So that's not an issue.


Are you sure? In the demo I'm able to see any public picture using the random mode.

I think I figured it out, it's not showing photos if they are in an album... even if the album is public.
 
I think I figured it out, it's not showing photos if they are in an album... even if the album is public.

In the demo I'm able to see public images regardless they belong to an album or not. Works logged in or not.
 
it doesn't matter what the demo does... I'm running a fresh install and it's not working properly. maybe I have a setting different on my site causing it not to work. feel free to check out my site(nsfw).
 
It matters how the demo works because is an standar installation.
 
So what? My site is not customized in any way... you can't just assume I fucked something up. It's not working as it should.
 
I did'n intend to say that, I was refering to the system dependences like system libraries and things like that.

When something doesnt work but in the demo works fine it tells me that something is wrong at server layer and in this case is most likely to be a MySQL issue.

Since I can't replicate the issue I need you to provide me FTP access to debug it.
 
There is nothing wrong here. The problem is that you have disabled "show nsfw in random mode" and all the albums that you have are nsfw so the images from those won't be shown in random mode.
 
There is absolutely something wrong here.

1. I have Show not safe content enabled
2. NSFW pictures ARE showing up in random mode, just not the ones from the other user in the albums.

I gave you admin if you want to look at the dashboard.
 
The conflicting code is this:

PHP:
                    // Don't show NSFW in random mode
                    if(!$handler::getCond('show_nsfw_in_random_mode')) {
                        if($logged_user) {
                            $query .= 'AND ('.$tables['images'].'.image_nsfw = 0 OR '.$tables['images'].'.image_user_id = '.$logged_user['id'].') ';
                        } else {
                            $query .= 'AND '.$tables['images'].'.image_nsfw = 0 ';
                        }
                    }

I don't know why in the earth I used $handler::getCond('show_nsfw_in_random_mode') because the right thing is CHV\getSetting('show_nsfw_in_random_mode'). I've already changed it in your website.
 
Status
Not open for further replies.
Back
Top