Rafael Viana

Forum Replies Created

Viewing 25 posts - 1 through 25 (of 91 total)
Nov 24, 2022 at 2:57 pm
#180911
Participant
Rafael Viana
OP

Hello,
I have this page on my website with several package files.
What I’m looking for is to have a private area for each user where they can see the packages which are restricted for their user group, something like this.

  • This reply was modified 3 years, 3 months ago by Rafael Viana.
Nov 18, 2022 at 12:11 pm
#180725
Participant
Rafael Viana
OP

I followed the instructions here to duplicate template files and the dashboard files are already on my theme directory.

I will make changes to the files to achieve what I need but there are one thing I don’t know how to do it which is how can I add to the dashboard a list of specific packages? I set to some packages permissions to administrator users and I want them to see this packages on their dashboard

Aug 12, 2021 at 8:27 am
#159677
Participant
Rafael Viana
OP

Yes of course, my pleasure

Aug 12, 2021 at 7:43 am
#159674
Participant
Rafael Viana
OP

Hi, now it’s working! Thank you for your help

Aug 11, 2021 at 9:28 am
#159575
Participant
Rafael Viana
OP

That’s exactly what I did and it doesn’t work… can you take a look into my wp-admin? Look at this screenshot pls

Aug 11, 2021 at 8:20 am
#159563
Participant
Rafael Viana
OP

Hi!
I made the update but the path you mentioned doesn’t work. It only works if the files are inside {theme-dir}/download-manager/ (on my last message I put it wrong, it should be like this)

Aug 10, 2021 at 1:12 pm
#159488
Participant
Rafael Viana
OP

Hi, it made it work but not exactly as you said. The only way to put it running with the template files from my theme is to place the wpdm-archive-page files inside {theme-dir}/download-manager/wpdm-archive-page/. If I put it inside the folders you said it doesn’t work…

Aug 10, 2021 at 12:03 pm
#159473
Participant
Rafael Viana
OP

Basically what I need to change in the template is to add a title on top of the sidebar with “Search by category:” (I already have that before).

The shortcode I’m using is [wpdm_archive button_style="primary" template="custom-button-template" items_per_page="15" order_by="title" order="asc"]

Aug 10, 2021 at 11:54 am
#159472
Participant
Rafael Viana
OP

Hi, I updated the template files in the theme but now it doesn’t show the changes I made. What do I need to do to change the archive addon template? I’m using the compact template

Aug 9, 2021 at 5:46 pm
#159423
Participant
Rafael Viana
OP

I investigated a bit more and discovered the issue is related with the folder “download-manager” on my child theme called “motorline”. Can you take a look into it? Probably with the new version the folder structure needs to be different

Aug 9, 2021 at 5:22 pm
#159420
Participant
Rafael Viana
OP

Hi, I tried with a default WP theme and your plugin runs well. I’m using The7 theme, what might be wrong?

Aug 9, 2021 at 7:38 am
#159363
Participant
Rafael Viana
OP
This reply has been marked as private.
May 26, 2021 at 4:13 pm
#154346
Participant
Rafael Viana
OP

It’s working, thank you very much.

May 26, 2021 at 1:28 pm
#154325
Participant
Rafael Viana
OP

What do you mean in Theme Editor? If you need to see theme files install file manager plugin

May 26, 2021 at 7:54 am
#154281
Participant
Rafael Viana
OP
This reply has been marked as private.
May 25, 2021 at 1:38 pm
#154190
Participant
Rafael Viana
OP

website is working now and also the search in archive addon, but now if I search using the search input in the header it searches also for WPDM posts, I need to see only results from dt_portfolio post type…

May 25, 2021 at 1:26 pm
#154188
Participant
Rafael Viana
OP

Hi
I added your code but the website doesn’t work. I think there is a strange character in this line:
$searchable_post_types = get_post_types( array( 'exclude_from_search' ► false ) );

This character “►” is ok?

May 24, 2021 at 3:42 pm
#154121
Participant
Rafael Viana
OP

Hi, I think you didn’t understand what I meant with that function. Basically it says to wordpress when users search for something on my website, when they use the main search in the header, it will filter the results to show only posts from dt_portfolio. The problem is, the function is running in the entire website, including pages I have WDPM archive addon, so when I search for something in it, there are no results, because wordpress is running the function I showed you before.

My question is, can I add anything to the function so it doesn’t run in WPDM archive searches?

May 24, 2021 at 2:38 pm
#154119
Participant
Rafael Viana
OP

Hi, any update?

May 19, 2021 at 4:34 pm
#153487
Participant
Rafael Viana
OP

Yes that’s what I said. If I remove the code the search works but I need to have that code for the main search on the website

May 19, 2021 at 9:22 am
#153128
Participant
Rafael Viana
OP

Hello,
the issue is the search doesn’t work. If you search for something like the first results you can see on the archive, it doesn’t output any results. You can check here in this staging version: https://motorline.pt/staging/suporte/ . Search for “ARC007”

May 18, 2021 at 9:10 am
#152874
Participant
Rafael Viana
OP

Hi, I start digging this issue again and I found the issue is related with a function I have on my website:

function searchfilter($query) {
    if ($query->is_search && !is_admin()) {

        $query->set('post_type',array('dt_portfolio'));

    }
    return $query;
}
add_filter('pre_get_posts','searchfilter');

As you can see this function filters the search results on my website for a specific post type and this is causing a conflict with your plugin. How can I set this function to don’t run when searching inside the Archive shortcode?

Apr 8, 2021 at 1:16 pm
#150116
Participant
Rafael Viana
OP

Actually that option doesn’t do the trick, it just resets the filter options above the button.

To reset stats I had to go to settings > privacy and remove cache and download history.

The database is much MORE small now, it went from 9GB to less than 1GB.

Can you create an option do disable downloads history? Or make it possible to set to save only a certain amount of days, for example, save download history for the last 90 days

Apr 8, 2021 at 9:17 am
#150109
Participant
Rafael Viana
OP

With all the plugins disable the search works perfectly. I will try to enable some of them to see if I found the cause

Apr 7, 2021 at 8:23 pm
#150090
Participant
Rafael Viana
OP

My database has a total of 9gb. Table wp_postmeta has 8,5gb. I run these SQL code to see rows ordered by size:
SELECT *, LENGTH(meta_value) as LEN FROMwp_postmetaORDER BYLENDESC

As you can see on this image: https://tinyurl.com/yjukrcs4
There are lot of row related with WPDM, I think it’s related with download history and not download counts (as I said before).

You need to develop a way to optimize this, because the database gets huge with your plugin and it’s not affordable to anyone.

Viewing 25 posts - 1 through 25 (of 91 total)