1 (edited by RobA 2011-04-29 14:34:46)

Topic: External Comments Plugin

EDIT: Now in Extend: http://get-simple.info/extend/plugin/ex … enting/73/

Supports the following 3rd party commenting:

Language files Included:

  • English

  • German

  • Russian

  • Spanish


I wrote a quick plugin to integrate disqus commenting into GS.

(This was requested in the plugin forum and I thought would be a nice simple plugin to practice with.)

It is currently active on one page of my test site:

http://testbed.cartocopia.com/disqus-test-page/

It provides a small back end configuration page to specify your discus forum name, and put the disqus script into developer mode for testing on servers that can't be reached by the disqus server.

Just create an account at disqus, set up a site, and paste the short name into the backend.

If a few other people can test it and verify OK, I'll pop it into extend.

-Rob A>

Re: External Comments Plugin

Love it, was also working on one..
Saves me lots of time   8)

Just discovered Disqus a coupe of weeks ago...
much better than trying to write a full comment system on GS...

Currently working on The Matrix Plugin...

Re: External Comments Plugin

As was/is n00dles101, so are we! Working on a Disqus plugin that is.... looking forward to giving this a spin and checking wether or not we can stop development of our plugin. Thanks for sharing!

Re: External Comments Plugin

I'm more and more impressed with disqus.  They have a reply by email feature for comments.

I also created a new GS component with the widget code from their site to list the latest comments in a sidebar box, and added that to the theme template.

Since everything is ajax, it works even with my page caching plugin enabled, too.

-Rob A>

5 (edited by Oleg06 2011-01-12 11:07:27)

Re: External Comments Plugin

After saving the settings

Notice: Undefined index: disqus in /home/cp068800/public_html/neowebtime.ru/01/admin/load.php on line 29

Notice: Undefined index: disqus in /home/cp068800/public_html/neowebtime.ru/01/admin/load.php on line 31


Notice: Undefined index: disqus in /home/cp068800/public_html/neowebtime.ru/01/admin/template/include-nav.php on line 21



Notice: Undefined index: disqus in /home/cp068800/public_html/neowebtime.ru/01/admin/load.php on line 45

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /home/cp068800/public_html/neowebtime.ru/01/admin/load.php on line 45

Notice: Undefined index: disqus in /home/cp068800/public_html/neowebtime.ru/01/admin/load.php on line 53

Warning: include(template/sidebar-.php) [function.include]: failed to open stream: No such file or directory in /home/cp068800/public_html/neowebtime.ru/01/admin/load.php on line 53

Warning: include() [function.include]: Failed opening 'template/sidebar-.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cp068800/public_html/neowebtime.ru/01/admin/load.php on line 53

Re: External Comments Plugin

Oleg06 wrote:

After saving the settings...

No idea.  I deleted everything, including the config file on my system.

I can't get any errors to occur.

