Search Results for 'Add Url'

Viewing 25 results - 676 through 700 (of 1,650 total)
  • Author
    Search Results

  • 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


    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.

#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

#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.
#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.
#123005

In reply to: File Cart Is Empty


Vlado Djuricic
Participant
This reply has been marked as private.
#121971

Thank you – this is just what I was after:

add_action('wp_logout', 'wpdm_logout_redirect');
function wpdm_logout_redirect(){
    wp_redirect(home_url(""));
    exit();
}
#121818

Krys Petersen
Participant
This reply has been marked as private.
#121793

Sebastian
Participant

Hi there..

i guess i didn’t understand it right..

– created a dir named download-manager in my child theme dir
– copied the link template in it
– added [link_label] instead of [download_link]

but it doesn’t work..

<!– WPDM Link Template: Default Template –>

<div class=”link-template-default card mb-2″>
<div class=”card-body”>
<div class=”media”>
<div class=”mr-3 img-48″>[icon]</div>
<div class=”media-body”>
<h3 class=”package-title”>[page_link]</h3>
<div class=”text-muted text-small”><i class=”fas fa-copy”></i> [file_count] [txt=file(s)] <i class=”fas fa-hdd ml-3″></i> [file_size]</div>
</div>
<div class=”ml-3″>
[link_label]
</div>
</div>
</div>
</div>


Nayeem Riddhi
Moderator

Hi,

1. For Opening file instead of downloading you have an option in the Settings > Basic Settings under the File Download option Open In Browser.
2. For pdf viewer, you can follow this add on doc, https://www.wpdownloadmanager.com/download/wordpress-pdf-viewer/, use doc_preview for your pdf viewer.
3. For opening in a new window, you can follow this doc, https://www.wpdownloadmanager.com/doc/template-files/, by default, you are using link-template-default.php for link template and page-template-default.php for the page template. As documentation, you have to copy the file in the theme directory naming a folder called download-manager, then paste it in tpls>page-templates for page template or tpls>link-templates for link template. And you have to replace [download_link] with <a href="[download_url]" class="btn btn-primary" target="_blank">[link_label]</a> in related php file.

Thanks.

#121435

welswebmaster
Participant
This reply has been marked as private.
#121142

Hatch First
Participant
This reply has been marked as private.
#121131

Jory Hogeveen
Participant

Hi Nayeem,

The error you are referring to is fixed, this is actually unrelated to the issue from this topic.
This is an AJAX call to add a view count to the package.
This is also unrelated to this plugin as it is part of the Download Manager core plugin.
It’s adding index.php in the URL and this is forbidden by a lot of servers due to security. Also, adding this is not needed.
I’ve made a patch but can’t find Download Manager free plugin on GitHub, where can I provide the patch?

Back to topic.

I’ve searched more in depth and found an issue, probably Gravity Forms specific.
GravityForms handles form submissions in the WordPress wp hook. See plugin file gravityforms.php in root on line 176 (add_action( 'wp', array( 'GFForms', 'maybe_process_form' ), 9 );)

The problem is that Download Manager handles form lock in the WordPress init hook, which is run before the wp hook.
See file: /libs/class.Apply.php line 30 (add_action('init', array($this, 'wpdmIframe'));).

By the time WPDM_FormLock::gravityforms_html() is called the wp hook isn’t run yet so no form handling is done by GravityForms.
This is the reason the form keeps displaying without processing any submissions.

I’ve reproduced this issue over and over again on a completely fresh local installation with only Download Manager, WPDM Form Lock and Gravity Forms active on a default WordPress theme.
My guess is that you are testing locally with an outdated GravityForms version. Please make sure you are up to date.

Jory

  • This reply was modified 5 years, 4 months ago by Jory Hogeveen. Reason: File references
Viewing 25 results - 676 through 700 (of 1,650 total)