
Allroses wrote:Okay! We have generated success!!
To successfully use Disqus if you are code retarded there are two ways to do it. You will be using the universal code option in both attempts. One, you can install the Disqus code as is right into your Daily Template. This will generate separate comment threads into all of your archived pages but not on your main page. If you put the Disqus code into indextemplate without changing the var disqus_identifier or the var disqus_url, all of the comments made on the index page will stay on the index page and not get bumped off to their correct updates.
The second way is to do some minor code editing! Specifically this line: var disqus_url = 'http://example.com/permalink-to-page.html';
If you name your files YYYYMMDD.extension (ex. 20110625.jpg) this will work. If not, fuck I dunno? Anyway, Your code will change to: var disqus_url = 'http://userinfo.comicgenesis.com/d/***raw_date***.html'; where userinfo is your comicgen name, right? SO EASY OMG. The raw date tag inserts the correct file name right into all of your daily template and index template pages! It is amazing! So easy!! Make sure to have that line edited in both index and daily templates, and you are SET. (and run a FULL UPDATE in Siteadmin)
An alternative method, if you don't name your files YYYYMMDD, you can TRY to to change the other Disqus ID that attaches to a specific page. The code is here: var disqus_identifier = 'unique_dynamic_id_1234';, but you could replace the entire unique dynamic ID with either the ***raw_date*** tag, or the ***todays_date*** tag. However, I had a little bit of trouble when I tried this first. It could be because in attempting to test it I deleted the most current update, put it back, and ended up confusing the system majorly. If you don't delete your most current updates it MIGHT work, but no guarantee by me. Alternatively, if you know PHP or Javascript, there's some kind of fancy coding you can do, but I'm stupid in that area so this is the way to go for me!

lightbulbs wrote:...Due to that reply I guess I've greatly mistaken what was being talked about in this thread.
Off subject now I think, is it possible to code a site into allowing people to comment on it? Each comic page, on that page having feed back on it? I wouldn't think this to be a matter to question except for the fact our sites use more than one index to work.
lightbulbs wrote:I'm sure that is understood by some but not me. I can't even comprehend how to type that. Such code couldn't be put in either of the indexes because they're consistent. The only guess I have which is likely wrong is putting the code into the image file properties of the file labeled YYYYMMDD.
Embed code
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'example'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
Comment count
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'example'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
Examples for using the comment code script
<a href="http://example.com/article1.html#disqus_thread" data-disqus-identifier="article_1_identifier">First article</a>
<a href="http://example.com/article2.html#disqus_thread">Second article</a>
<a href="http://example.com/" data-disqus-identifier="over-9000">Anchor</a>
<div id="disqus_thread" style="width:600px;text-align:center;vertical-align:middle;">
</div><script type="text/javascript" src="http://disqus.com/forums/YOURDISQUSNAMEGOESHERE/embed.js"></script><noscript><a href="http://YOURDISQUSNAMEGOESHERE.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
Kisai wrote:Disqus just needs a fixed URL, just put the code provided by Disqus into the template page as-is. It's fine.
The way I do it on keenspot sites is just this:
- Code: Select all
<div id="disqus_thread" style="width:600px;text-align:center;vertical-align:middle;">
</div>
Put that where you want the actual DISQUS comments to appear. Adjust css if necessary.
Then at the end of the page (before the body closing tag)
- Code: Select all
<script type="text/javascript" src="http://disqus.com/forums/YOURDISQUSNAMEGOESHERE/embed.js"></script><noscript><a href="http://YOURDISQUSNAMEGOESHERE.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
The only thing you need to take into account is that the "today" page will result in comments for index.html not TODAY day. So you just fix this by putting a link to the /d/ page for TODAY instead. The same works for any other third party commenting. Use ***raw_date*** to get today's date.
lightbulbs wrote:Kisai wrote:Disqus just needs a fixed URL, just put the code provided by Disqus into the template page as-is. It's fine.
The way I do it on keenspot sites is just this:
- Code: Select all
<div id="disqus_thread" style="width:600px;text-align:center;vertical-align:middle;">
</div>
Put that where you want the actual DISQUS comments to appear. Adjust css if necessary.
Then at the end of the page (before the body closing tag)
- Code: Select all
<script type="text/javascript" src="http://disqus.com/forums/YOURDISQUSNAMEGOESHERE/embed.js"></script><noscript><a href="http://YOURDISQUSNAMEGOESHERE.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
The only thing you need to take into account is that the "today" page will result in comments for index.html not TODAY day. So you just fix this by putting a link to the /d/ page for TODAY instead. The same works for any other third party commenting. Use ***raw_date*** to get today's date.
Thank you for replying I thought no one cared to help me fix this dilemma. I've read over your closing comment a few times and still don't understand what it implies. I get the first halve, just not the fix. Could you please clarify it further? Just the second halve, not the first.
Users browsing this forum: No registered users and 1 guest