Did you save the file as disqus.php?  (thought the filename shouldn't make a difference AFAIK).

I've uploaded a zip of the file here: http://ffaat.pointclark.net/incoming/disqus.zip incase there was a copy/paste problem.

-Rob A>

Re: External Comments Plugin

Excellent, worked, but apparently did not need to insert <% disqus %>, but (% disqus %)
http://neowebtime.ru/01/bbb
thanks, useful plugin

Re: External Comments Plugin

something I can not paste the template code http://neowebtime.ru/01/bbb

Re: External Comments Plugin

This is great Rob!

However, as Oleg points, it doesn't work when inserting the tag in the template. Must be because you're doing the string replacement only in the page contents field....

Suggestion: It might be interesting to have another function to just display (without the string replace thing), so we can insert something like this in our template:

<?php disqus_print(); ?>

PS Hehe, I had also began working in something like this but with IntenseDebate comments instead of Disqus...

10 (edited by RobA 2011-01-12 15:43:54)

Re: External Comments Plugin

Carlos wrote:

This is great Rob!

However, as Oleg points, it doesn't work when inserting the tag in the template. Must be because you're doing the string replacement only in the page contents field....

Suggestion: It might be interesting to have another function to just display (without the string replace thing), so we can insert something like this in our template:

<?php disqus_print(); ?>

PS Hehe, I had also began working in something like this but with IntenseDebate comments instead of Disqus...

Yeah - I had been messing around with index-posttemplate on my server to parse the whole page, but had decided to change it around.

I've added the code so the call

<?php get_disqus(); ?>

will echo the code.

EDIT: now in extend - see first post for link

-Rob A>

Re: External Comments Plugin

Awesome!

Re: External Comments Plugin

Oleg06 wrote:

Excellent, worked, but apparently did not need to insert <% disqus %>, but (% disqus %)
http://neowebtime.ru/01/bbb
thanks, useful plugin

Oops - good catch!

-Rob A>

13 (edited by Oleg06 2011-01-12 15:49:30)

Re: External Comments Plugin

Fatal error: Call to undefined function get_disqus() in /home/cp068800/public_html/neowebtime.ru/01/theme/Default_Simple/template.php on line 84
Fatal error: Call to undefined function disqus_print() in /home/cp068800/public_html/neowebtime.ru/01/theme/Default_Simple/template.php on line 84

Re: External Comments Plugin

Oleg06 wrote:
Fatal error: Call to undefined function get_disqus() in /home/cp068800/public_html/neowebtime.ru/01/theme/Default_Simple/template.php on line 84
Fatal error: Call to undefined function disqus_print() in /home/cp068800/public_html/neowebtime.ru/01/theme/Default_Simple/template.php on line 84

??

Copied right from my template:

<?php get_disqus(); ?>

Did you upload version 0.2?

-Rob A>

15 (edited by RobA 2011-01-12 17:10:35)

Re: External Comments Plugin

Carlos wrote:

PS Hehe, I had also began working in something like this but with IntenseDebate comments instead of Disqus...

Wow! I wasn't aware of that. The only difference is in the java code, so I modified the plugin to support either. 

Also changed the name to "External Comments Plugin" since it isn't limited to Disqus now.

The back-end shows the new calls,  but for reference, to insert comments on individual pages use:

 (% external_comments %) 

And to insert it in a template use:

<?php get_external_comments(); ?>

(currently, the page at http://testbed.cartocopia.com/disqus-test-page/ is showing IntenseDebate comments)

-Rob A>

Re: External Comments Plugin

Version: 0.3
After clicking on the link modules

Notice: Undefined index: functions in /home/cp068800/public_html/neowebtime.ru/01/admin/plugins.php on line 33

Notice: Undefined index: functions in /home/cp068800/public_html/neowebtime.ru/01/admin/plugins.php on line 34

Notice: Undefined index: functions in /home/cp068800/public_html/neowebtime.ru/01/admin/plugins.php on line 35

Notice: Undefined index: functions in /home/cp068800/public_html/neowebtime.ru/01/admin/plugins.php on line 35

Notice: Undefined index: functions in /home/cp068800/public_html/neowebtime.ru/01/admin/plugins.php on line 35

Re: External Comments Plugin

Oleg06 wrote:

After clicking on the link modules

Sorry Oleg - I do not anderstand what you mean.

-Rob A.

Re: External Comments Plugin

Sorry, the link Plugins

Notice: Undefined index: functions in /home/cp068800/public_html/neowebtime.ru/01/admin/plugins.php on line 33

Notice: Undefined index: functions in /home/cp068800/public_html/neowebtime.ru/01/admin/plugins.php on line 34

Notice: Undefined index: functions in /home/cp068800/public_html/neowebtime.ru/01/admin/plugins.php on line 35

Notice: Undefined index: functions in /home/cp068800/public_html/neowebtime.ru/01/admin/plugins.php on line 35

Notice: Undefined index: functions in /home/cp068800/public_html/neowebtime.ru/01/admin/plugins.php on line 35

19 (edited by RobA 2011-01-13 12:42:11)

Re: External Comments Plugin

This error is from the core.  Looks like you installed the plugin wrong?

The plugin code uses $thisfile to get the filename (which is "external_comments" for this one).

This is the same code used in the backend to iterate the plugin information.

Do you have a file in your plugin directory named "functions.<something>"?

-Rob A>

Re: External Comments Plugin

Yes, I tried to install the plugin from http://getsimplethemes.com/gst-themesettings/
I deleted it and now everything works well, thanks

Re: External Comments Plugin

Oleg, when install the plugin from gst you need to copy the functions from the functions.php to you templates functions.php if it exists, other wise copy it to there...

M

Currently working on The Matrix Plugin...

Re: External Comments Plugin

thanks, helped :-)

Re: External Comments Plugin

RobA:  I'm new to the whole plugin creation system, I am utilizing your plugin as a example for creation.  I hope you are okay with it, it's the best documented plugin so far as far as the saving of data goes.

Re: External Comments Plugin

samrocksc wrote:

RobA:  I'm new to the whole plugin creation system, I am utilizing your plugin as a example for creation.  I hope you are okay with it, it's the best documented plugin so far as far as the saving of data goes.

Feel free.  I just made it up as I went along and kept modifying previous plugins I'd created.

Ideally someone will create a plugin class that would take care of all this for us ;)

-Rob A>

25 (edited by Oleg06 2011-04-12 04:20:24)

Re: External Comments Plugin

does not work for some reason your plugin in version 3
http://neowebtime.ru/1/
whether it is possible to attach more facebook and vkontakte
http://developers.facebook.com/docs/ref … /comments/
http://vk.com/developers.php?o=-1&p=Comments