Search Results for 'Add Url'

Viewing 25 results - 826 through 850 (of 1,923 total)
  • Author
    Search Results
  • #128513

    Shahjada
    Keymaster
    This reply has been marked as private.
    #128488

    In reply to: email link is broken


    Nayeem Riddhi
    Moderator

    Hi,

    Which add on are you talking about? is it related to https://www.wpdownloadmanager.com/download/file-hosting-sharing-add-on/ or others? please share your package or page URL.

    Thanks.


    Wendy G
    Participant

    I have some password-protected documents that won’t download on a site I’m managing. The documents are uploaded to the website through Add Media and then chosen from the Media Library in Download Manager. I then set a password for each document.

    When I enter the password, it opens up the URL of the document in browsers Firefox, Chrome, and Brave but it is only a blank page and not displayed. Some users are starting to email us about this problem.

    We use Pressidium Hosting and their engineers found this problem:

    “We have proceeded to exclude /webinars from our caching engine, to no avail.

    After performing this check, we have observed the following warning messages appearing in your installation’s error log:

    May 15 22:26:13 192.168.192.118 apache2[11368]: [u1195] [hedberginstit.onpressidium.com] [4a804b77a13a5be6] [107.182.237.18] [error] [client 192.168.200.145:33418] AH01071: Got error ‘PHP message: PHP Warning: array_intersect(): Argument #2 is not an array in /hedberginstit-www/wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 80\nPHP message: PHP Warning: include(/hedberginstit-www/wp-content/plugins/download-manager/tpls//media-download.php): failed to open stream: No such file or directory in /hedberginstit-www/wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 87\nPHP message: PHP Warning: include(/hedberginstit-www/wp-content/plugins/download-manager/tpls//media-download.php): failed to open stream: No such file or directory in /hedberginstit-www/wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 87\nPHP message: PHP Warning: include(): Failed opening ‘/hedberginstit-www/wp-content/pl ugins/download-manager/tpls//media-download.php’ for inclusion (include_path=’.:’) in /hedberginstit-www/wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 87\n’

    This indicates a code issue with the ‘download-manager’ plugin. Specifically, on line 87 of wp-content/plugins/download-manager/libs/class.MediaAccessControl.php , the file media-download.php is invoked, which does not seem to appear in the path specified (nor anywhere in your wp-content/plugins directory, as far as I’ve seen).”

    It looks like there is an issue with the plugins code but it is beyond my understanding. Thanks for any help you can give to resolve this issue.


    Shahjada
    Keymaster

    When you are using user review plugin, here is the exact code you need to use:

    add_filter("wpseo_schema_webpage", function($ldjson){
    	if(!is_singular("wpdmpro")) return $ldjson;
            global $wpdm_user_reviews;
            $reviews = get_posts("post_type=wpdmreview&meta_key=pid&meta_value=".get_the_ID()."&post_parent=0");
            $ratingCount = count($reviews);
    	$ldjson['@type'] = 'SoftwareApplication';
    	$ldjson['@id'] = get_permalink(get_the_ID()).'#SoftwareApplication';
    	$ldjson['applicationCategory'] = "http://schema.org/OtherApplication";
    	$ldjson['fileFormat'] = "application/zip";
    	$ldjson['downloadUrl'] = get_permalink(get_the_ID());
    	$ldjson['softwareVersion'] = get_post_meta(get_the_ID(), '__wpdm_version', true);
    	$ldjson['operatingSystem'] = 'Any';
    	$ldjson['aggregateRating'] = array(
    		"@type" ► "AggregateRating",
    		"worstRating" ► 0,
            "bestRating" ► 5,
            "ratingValue" ► $wpdm_user_reviews->wpdm_get_average_reviews(get_the_ID()),
            "ratingCount" ► $ratingCount,
            "reviewCount" ► $ratingCount
        );
    	$ldjson['interactionStatistic'] = array(
    		"@type" ► "InteractionCounter",
            "interactionType" ► "http://schema.org/DownloadAction",
            "userInteractionCount" ► (int)get_post_meta(get_the_ID(), '__wpdm_download_count', true)
        );
    
    	return $ldjson;
    }, 999);

    Shahjada
    Keymaster

    It it is Yoast SEO, you need the add the following PHP code at the end of your active theme’s functions.php:

    add_filter("wpseo_schema_webpage", function($ldjson){
    	if(!is_singular("wpdmpro")) return $ldjson;
    
    	$ldjson['@type'] = 'SoftwareApplication';
    	$ldjson['@id'] = get_permalink(get_the_ID()).'#SoftwareApplication';
    	$ldjson['applicationCategory'] = "http://schema.org/OtherApplication";
    	$ldjson['fileFormat'] = "application/zip";
    	$ldjson['downloadUrl'] = get_permalink(get_the_ID());
    	$ldjson['softwareVersion'] = get_post_meta(get_the_ID(), '__wpdm_version', true);
    	$ldjson['operatingSystem'] = 'Any';
    	$ldjson['aggregateRating'] = array(
    		"@type" ► "AggregateRating",
    		"worstRating" ► 0,
            "bestRating" ► 5,
            "ratingValue" ► "*.*",
            "ratingCount" ► 0000,
            "reviewCount" ► 0000
        );
    	$ldjson['interactionStatistic'] = array(
    		"@type" ► "InteractionCounter",
            "interactionType" ► "http://schema.org/DownloadAction",
            "userInteractionCount" ► (int)get_post_meta(get_the_ID(), '__wpdm_download_count', true)
        );
    
    	return $ldjson;
    }, 999);

    There, replace *.* with an average rating and 0000 with rating and review count.

    #128251

    In reply to: New Page Template


    Nayeem Riddhi
    Moderator

    For the login button adjustment, is it related with WPDM membership add on. please give your page URL too.

    Thanks.

    #127937

    In reply to: Paypal Payment Pro


    Shahjada
    Keymaster

    I have added the following CSS:

    .payment-gateway-list .list-group-item:first-child{
    	background: url("https://designs.metom.org/wp-content/uploads/2020/05/paypal.png") 32px center no-repeat !important;
    	background-size: auto 32px !important;
    	line-height: 48px;
    	color: transparent;
    }
    

    Here:
    Image 2020-05-10 at 8.04.44 AM

    #127891

    Daniel Waters
    Participant

    Can you point me in the right direction for being able to embed a vimeo video into a page template if I were to input a URL as the package file and choose that template?

    I know there is a YouTube player but YT just isn’t the best option for my project nor is the regular video_player as it is unstable across platforms and slow to load.


    Linsey Perry
    Participant

    Hi!

    I am building a grid of downloads using a featured image and title / download link.

    My shortcode is…
    [wpdm_category id="brochures" title="Brochures & Flooring Guides" template="5eb2d25e265b5" order_by="title" order="asc" cols=3 colspad=2 colsphone=1 download_link=1]

    My custom template is…

    <div class="knowledge-base-download"><a href="[download_url]">[thumb_200x200]
    <b><a href="[download_url]" class="knowledge-base-download-heading" style="text-decoration: none;">[title]</b></div>

    Two problems…

  • The first element after the wpdm_category shortcode is affected by this code. It looks like it’s throwing everything into a strange column layout, so I’m guessing it’s something to do with the columns.
  • Second, less critical problem, is that the title doesn’t appear. Any obvious issues? I don’t mind adding this manually, but while I’m here 🙂

    Any ideas or fixes would be massively appreciated.

    Thanks so much in advance!

