Giter Club home page Giter Club logo

cf7-gated-content's Introduction

Contact Form 7 Gated Content

Gate files behind your Contact Form 7 forms.

Description

Contact Form 7 Gated Content is a lead-capture extension for Contact Form 7. This plugin adds options to your CF7 forms to gate access to a file so users don't see a download button until after the form has been successfully submitted. Repeat visitors will be presented with the download button only, so repeat form submissions are not required.

Supported Versions

We support and test against CF7 versions 4.9, 5.0, and 5.1. Earlier or later versions may not behave as expected.

Installation

This section describes how to install the plugin and get it working.

  1. Upload the contents of /contact-form-7-gated-content/ to the /wp-content/plugins/ directory
  2. Activate the Contact Form 7 Gated Content Plugin through the 'Plugins' menu in WordPress

Frequently Asked Questions

What kinds of files can I gate?

Anything that can be uploaded to the WordPress media library.

Can the download button be customized?

Yes! You can customize the output of the download box with CSS, or you can add this snippet to your theme's functions.php file:

function my_content_button($url, $button_text, $button_classes, $content)
{
  return "$button_text";
}

add_filter('wpcf7_gated_content_button', 'my_content_button', 10, 3);

Can I disable the default CSS?

Yes! The default CSS can be disabled on a per-form basis.

Does this secure my files?

No! Gating content does not secure it from outside access. While it does restrict visibility of a download link to those who have completed your form, it does nothing to make the file private. Anyone with the attachment link or a properly formatted cookie will be able to access your file.

Credits

Image Credit: Uehara, Konen, Artist. Secchū Mimeguri. Japan, None. [Between 1900 and 1920] Photograph. https://www.loc.gov/item/2008660511/.


Built by Apsis

apsis

Contact Form 7 Gated Content was built by Apsis Labs. We love sharing what we build! Check out our other libraries on Github, and if you like our work you can hire us to build your vision.

cf7-gated-content's People

Contributors

egreer avatar ncallaway avatar wkirby avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

soulseekah

cf7-gated-content's Issues

Form does not appear, only download button

I have the fields required in setup. However, when I insert the shortcode onto a new page, only the download button appears, which defeats the purpose of gated assets. Please help

Warning: extract() expects parameter 1 to be array

We are receiving this error on our wordpress website when using the plugin:
Warning: extract() expects parameter 1 to be array, string given in /home/smartup3/public_html/wp-content/plugins/cf7-gated-content/cf7_gated_content.php on line 209

[Feature Request] Only the relevant file to be displayed and downloadable

Hi,

I took your plugin for a spin and loved it. However, I don't think the below mentioned scenario is possible. Request you to implement this feture.

I have products uploaded on woocommerce and each product has a different catalog designed for it. I want the user to enter the details before he can download the catalog.

With the current plugin I believe that we can only upload a single file or upload all the 100 catalog files irrespective of the product page the user is viewing.

I want to upload Catalog File A for Product A and Catalog File B for Product B and so on, only the file relevant to the product is shown and downloadable.

Can't attach PDF in "Gated Content" tab

I try to attach a PDF for download in the "Gated Content" tab section in my form. I try pressing the 'Set Gated Content" blue button but nothing happens. Not sure How I can attach a PDF to it.
Screen Shot 2020-03-04 at 12 23 49 PM

error fetching content

I am using contact form 7 gated content on my WordPress site. I have set it up on our DEV instance of the site to test out making a form that has required fields which must be submitted and then the user should see the "Download" link to our gated PDF file. It worked in one browser only (Chrome). On all other tested browsers and across all mobile tests it gives an error that says "error fetching content. please reload the page." After page refresh the download link does appear. I cannot figure out why this error is happening. While I could put a simple note with the form advising users that a reload of page my be needed, I am really not loving having an experience where a user sees an error message. Has anyone else experienced this issue? I'd be happy to share any additional info that could help find a resolution. Thanks!

Spinning Circle

When my users fill out the form they don't get the download. They just get a spinning circle? Any Ideas?

Form not including the download

When I try to create the form in Contact Form 7 one of two things happen when I enable the gated content:

  1. The "Download"button is the only thing that appears, the form doesn't show up.

  2. The form shows up, but there is no download button for the gated content.

Images attached of my current set up.
Screen Shot 2020-10-15 at 11 54 17 AM
Screen Shot 2020-10-15 at 11 54 27 AM
Screen Shot 2020-10-15 at 11 54 36 AM

Logged Administrator

logged in administrator should not see form
how do I get to directly to the see content ?

thank you so much

gated content button showing

Hello,

As per our emails, the issue is also stated here, but i think you've now seen this.

https://wordpress.org/support/plugin/cf7-gated-content/

The 'download button' still shows even if you have not completed all the details.

I'm just getting the details clarified with my web developer as to what versions we are using. I think we are using the latest version of both contact form and wordpress, but he will confirm.

Thanks
sarah

Dowload button color

How do I change the download button color on a Contact Form 7 Gated Content button?

gated content button showing

Hello,

As per our emails, the issue is also stated here, but i think you've now seen this.

https://wordpress.org/support/plugin/cf7-gated-content/

The 'download button' still shows even if you have not completed all the details.

I'm just getting the details clarified with my web developer as to what versions we are using. I think we are using the latest version of both contact form and wordpress, but he will confirm.

Thanks
sarah

Autoscroll on submit

After submitting the form, there is an automatic scroll to the bottom of the page. How can this action be removed? I can’t find an option in the plug-in settings. Should some custom JavaScript code be added?

Gated form - issues downloading PDF with IE11

Hello,

We are seeing some issues with the form when used in IE11. It works in chrome.

It is not consistent, so it worked for me, but not the client.

The form can be found here:

https://sttdedicated.cloud-systems.net/download-datasheet-steamairheater/

The client states...

However, when I want to download a PDF my screen freezes and I can’t even close it with the cross at the top right. I need to go in task manager to do so. I am using Internet Explorer.

Can you take a look please?

Thanks
Sarah

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.