From: Philip J. H. <ph...@po...> - 2012-02-28 01:01:18
|
Solved my problem (and moved from IntenseDebate to Disqus): var disqus_identifier = "<?php echo $page->getName()?>"; so every comment is uniquely identified by the wiki page name. This is nice because I put this in my body.tmpl template right after the <CONTENT>: <div id="disqus_thread"></div> <script type="text/javascript"> var disqus_shortname = 'XXXXXXXX'; // required: replace example with your forum shortname var disqus_identifier = "<?php echo $page->getName()?>"; (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> this way even both the regular page and the action=edit version of a page have the same identifier, so comments are maintained consistently. Exactly what I wanted. ID supports unique identifiers in a similar way so you could use this approach with either comment system. http://www.hollenback.net to see in action. Also, is there anyone on this list any more? I'm beginning to feel like the last phphwiki user... P. On Mon, Feb 27, 2012, at 12:03 PM, Philip J. Hollenback wrote: > I'm playing around with using Intense Debate on www.hollenback.net. > I've actually used it for a while but the behavior is annoying. It uses > the page url as the identifier to link a particular comment to a page. > That's annoying with phpwiki since multiple urls can refer to the same > page (for example, the 'thanks for editing' page has a different url > than the regular version of a page. > > That means there are many ways which ID doesn't display the comments for > a page if you use it with phpwiki. > > ID does offer the ability to set a custom identifier for each comment in > the javascript. So, if there were some per-page special phpwiki > identifier I could stick it in the javascript call to ID then I could > uniquely identify the page and fix that. > > So, is there something like PHPWIKP_PAGE_ID that I can use? > > P. > -- > Philip J. Hollenback > www.hollenback.net > @philiph > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > -- Philip J. Hollenback www.hollenback.net @philiph |