#127488

Nayeem Riddhi
Moderator

Please put this code in your theme functions.php, let me know if it works for you,

add_filter("wpdm_download_url_base", function($base, $ID) {

return home_url('/');

} , 10, 2 );

Thanks.

#126996

Nayeem Riddhi
Moderator

Hi,

For #option1, please your related page link and site URL

For #option2, Short-code for generating tree view of all packages and categories:

[wpdm_tree]

are you talking about this? this is related to this add on, https://www.wpdownloadmanager.com/download/wpdm-extended-short-codes/.

Thanks.


Jipsa de Groot
Participant

Hi there,

My client would like the option to filter packages by tags in the ‘wpdm_all_packages’ shortcode.
I’ve managed to add tag support by copying the ‘wpdm-all-downloads.php’ file to a ‘download-manager’ folder in my child theme and adding the following code:

// CUSTOM ADDITION: TAGS
		$tags = get_the_tags(get_the_ID());
                $ftags = array();

                if (!empty($tags)) {
		    foreach($tags as $tag){
		    //$taglink = get_tag_link($tag->term_id);
                    $ftags[] = "<a class='sbyc' href='{$cfurl}{$tag->slug}'>{$tag->name}</a>";
                }
                $tags = @implode(", ", $ftags);
				}

and

case 'tags':
      echo "<span class='__dt_categories {$cxc}'>".$tags."</span>";
 break;

This works fine as far as displaying the tags in the table, but it does not allow us to filter the results using the tags.
When we click on a tag, the table shows ‘No results’.
I’m assuming that the dataTables files have to be edited in some way to add tag support there? Or is there another solution?
Could you point me in the right direction to get this to work?

#126867

Shahjada
Keymaster

Hi,
I had to set the tag [download_page] as return URL value to redirect to the order details page after purchase.
Image 2020-04-25 at 2.51.44 PM
Now, it will redirect to the order details page after purchase.

Also, I’ve updated to download limit add-on, and tested there, it is working fine.

However, I’m watching this topic now, please let me know if you need any other assistance or I missed something there.

#126847

Shahjada
Keymaster

Hi,
Please add your site URL as twitter redirect URL, that will resolve the issue:
Image 2020-04-25 at 5.14.38 AM

And as you know you can create twitter app from here:
https://developer.twitter.com/en/apps


B
Participant

