Dynamic Content Links

Instructions for Installing links on any website

  • If you need any changes made to these pages, for example, the fonts or colors are wrong, contact us
  • If you are migrating to a new website and need new links, contact us.

Building iframe code: 

You will find your uniqueID in your setup email and it will also be at the end of all your links on your link list page. 
  • Each of the links from your setup email will show different parts of your Dynamic Content/Calculators. 
  • Your content will not display without the uniqueID.
Link URL Example:
https://www.dynamicontent.net/dcv2/cartoon.php?key=uniqueID
  1. Simple Install: in the iframe code below, replace the letters "URL" with the link that you want to see on the page you will add this code to. 
  2. The iframe code has a few settings. 
    • height - if your resizing code does not work contact us, if your website will not allow the resizing code to run you can change this setting.
    • width - it is usually set to 100%
    • scroll bar - change to Yes if you want a scroll bar or if you are having problems with the height or resizing code settings
    • border - add a border
  3. Advanced Install for multiple iframes on a single page: if you have multiple iframes (meaning multiple content URLs, for example, articles and calculators or a list of individual calculators on one page), give each one a different "id".  Each iframe must have a matching script. For example, iframe id of calc1, calc2, and calc3 would need a script id of calc1, calc2, or calc3. If they are on the same page.
    • You will use the "iframe" tag, remote "script" tag and local "script" below.  The "id" of the iframe and the "#id" in the script must match.
##Live code below

<iframe id="s2ccontentframe" frameborder="0" height="600" width="100%" src="URL"  allowtransparency="true" scrolling="no"></iframe>
<script type="text/javascript" src="https://www.dynamicontent.net/js/jquery.iframeResizer1.min.js"></script>

<script type="text/javascript">
( function( $ ) {
if ( $( "#s2ccontentframe" ).length ) {
$('iframe#s2ccontentframe').iFrameSizer({
log                    : false,  // For development
contentWindowBodyMargin: 0,     // Set the default
doHeight               : true,  // Calculates
doWidth                : false, // Calculates
interval               : 50,    // interval in ms to
nablePublicMethods    : true,  // Enable methods
autoResize             : true,  // Triggering resize
callback               : function(messageData)
{ var frame_src = document.getElementById('s2ccontentframe').src;
if((frame_src.indexOf("article.php")> 0) || (frame_src.indexOf("archives.php") > 0))$('html, body').animate({scrollTop: $("#s2ccontentframe").offset().top - 150},800);
}
});
}
} )( jQuery );
</script>

##End live code

Example:
In the example below the Cartoon URL has been placed into the live code. 

The purple code gives instructions to the website in jquery on how to resize the content to fit in your website page. If your content is cut off at the bottom of the page you are missing the purple code. If you add the purple code and it still does not work, your site might not have jquery. To add jquery to your site see Trouble Shooting #3 below. 

Trouble Shooting:

  1. If you place multiple iframes on one page, you will need to have a different "id" for each iframe.  You will need to have the resizing script containing the callback function repeated for each iframe "id" on the page using a unique iframe "id" in each function (e.g. s2ccontentframe, s2ccontentframe2, s2ccontentframe3...)
  2. If you have a content-managed site (like WordPress), please make sure that the iframe resizing script is whitelisted in any security plugins.
  3. If your site does not include jquery, a link to jquery will be required above the code shown in step 1 Simple Install.


Usage Right:
  • The articles that come with Dynamic Content are protected by Federal Copy Right law.  
  • Subscribers of Dynamic Content, CPA Email Newsletter, CPASS Email Manager may publish Service2Client's articles in a monthly printed newsletter to their clients given the publication is less than 2500 prints a month.  
  • Do not resell the articles in Dynamic Content in whole or in part.  
  • Service2Client licenses the use of the photographs/graphics in the articles but does not pass these rights on to our clients.  
  • Do not re-use the photographs/graphics in Dynamic Content.
  • Service2Client owns the license rights to the "Cartoon of the Month", but does not pass this right on to our clients.  Do not re-use or resell the "Cartoon of the Month".
  • BLOGS: Service2Client prohibits the use of our articles in Blogs.  Do not copy and paste our articles into a WordPress or Blog without first getting our permission and paying the license fee or use the Dynamic Post Plugin
  • BLOG License: Service2Client may give use rights of our content in Blogs during the time period that the client has a paid subscription to Dynamic Content, CPA Email Newsletter, or CPASS, Email Manager. Upon cancellation of our services, all copywritten material must be removed from the end user's BLOG.
  • Copyright: Service2Client LLC content is protected by federal copyright law.
  • Photocopying or reproducing this content in any form other than for personal use by Subscriber is strictly prohibited. If you want to use some of this content, contact Service2Client LLC first.

Thank you, please call in or Submit a Ticket or ask for Live Support if you have any questions.
877-251-3273