Ben Steers

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
in reply to: Licence key invalid when moving to live site #58426

Ben Steers
Member

Thank you. This seems to be working fine now.

in reply to: Amend layout of File List Extended #57862

Ben Steers
Member

Also dropping into a custom page template through the Page Template editor within the WP Download Manager plugin causes a 500 error.
Just not sure exactly what code to copy across within the function, as copying the whole of that class.FileList.php file is not working for me.

in reply to: Amend layout of File List Extended #57860

Ben Steers
Member

Removing code around the file_list_extended section and I either get a 500 error or the shortcode being shown on the page, rather than the actual content it should be showing.

Could you tell me exactly what I would need to override just the [file_list_extended] section of the class.FileList.php file?

I am using <?php echo do_shortcode('[cp_file_list]'); ?> in order to show the content on my file called single.wpdmpro.php

Many Thanks

in reply to: Amend layout of File List Extended #57858

Ben Steers
Member

Okay, I have edited the code, but when dropping that code into the first function I get a 500 error on the page using that new shortcode.

I guess I do not need some of the code, like the opening <?php
Is there any other code that I do not need from that file? Or that would cause this 500 error?

in reply to: Amend layout of File List Extended #57834

Ben Steers
Member

Okay. I get that about cache.

The section here about the shortcode I’m still slightly confused about.
There is no [thumb] shortcode within the [file_list_extended] which is where I need to change the image size.
I’m struggling to understand how I can override the $thumb = wpdm_dynamic_thumb($filepath, array(88,88));when using the filter you mentioned earlier add_filter('wdm_before_fetch_template','my_fetch_template',10,1); where we can edit the ‘tag value’ but I’m not certain what this tag value can or needs to be.

in reply to: Amend layout of File List Extended #57824

Ben Steers
Member

But it would load all the assets at full size first time ..?
Isn’t cache an option to check within the options? If so, I don’t think we have that checked.

The site we are building will have many different folders and sets of images for download and will be used by PR staff and journalists, who many only visit download folders once, meaning they wouldn’t make use of the cache and pages would take a long time to load..? Would that be correct?

in reply to: Amend layout of File List Extended #57807

Ben Steers
Member

Hi. I had found this and changed it myself, however it is just a crop of whatever the image file is, so it is still technically loading the full size of the downloadable image which is really bad for performance and loading speed of the page.

So this code can be overridden by this function and creating a new shortcode.
What can be included within the ‘tag value’ – is this something to replace the whole layout of the filelist or just one element of it? (like the $thumb section..?)

in reply to: Amend layout of File List Extended #57678

Ben Steers
Member

Yes.. I know that and have read the docs. However, there doesn’t seem to be a way of actually editing what is displayed within the [file_list_extended] shortcode and the contents of that.

For example, I would like to edit the HTML of this so I can have control of the <div> elements and class names I am styling to. I would also like to control the size of thumbnail it pulls through, as at the moment nothing I do seems to affect the thumbnail size when using [file_list_extended].

in reply to: Amend layout of File List Extended #57646

Ben Steers
Member

Still trying to get this amended by changing templates, both link and page templates and nothing makes any difference…

Viewing 9 posts - 1 through 9 (of 9 total)