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
Re: Div, Place holder and Expand
Welcome to TalkGraphics. Stand by. Someone will have the answer. (It just won't be me).
Re: Div, Place holder and Expand
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:
Quote:
<iframe src="slider-1.htm" width=600 height=600 scrolling=yes frameborder=0 marginheight=0 marginwidth=0></iframe>
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>
1 Attachment(s)
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:
Quote:
<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>
1 Attachment(s)
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>
Attachment 121504
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?