Rafael Viana

Forum Replies Created

Viewing 25 posts - 1 through 25 (of 91 total)
in reply to: Customise user dashboard #180911

Rafael Viana
Participant

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 2 years, 5 months ago by Rafael Viana.
in reply to: Customise user dashboard #180725

Rafael Viana
Participant

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

in reply to: WPDM Archive add-on not working with Elementor #159677

Rafael Viana
Participant

Yes of course, my pleasure

in reply to: WPDM Archive add-on not working with Elementor #159674

Rafael Viana
Participant

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

in reply to: WPDM Archive add-on not working with Elementor #159575

Rafael Viana
Participant

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

in reply to: WPDM Archive add-on not working with Elementor #159563

Rafael Viana
Participant

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)

in reply to: WPDM Archive add-on not working with Elementor #159488

Rafael Viana
Participant

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…

in reply to: WPDM Archive add-on not working with Elementor #159473

Rafael Viana
Participant

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"]

in reply to: WPDM Archive add-on not working with Elementor #159472

Rafael Viana
Participant

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

in reply to: WPDM Archive add-on not working with Elementor #159423

Rafael Viana
Participant

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

in reply to: WPDM Archive add-on not working with Elementor #159420

Rafael Viana
Participant

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

in reply to: WPDM Archive add-on not working with Elementor #159363

Rafael Viana
Participant
This reply has been marked as private.
in reply to: Archive page search #154346

Rafael Viana
Participant

It’s working, thank you very much.

in reply to: Archive page search #154325

Rafael Viana
Participant

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

in reply to: Archive page search #154281

Rafael Viana
Participant
This reply has been marked as private.
in reply to: Archive page search #154190

Rafael Viana
Participant

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…

in reply to: Archive page search #154188

Rafael Viana
Participant

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?

in reply to: Archive page search #154121

Rafael Viana
Participant

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?

in reply to: Archive page search #154119

Rafael Viana
Participant

Hi, any update?

in reply to: Archive page search #153487

Rafael Viana
Participant

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

in reply to: Archive page search #153128

Rafael Viana
Participant

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”

in reply to: Archive page search #152874

Rafael Viana
Participant

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?

in reply to: Disable downloads count because it’s huge! #150116

Rafael Viana
Participant

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

in reply to: Archive page search #150109

Rafael Viana
Participant

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

in reply to: Disable downloads count because it’s huge! #150090

Rafael Viana
Participant

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)