BigBoiJefe
Chevereto Member
Is there a way to only allow one userid's images to be shown in the explore tab?
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:
Support response
Support checklist
$list = new CHV\Listing;
$list = new CHV\Listing;
$list->setType($type); // images | users | albums
$list->setOffset($list_params['offset']);
$list->setLimit($list_params['limit']); // how many results?
$list->setItemsPerPage($list_params['items_per_page']); // must
$list->setSortType($list_params['sort'][0]); // date | size | views
$list->setSortOrder($list_params['sort'][1]); // asc | desc
$list->setWhere($where);
$list->setOwner($user["1"]);
$list->setRequester(CHV\Login::getUser());
$list->bind(":1", $user["1"]);
if($user_cond['user_search'] and !empty($user['search']['q'])) {
$list->bind(':q', $q ?: $user['search']['q']);[/CODE]
i look up for $where there is 2 $whereNo, you added a conditional which won't work. setOwner sets who is requesting that listing so the permissions gets pushed to that user so he doesn't see things that he shouldn't see. Like I said, lookup for $where.
https://chevereto.com/community/threads/change-the-explore-function.4197/
i found it on rout-explore.phpI found this as well. Which they are trying to do the same thing that I'm trying to do. Again what I found is that route.user.php controls the images that are shown on the user profile page and not the explore route.
HTML:https://chevereto.com/community/threads/change-the-explore-function.4197/
i think that you shout edit routes.index.php,Ok, we're getting there. If I click on the Explore link at the top of the page and click All, it works. However, I set the Homepage to Route Explore in the admin settings, and when people goto the main site, it still shows images from everyone.
You need to inject the where clause. The code is right here: https://chevereto.com/community/thr...to-display-images-in-explore.6264/#post-34312
That is for explorer, is not the same as the homepage. For the homepage simply go to Dasboard > Settings > Homepage.I added the where clause, however, it doesn't effect the main page. see qpix.com. But if you click on Explore then all the content is limited there. What am I missing?