Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Disqus

Asked Modified Viewed 5,318 times
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
asked
Fusioneer

Here you go mate.

OK sign up here....

http://www.disqus.com/admin/register/

Follow the steps then when you get to the code

Put this code in Admin >>> System >>> Panels and Add New Lower Center Panel

opentable("Disqus");
      echo"  <div id='disqus_thread'></div>
        <script type='text/javascript'>
            /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
            var disqus_shortname = 'phpfusionmodsuk'; // required: replace example with your forum shortname
var disqus_url = 'http://".$settings['site_host'].FUSION_REQUEST."';

            /* * * 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'>comments powered by <span class='logo-disqus'>Disqus</span></a>";

echo "http://".$settings['site_host'].FUSION_REQUEST;
      closetable();


Select display on all pages and include the pages you wish to include it on like /news.php /articles.php etc

You must change....

var disqus_shortname = 'phpfusionmodsuk';


to your site shortname you entered when registering on disqus.
Edited by Craig on 25-11-2012 17:25,
0 replies

10 posts

A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
answered
Senior Member

That is my point...very few (if any) of my members belong to a social network site and I can almost guarantee that they will not join one to be able to post on my site using disqus.

As I have previously stated, if you need to register at disqus or at a social website in order to post as a guest, then I will not be able to use Disqus as a communication device.

Merged on Nov 28 2012 at 12:47:45:
Little by little I'm making progress with this Disqus code. I was able to get it to work using Craig's code in a panel but what is going to happen with that is that the comments will keep going down the main page (I don't want to put it in the lower center panel).

What I have done is taken smokeman's code and entered it into a custom page but all I get is a header with no message box. What step am I missing?
Edited by afoster on 28-11-2012 22:47,
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
answered
Senior Member

That may be my problem smokeman...I have no wheel in my disqus panel. See attached.

If the wheel requires the member to belong to a social network, then I won't be able to use it as most of my members are not part of the social network group and I am sure won't join one to be able to post.
afoster attached the following file:
disqus.jpg [No information available / 26 Downloads]
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Quote

unknown wrote:

@Craig :o it's not completed yet... but you should exceptional treatment for old users :@ !



Sorry that's the way it is and has been for some time, all you have to do is provide a link to your fusion site and your in, no hard at all. :)
0 replies
S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Quote

afoster wrote:
EDIT: I have registered with disqus to add the module to my website, but I have not been able to figure out how to post a comment as a guest. I have set the option in the admin section but it still won't let me post. If anyone has figured this out, let me know because I know my players won't register with disqus to post a comment.


Just click on the little "gear wheel": See attached picture..
smokeman attached the following file:
disqus.gif [No information available / 22 Downloads]
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Provide a link to your PHPFusion site and it will be activated for sure. ;)
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Just disable the PHPFusion comments.
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
answered
Senior Member

Do you have to register with disquis in order to "leave a message", or can you leave a message if you are registered on the website.

EDIT: I have registered with disqus to add the module to my website, but I have not been able to figure out how to post a comment as a guest. I have set the option in the admin section but it still won't let me post. If anyone has figured this out, let me know because I know my players won't register with disqus to post a comment.
Edited by afoster on 25-11-2012 20:45,
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Your welcome!
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Nice we both done it. 2 different methods.
0 replies
S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Hi.

Just register at their site and follow the instructions. It will then look like this: http://www.dev.dvdside.dk/viewpage.ph...page_id=30

When they tell you to add some code before the closing </body> - tag then put it in the file /includes/footer_includes.php as:
?>
  <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = 'phpfusion-tips'; // 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>
<?php

- so the hole file footer_includes now have the content:
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: footer_includes.php
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/

//Add your custom include files for the footer here
?>
  <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = 'phpfusion-tips'; // 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>
<?php
?>


That's it.

Edit: Lol Im getting old - and too slow..
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 10 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
S
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
A
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet