Search Results for 'Add Url'

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

    Web Guy
    Participant
    This reply has been marked as private.

    Sef Hendrickx
    Participant

    Hi Nayeem,

    You’re mentioning Additional previews. But i’m not adding mutlple images to the packages.
    I’m importing from dropbox so the image preview per item in the package i want to show i based on the url-image i may assume.

    The demo shows perfect lay-out but i’m getting to the point that it may only work with uploading from the library.

    #130102

    Jaewon Kim
    Participant
    <div class="card bg-light c2a4 mt-2 mb-2">
        <div class="card-body text-center pb-4">
            <div class="text-center wicon">
                [thumb_128x128]
            </div>
            <h3 class="p-0 m-0 mb-2"><a style="font-weight: 700" href="[page_url]">[title][ifbutton]</a></h3>
            <div class="text-muted text-small"><i class="fas fa-hdd"></i> [file_size] <i class="far fa-arrow-alt-circle-down ml-2"></i> [download_count] downloads [ifbutton]</div>
        </div>
        <div class="card-footer text-center">
                <a href="[page_url]" class="btn btn-secondary">View More</a>
                <div class="d-button d-inline-block">[download_link]</div>
                <div class="ml-3 [hide_empty:download_link]">[download_link]</div>
        </div>
    </div>
    <style>
        .w3eden .c2a4 .wpdm_icon{ height: 64px !important; width: auto; }  .well.c2a4 .media-body{ font-size: 11pt; }
        .w3eden .c2a4 .wicon img{ border-radius: 500px; max-width: 96px;margin: 5px auto 25px; }
        .w3eden .c2a4 .btn{ border-radius: 50px; font-weight: 500; margin: 0 3px; padding: 0 25px; height: 36px; line-height: 36px; font-size: 12px; }
    </style>


    I made it with the code above, but it doesn’t seem to work properly.
    How can I use this tag properly?

    • This reply was modified 6 years, 5 months ago by Jaewon Kim.
    #129702

    In reply to: How to


    Greg Harte
    Participant
    This reply has been marked as private.
    #129657

    Greg Harte
    Participant

    how can I add download URL in email template like when someone makes purchase audio they can get download link directly in the email soo they click and download the file directly via clicking link


    Damiane Muller
    Participant

    Hi guys,

    I have added some roles in the functions.php file using this code

    add_role('student', 'Student', '');

    This created a fatal error on the site. I found this error in the error log:

    [01-Jun-2020 05:48:54 UTC] PHP Fatal error:  Uncaught Error: Cannot unset string offsets in /home/site/dev.siteurl.org.au/wp-includes/class-wp-role.php:75
    Stack trace:
    #0 /home/site/dev.siteurl.org.au/wp-content/plugins/download-manager/libs/class.Apply.php(665): WP_Role->remove_cap('access_server_b...')
    #1 /home/site/dev.siteurl.org.au/wp-includes/class-wp-hook.php(287): WPDM\libs\Apply->sfbAccess('')
    #2 /home/site/dev.siteurl.org.au/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #3 /home/site/dev.siteurl.org.au/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #4 /home/site/dev.siteurl.org.au/wp-settings.php(540): do_action('init')
    #5 /home/site/dev.siteurl.org.au/wp-config.php(92): require_once('/home/site/...')
    #6 /home/site/dev.siteurl.org.au/wp-load.php(37): require_once('/home/site/...')
    #7 /home/site/dev.siteurl.org.au/wp-blog-header.php(13): require_once('/home/site/...' in /home/site/dev.siteurl.org.au/wp-includes/class-wp-role.php on line 75

    The fatal error goes away when I disable the Download Manager plugin. Any help would be appreciated.

    #128846

    Nektar Baziotis
    Participant
    This reply has been marked as private.
    #128538

    Stephen O’Connor
    Participant

    When I activate the plugin it adds a Download Manager link and icon to the customer account page within my woocommerce theme. How can I edit this? The problem is it’s directed to a sample page url and I need to control the url and the Link text.

    #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, 6 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.

Viewing 25 results - 826 through 850 (of 1,931 total)