Welcome to TalkGraphics.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2017
    Posts
    7

    Default Div, Place holder and Expand

    I am adding a comments section to my site, I already have chosen Disqus as the provider and have set everything up. When i add the HTML to a placeholder i can obviously stretch the placeholder. When i test by adding comments they disappear when they exceed the placeholder lenght. Is there a way to force the place holder to expand or do i need to add something to the html to create a scrol bar? Id rather have the comment section be able to expand downward as needed

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,486

    Default Re: Div, Place holder and Expand

    Welcome to TalkGraphics. Stand by. Someone will have the answer. (It just won't be me).

  3. #3
    Join Date
    Dec 2017
    Posts
    7

    Default Re: Div, Place holder and Expand

    Thanks, gwpriester

  4. #4
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,895

    Default Re: Div, Place holder and Expand

    Welcome to TG. No, there isn't a way to expand the placeholder to fit the content as far as I'm aware. You are then left with needing to add scrollbars to the placeholder.

    Apply scrolling=yes as below:

    <iframe src="slider-1.htm" width=600 height=600 scrolling=yes frameborder=0 marginheight=0 marginwidth=0></iframe>
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  5. #5
    Join Date
    Dec 2017
    Posts
    7

    Default Re: Div, Place holder and Expand

    Egg -

    How do i Add Div data into that ? for example here is the div code

    <div id="disqus_thread"></div>
    <script>
    (function() { // DON'T EDIT BELOW THIS LINE
    var d = document, s = d.createElement('script');
    s.src = 'https://EXAMPLE.disqus.com/embed.js';
    s.setAttribute('data-timestamp', +new Date());
    (d.head || d.body).appendChild(s);
    })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>

  6. #6
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,895

    Default Re: Div, Place holder and Expand

    Hi again, Ive no knowledge of Disqus but here hopefully is an example file with disqus content (I believe) embedded in a placeholder.

    Preview to test.

    Here's an example of the placeholder code:

    <iframe src="https://blog.disqus.com/poll-who-will-win-the-world-cup" width=800 height=600 scrolling=yes frameborder=0 marginheight=0 marginwidth=0></iframe>
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #7
    Join Date
    Dec 2017
    Posts
    7

    Default Re: Div, Place holder and Expand

    Unfortunately that not quite what I was looking for, The div code provides the comments section for the website. I've attached a screenshot and as you can see the ribbon is cut off.
    I guess my question is can I use an Iframe and the code together? or is there a way to add a scroll to the code for example.

    <iframe src="

    <div id="disqus_thread"></div>
    <script>

    /**
    * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
    * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalco...on-variables*/
    /*
    var disqus_config = function () {
    this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
    this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
    };
    */
    (function() { // DON'T EDIT BELOW THIS LINE
    var d = document, s = d.createElement('script');
    s.src = 'https://EXAMPLE.disqus.com/embed.js';
    s.setAttribute('data-timestamp', +new Date());
    (d.head || d.body).appendChild(s);
    })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>

    "width=800 height=600 scrolling=yes frameborder=0 marginheight=0 marginwidth=0></iframe>

    Click image for larger version. 

Name:	Capture.jpg 
Views:	66 
Size:	23.1 KB 
ID:	121504
    Last edited by wknight4627; 06 July 2018 at 03:32 AM. Reason: add screen shot

  8. #8
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,895

    Default Re: Div, Place holder and Expand

    As I stated, I've no knowledge of disqus. Can you supply a url of the disqus page you want embedded in an iframe?
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •