Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
External Comments Plugin
#1
EDIT: Now in Extend: http://get-simple.info/extend/plugin/ext...enting/73/

Supports the following 3rd party commenting:
Language files Included:
  • English
  • German
  • Russian
  • Spanish


Quote: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>
Reply
#2
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...
My Github Repos: Github
Website: DigiMute
Reply
#3
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!
Reply
#4
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>
Reply
#5
After saving the settings
Code:
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
Reply
#6
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>
Reply
#7
Excellent, worked, but apparently did not need to insert <% disqus %>, but (% disqus %)
http://neowebtime.ru/01/bbb
thanks, useful plugin
Reply
#8
something I can not paste the template code http://neowebtime.ru/01/bbb
Reply
#9
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:

Code:
<?php disqus_print(); ?>

PS Hehe, I had also began working in something like this but with IntenseDebate comments instead of Disqus...
Reply
#10
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:

Code:
<?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
Code:
<?php get_disqus(); ?>

will echo the code.

EDIT: now in extend - see first post for link

-Rob A>
Reply
#11
Awesome!
Reply
#12
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>
Reply
#13
Code:
Fatal error: Call to undefined function get_disqus() in /home/cp068800/public_html/neowebtime.ru/01/theme/Default_Simple/template.php on line 84
Code:
Fatal error: Call to undefined function disqus_print() in /home/cp068800/public_html/neowebtime.ru/01/theme/Default_Simple/template.php on line 84
Reply
#14
Oleg06 Wrote:
Code:
Fatal error: Call to undefined function get_disqus() in /home/cp068800/public_html/neowebtime.ru/01/theme/Default_Simple/template.php on line 84
Code:
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:
Code:
<?php get_disqus(); ?>

Did you upload version 0.2?

-Rob A>
Reply
#15
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:
Code:
(% external_comments %)
And to insert it in a template use:
Code:
<?php get_external_comments(); ?>
(currently, the page at http://testbed.cartocopia.com/disqus-test-page/ is showing IntenseDebate comments)

-Rob A>
Reply
#16
Version: 0.3
After clicking on the link modules

Code:
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
Reply
#17
Oleg06 Wrote:After clicking on the link modules

Sorry Oleg - I do not anderstand what you mean.

-Rob A.
Reply
#18
Sorry, the link Plugins
Code:
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
Reply
#19
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>
Reply
#20
Yes, I tried to install the plugin from http://getsimplethemes.com/gst-themesettings/
I deleted it and now everything works well, thanks
Reply
#21
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
My Github Repos: Github
Website: DigiMute
Reply
#22
thanks, helped :-)
Reply
#23
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.
Reply
#24
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 Wink

-Rob A>
Reply
#25
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/refe.../comments/
http://vk.com/developers.php?o=-1&p=Comments
Reply




Users browsing this thread: 2 Guest(s)