wpdm-search-page empty list when is not administrator

Viewing 15 posts - 1 through 15 (of 15 total)
#118659

Rafael Dominguez
Participant

shortcode wpdm-search-page does not show results of search when user is not an administrator ¿any idea about?

#118660

Nayeem Riddhi
Moderator

Hello,

Please, give your temporary wp-admin login details in private reply for checking.

Thanks.

#118661

Rafael Dominguez
Participant
This reply has been marked as private.
#118662

Rafael Dominguez
Participant
This reply has been marked as private.
#118663

Rafael Dominguez
Participant

I am using WPDM PRO

#118669

Nayeem Riddhi
Moderator

Hello,

Your all packages are restricted only for the administrator, so this is happening. You can also give multiple access to selecting them, like customer, subscribe, contributor. please check.

#118698

Rafael Dominguez
Participant

“Your all packages are restricted only for the administrator, so this is happening.”
Please you are not serious about this, I cant understand tou did not even try. PLEASE
USE 1060 USER, and then you will see the problem which has nothing to do with restricted packages.
With 1060 user or any (customer role) you can see all packaches shared with this user (/listado)(/documentos), but if you try in (/documentos-avanzado), you ll see that none packages are showing.

#118727

Nayeem Riddhi
Moderator

Ok, I will check it.

#118745

Nayeem Riddhi
Moderator

Hello,

Please allow access to both administrator and customer from the package settings. Thus from (/documentos-avanzado) page search, you will get your desired result.

#118757

Rafael Dominguez
Participant
This reply has been marked as private.
#118766

Rafael Dominguez
Participant

Thank you for your answer, but that does not work in this case.
If I do that, any customer can, see and download, documents from others customers.
And our site won’t work as desired.
Let me explain this site:
1.- we are using advance user members access to restrict packages to 1 user and all administrators, so any package can be seen by administrators and just one user (the owner of the document).

2.- Documents are organized with categories, that are using advance user access control so this categories can only be seen by the users allowed, (usually 1 customer(the customer owner of all packages in that category), and Miguel and Mantenimiento (this are 2 administrators, not all, but i rather use access control instead of allow all administrator just for a better control).

3.- You can notice that administrators can see all categories and can see and download all documents.
4.- You can notice using a customer role, that customers can only see categories that are allowed for current customer, and only see and download documents allowed to that current customer.
5.- For this we developed a filter for the category list wich check if category is restricted or allowed for the current user before showing the list, and this works fine.
6.- I’d been testing and searching in your code, for more than a month, and I do not find what are the differents that provoke that in the search page you cannot see any document that you can see in the other pages., there must be something weird that make search page different to the other shortcodes.

I also try allowing customers in packages but this made possible that other customers can download the package that are not allowed.
Hope this helps you to understand the problem and find a solution for my particular case.
Thank you in advance.

#118779

Rafael Dominguez
Participant
This reply has been marked as private.
#118864

Rafael Dominguez
Participant

Two questions:
1- I found a weird behavior when using wpdm_user_access.
In search page pagination it’s not ok, what the code does is to paginate before excluding post not allowed by wpdm_user_access so pages are with les posts that it is supposed. If the main query ha 10 post per page and there is 3 pages with a total of 30 posts, when using user access just clear the posts your not allow but does not rebuild pagination, so you may have 2 posts in first page, 10 in second page, and 3 in last page.
¿Is there a hook where i can rebuild pagination?

2- I have to make changes in wpdm-archive-page.php ¿how do I include this in my child theme? I did try to put it in mychild theme inside download-manager folder but is not working.
Thank you in advance.

#119108

Rafael Dominguez
Participant

I have to make changes in wpdm-archive-page.php ¿how do I include this in my child theme? I did try to put it in mychild theme inside download-manager folder but is not working.
Thank you in advance.

#119132

Nayeem Riddhi
Moderator

The role you are demanding, it is based on the template files, here is the doc, https://www.wpdownloadmanager.com/doc/template-files/

Thanks.

Viewing 15 posts - 1 through 15 (of 15 total)

The topic ‘wpdm-search-page empty list when is not administrator’ is closed to new replies.