=== Content Mask === Contributors: alexdemchak Donate Link: http://ko-fi.com/reverendxhynk/ Tags: Embed, Domain Mask, Mask, Redirect, URL Mask Requires at Least: 4.1 Tested Up To: 4.9.7 Stable tag: 1.4.4.1 Requires PHP: 5.6 Author URI: https://xhynk.com/ Plugin URL: https://xhynk.com/content-mask/ License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Embed any external content on a Page, Post, or Custom Post Type without the need to use complicated domain forwarding or domain masks. == Description == [Read More & View Demos Here](https://xhynk.com/content-mask/) = Embed Any Content In Your WordPress Website = Content Mask allows you to embed any external content onto your own WordPress Pages, Posts, and Custom Post types. The end result is similar to setting up a [domain mask](http://www.networksolutions.com/support/what-is-web-forwarding-and-masking/), but the content is embedded into the front end of your website and is fully contained inside your WordPress permalink ecosystem. = Simple 2-Step UI = With a simple 2-Step UI, you can embed any external content into your website, no forwarding, DNS records, or .htaccess rules to mess with. 1. Just enable the Content Mask on any Page, Post, or Custom Post type by clicking on the check mark. 2. Then put in the URL that contains the content you want to embed. It's that simple! = Powerful Embedding and Redirect Options = - Using the Download method (default) will fetch the content from the Content Mask URL, cache it on your website, and replace the current page request with that content. By default, this cache lasts 4 hours - but it can be changed anywhere from "Never Cache" all the way up to "Cache for 4 Weeks". Caching prevents the need for additional requests that slow down your site. - Using the Iframe method will replace the current page request with a full width/height, frameless iframe containing the host URL. This method is ideal if you rely on whitelisted IP/domain names for certain functionality including serving scripts, styles, and images. - Using the Redirect (301) method will simply redirect the visitor to the host URL. = Simple Integrated Vistor Tracking = In the Content Mask admin panel, you can enable tracking for Content Masked pages. This will allow you to see how many visitors are viewing these links. This is ideal for when you need to track acquisition, such as on a Landing Page. - [Views] shows how many times that Content Mask page has been viewed by anybody (even logged in users) - [Non-User] shows how many times it's been viewed by visitors that are _not_ logged in to the website. - [Unique] shows how many times it's been viewed by unique IP addresses. Note: IP addresses are one-way hashed and are not identifiable in any way. = Creating a Content Masked Page = https://www.youtube.com/watch?v=_H7IWFwmVfo?rel=0 = Using the Content Mask Admin Panel = https://www.youtube.com/watch?v=5hEBMKSLHxI?rel=0 = Notes: = - Please confirm you're allowed to utilize and embed the content before embedding any particular URL, don't Content Mask any content you don't have license to share or use. - Content embedded using the Download method is cached using the [WordPress Transients API](https://codex.wordpress.org/Transients_API) for 4 hours by default. If the content on the external URL is updated and you would like a fresh copy, you may just click the "Update" button on the Page, Post, or Custom Post Type to refresh the transient, or click the "Refresh" link in the Content Mask Admin panel. You may also change the cache expiration timer per page anywhere from "Never" to "4 weeks". - You may use the [Transients Manager](https://wordpress.org/plugins/transients-manager/) plugin to manage transients stored with the Download method. All Content Mask related transients contain the prefix "content_mask-" plus a stripped version of the Content Mask URL, such as "content_mask-httpxhynkcom". [Read More About Content Mask](https://xhynk.com/content-mask/) == Frequently Asked Questions == = Can You Show the Header/Footer on Content Masked Pages? = *No*. This is because of how we process page requests, it's not actually possible to do this. Using Content Mask will override the _entire_ page content. = Can I Embed Multiple URLs on One Page? = *No*. There's not currently a way to embed multiple URLs onto a single page. You can embed one URL on one page. = Will Content Mask Overwrite My Page Content? = *No*. Content Mask doesn't permanently alter anything on your website, and the embedded content is only shown on the front-end. When you turn off Content Mask, any page content you had in the editor will still be there. = Something Isn't Loading With the Download Method = Some websites "whitelist" IP addresses for scripts, images, and files to be accessed from. If that's the case, try using the iframe method instead. = Something Isn't Loading with the Iframe Method = Some websites don't allow themselves to be iframed at all. Please reach out to the webmaster for the content you wish to iframe. = Links Aren't Working with the Iframe Method = If your website is secured (with http://), make sure any links on the iframed page are secure as well, as most modern browsers don't allow insecure content (http://) to be loaded into a secure page. == Screenshots == 1. Enable the Content Mask with the Checkmark - Put in the URL of the content you would like to embed. Done! Optionally, choose a different method (Download, Iframe, or Redirect). If using the download method, you may also change the cache duration from never up to 4 weeks (you may refresh the cache at any point manually). 2. The Content Mask Admin Panel shows a list of all Content Mask pages/posts and their current settings. Quickly enable or disable the Content Mask with a single click on the Method icon. The cache may also be refreshed from this page. You may also enabled/disabled Vistor Tracking that shows how many times each Content Masked page has been viewed. Only pages/posts that the current user can edit are displayed. 3. The regular WordPress page content, without Content Mask on. 4. The same WordPress page with Content Mask enabled and set to https://example.com/. You can see the URL has remained the same but the content has been entirely replaced (on the front end only) by the content from https://example.com/ == Changelog == = 1.4.4.1 = * Included the Site Title in the title tag when using the iframe method. = 1.4.4 = * Added an optional page tracking feature that tracks the number of visitors to each Content Masked page. * Fixed a bug where the