ddoda

Forum Replies Created

Viewing 17 posts - 1 through 17 (of 17 total)
in reply to: How to remove "Download Stats" in Users List? #19321

ddoda
Participant

I was able to remove the “Download Stats” link by adding this line to my theme’s functions.php: remove_action('admin_head', "addusercolumn");


ddoda
Participant
This reply has been marked as private.

ddoda
Participant

Hmmm… I tried replacing all 3 links mentioned with that code and I’m not seeing any change:

line 199:

<figcaption class="caption"><a href='<?php echo site_url("/?wpdmdl={$file->ID}"); ?>'><?php echo $file->post_title; ?></a></figcaption>

line 233:
<figcaption class="caption"><a href='<?php echo site_url("/?wpdmdl={$file->ID}"); ?>'><?php echo $file->post_title; ?></a></figcaption>

line 415:
echo "<li class=\"file ext_$ext\"><a href='".site_url("/?wpdmdl={$file->ID}")."' rel='".get_permalink(get_the_ID())."'>".get_the_title()."</a></li>";

Am I missing the specific place where this should be entered?

Thanks,
Mike S


ddoda
Participant

Shaon,

In wpdm-extended-shortcodes.php it looks like I’ll have to modify the links on lines 199 and 233 (and possibly on 415).

To retrieve the current link both 199 and 233 are using:

<?php echo get_permalink($file->ID); ?>

I have a few questions:

1. It looks like I would need to replace get_permalink with a function call but I’m not sure which one… Would it be: “wpdm_download_file()”, “DownloadLink()”, “wpdm_ddl_button()”, “wpdm_getlink()”, “wpdm_get_download_link()”, or “wpdm_package_link()”?

2. If I use one of those functions what parameters would I feed to it in order to retrieve the right data?

3. Also, does the wpdm-extended-shortcodes.php file need any special includes in order to access those functions?

Thanks for your help,
Mike S


ddoda
Participant

Could you tell me what file(s) in the download manager generates the code for wpdm tree? Or has the template? I could get started there.


ddoda
Participant

Another follow-up on #2: I didn’t realize that I could copy the file names in a Mac directory and paste it directly into an excel file column. That solves the tediousness of pasting filenames individually. So structuring csv files will be easier now. Sorry about the rant!

#3. Definitely looking forward to how to do this one.

Thanks again,
Mike S


ddoda
Participant

#1. Thanks! I tested it and now see all the files in each category.

#2. Hmmm… The problem with the csv file is it would take a lot of time to set it up for each group of files since I’m dealing with so many files. To make it efficient I would need a way to automatically grab the file names for each set of files and dump them into an excel column to structure the csv with. The alternative is manually adding each file name to the csv file, which would take way too much time. If I went through that trouble then I’d be better off manually adding each dash to each file with the normal import. It would be nice if the Bulk Import automatically kept the structure of the file names (keeping dashes and dots) but its not a deal breaker. I think I’m just going to leave out all the dashes since this is only a small problem.

#3. This one is pretty important. Could you direct me to where I can make this change? The direct download option for the wpdm tree would greatly increase its user-friendliness.

Thanks,
Mike S


ddoda
Participant

Hmmm… This file was set to 755. I just changed it to 777, hope that helps.


ddoda
Participant

Sorry about that, the account is now activated. You should be able to login now.

Thanks,
Mike S


ddoda
Participant
This reply has been marked as private.

ddoda
Participant

Shaon,

1. I’m surprised I didn’t catch that, sorry about that one. its pretty obvious when looking at the settings in detail. I think some info should be included in the Download Manager documentation for short-codes: front-end UI because I was under the impression that it would work out of the box. Maybe something like: “You must set a user role before being able to use the Front-End UI. Navigate to Downloads > Settings > Frontend > Front-end UI Settings > Allowed User Roles to Create Package From Front-end to set user roles.” I would also recommend some sort of error message that shows up when no user role is set instead of just a pink box.

2. I think when I was originally testing the wpdm tree I wasn’t seeing anything because it wasn’t showing single packages that I uploaded. It only seems to show packages added from the bulk import. So It was probably working after I did the bulk import. Glad that it is up and running.

3. Yes, the /download-manager/cache/ was set to 755 permissions. Once I set it to 777 the .CPGZ File Issue has been resolved. Thanks! I do think you should include something prominent on your Installation instructions that says that directory needs to be writeable in order to avoid this issue. I did see other users with this problem as well.

Just trying to help make things more clear so not as many people will be wasting your time like I probably did a bit of 😉

Thank you very much for your help,
Mike S


ddoda
Participant
This reply has been marked as private.

ddoda
Participant
This reply has been marked as private.

ddoda
Participant
This reply has been marked as private.

ddoda
Participant
This reply has been marked as private.

ddoda
Participant

Thank you! Yes, activating CURL did resolve all those issues.


ddoda
Participant
This reply has been marked as private.
Viewing 17 posts - 1 through 17 (of 17 total)