Opened 14 years ago

Closed 9 years ago

#712 closed enhancement (wontfix)

Adding Disqus Comments to the MapGuide Trac Instance

Reported by: zspitzer Owned by: sac@…
Priority: normal Milestone:
Component: SysAdmin Keywords: trac
Cc:

Description (last modified by warmerdam)

The MapGuide PSC would like to trial using Disqus comments for the mapguide wiki

It requires the following javascript to be added to the bottom of the template. The disqus_identifier parameter could be set to the wiki page url

Further information is available here http://docs.disqus.com/developers/universal/

<div id="disqus_thread"></div>
<script type="text/javascript">
    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
    var disqus_shortname = 'mapguide'; // required: replace example with your forum shortname

    // The following are highly recommended additional parameters. Remove the slashes in front to use.
    // var disqus_identifier = 'unique_dynamic_id_1234';
    // var disqus_url = 'http://example.com/permalink-to-page.html';

    /* * * 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>

Change History (4)

comment:1 by warmerdam, 14 years ago

Description: modified (diff)
Keywords: trac added

comment:2 by warmerdam, 14 years ago

I'm sorry. I have reviewed the Trac templating stuff a bit but I can't figure out how to substitute the disqus_url values.

I'm going to backburner this. Feel free to investigate how to implement this yourselves and submit stuff to put in the templates directory.

I would also note the existance of a Trac discussion plugin though I haven't tried it.

http://trac-hacks.org/wiki/DiscussionPlugin

comment:3 by strk, 9 years ago

Is this still needed by anyone ? I'd close unless someone is willing to figure out what it takes.

comment:4 by strk, 9 years ago

Resolution: wontfix
Status: newclosed

closing for lack of feedback

Note: See TracTickets for help on using tickets.