Hi, we are experiencing something similar. The requests that worked fine a couple of weeks ago now returns “404 no route was found matching the url”, which I suspect was caused by the upgrade of WP. Were you able identify the issue?

I’ll add wp-admin login details in a private reply below in case you want check our setup


Eur AG
Participant

Hi

I’m using the free version of Download Manager plus WP Pro Membership. All plugins up-to-date.

I have a couple of pdfs that are restricted and can only be used by one user (as well as by admin) who has to be logged in.

It worked fine for a couple of time but now I get error messages as soon as I try do download (see below) … what am I doing wrong? Thanks a lot!

Warning: array_intersect(): Expected parameter 2 to be an array, string given in /homepages/ … /wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 80

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/ … /wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 81

When logged in as admin I get an additional error message:
Headers already sent in /homepages/ … /wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 80

line 80 and 81 both in this file are:
$user_allowed = array_intersect($user_roles, $access);
$user_allowed = count($user_allowed);

with in the function:

function protectMediaLibrary(){
if(isset($_REQUEST[‘wpdmmediaid’])){
global $wpdb, $current_user;
$media = get_post($_REQUEST[‘wpdmmediaid’]);
$media_meta = wp_get_attachment_metadata($_REQUEST[‘wpdmmediaid’]);
//wpdmdd($media_meta);
//wpdmdd($media);
$media->path = str_replace(home_url(‘/’), ABSPATH.’/’, $media->guid);
$media->filesize = wpdm_file_size($media->path);

$access = get_post_meta($media->ID, ‘__wpdm_media_access’, true);
$password = get_post_meta($media->ID, ‘__wpdm_media_pass’, true);
$private = get_post_meta($media->ID, ‘__wpdm_private’, true);
if(current_user_can(‘manage_options’)) $private = false;
$user_roles = is_user_logged_in() ? $current_user->roles + array(‘public’) : array();
$user_roles[] = ‘public’;
$user_allowed = array_intersect($user_roles, $access);
$user_allowed = count($user_allowed);
if( $private && ( $password || !$user_allowed ) ) {
$picon = wp_get_attachment_image($media->ID, ‘thumbnail’, true);
$keyvalid = true;
$__hash = Crypt::encrypt($media->ID);
$download_url = “”;
include wpdm_tpl_path(“media-download.php”);
die();
}

$upload_dir = wp_upload_dir();
$file_path = $upload_dir[‘basedir’].’/’.$_REQUEST[‘wpdmmedia’];
$file_path = apply_filters(“wpdm_media_download”, $file_path, $media->ID);
FileSystem::downloadFile($file_path, basename($file_path), 10240, 0, array(‘play’ ► 1));
die();
}

Thanks in advance!

  • This topic was modified 6 years, 5 months ago by Eur AG.
#126159

Nayeem Riddhi
Moderator

There is also available for download URL generate in the PRO version, but it is limited with the user access role. however, for sharing files you can also use file hosting and sharing add on.

Thanks.

#126089
This reply has been marked as private.
#126047

Leonel Perpétuo
Participant

Hi,

When you add a file in a new topic, and search for available download categories, the window appears without the categories.
Can someone help me?
Thank you.

[url=https://ibb.co/j46GbdW][img]https://i.ibb.co/12vK73d/2020-04-15-22-04-30-Greenshot.png[/img][/url]

[url=https://ibb.co/M6Q5XcW][img]https://i.ibb.co/q5VFZNX/2020-04-15-21-57-50-Greenshot.png[/img][/url]

I intend to purchase the “pro” version but may have the same problem.

Thank you.

#125931

Nayeem Riddhi
Moderator

Here, One line code has been $preview = wp_get_attachment_url($preview); updated. for that, it may be missing the earlier additional images. Earlier code settings maybe now deprecated.

#125870

Frebers
Participant
This reply has been marked as private.
#125399

Ankush
Member

Hi Nayeem,

You’re trying the direct download link – which is not what users see.

Go to this page: http://www.nutemplates.com/invoices/blank-invoice-template/

You will see I have an “email lock” on Word & Excel download – they are not working.
When user clicks on them it adds #unlock in the URL and nothing happens.
Please note: there is no email lock on PDF download, which is working fine.

So, it is a problem with “email lock” functionality with download.

Please check again!


Shahjada
Keymaster

Okay now. However, here is the explanation:
get_post_meta(get_the_ID(),'__wpdm_additional_previews', true); returns media object ids for additional previews, so code should be like this:

$previews = get_post_meta(get_the_ID(),'__wpdm_additional_previews', true);
foreach($previews as $preview){
  $preview = wp_get_attachment_url($preview);	
  //......
  //.....
}

And to get the featured image, user wordpress’s native function the_post_thumbnail( 'full' );

#125349

In reply to: Custom icon

But can I add an icon to that library? So I don’t have to find the right url every time?

#125113

Elizabeth Morley
Participant
This reply has been marked as private.
Viewing 25 results - 826 through 850 (of 1,923 total)