Posts: 290
Threads: 26
Joined: Oct 2010
2011-01-12, 07:21:17
(This post was last modified: 2011-04-30, 04:34:46 by Chastin3.)
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>
Posts: 1,108
Threads: 70
Joined: Aug 2009
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...
Posts: 82
Threads: 7
Joined: Dec 2010
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!
Posts: 290
Threads: 26
Joined: Oct 2010
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>
Posts: 1,927
Threads: 88
Joined: Apr 2010
2011-01-13, 01:06:36
(This post was last modified: 2011-01-13, 01:07:27 by jhondavis.)
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
Posts: 290
Threads: 26
Joined: Oct 2010
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>
Posts: 1,927
Threads: 88
Joined: Apr 2010
Excellent, worked, but apparently did not need to insert <% disqus %>, but (% disqus %)
http://neowebtime.ru/01/bbb
thanks, useful plugin
Posts: 1,927
Threads: 88
Joined: Apr 2010
something I can not paste the template code http://neowebtime.ru/01/bbb
Posts: 3,491
Threads: 106
Joined: Mar 2010
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...
Posts: 290
Threads: 26
Joined: Oct 2010
2011-01-13, 05:28:17
(This post was last modified: 2011-01-13, 05:43:54 by Chastin3.)
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>
Posts: 45
Threads: 12
Joined: Nov 2010
Posts: 290
Threads: 26
Joined: Oct 2010
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>
Posts: 1,927
Threads: 88
Joined: Apr 2010
2011-01-13, 05:47:23
(This post was last modified: 2011-01-13, 05:49:30 by jhondavis.)
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
Posts: 290
Threads: 26
Joined: Oct 2010
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>
Posts: 290
Threads: 26
Joined: Oct 2010
2011-01-13, 07:08:43
(This post was last modified: 2011-01-13, 07:10:35 by Chastin3.)
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>
Posts: 1,927
Threads: 88
Joined: Apr 2010
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
Posts: 290
Threads: 26
Joined: Oct 2010
Oleg06 Wrote:After clicking on the link modules
Sorry Oleg - I do not anderstand what you mean.
-Rob A.
Posts: 1,927
Threads: 88
Joined: Apr 2010
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
Posts: 290
Threads: 26
Joined: Oct 2010
2011-01-14, 02:32:17
(This post was last modified: 2011-01-14, 02:42:11 by Chastin3.)
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>
Posts: 1,927
Threads: 88
Joined: Apr 2010
Yes, I tried to install the plugin from http://getsimplethemes.com/gst-themesettings/
I deleted it and now everything works well, thanks
Posts: 1,108
Threads: 70
Joined: Aug 2009
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
Posts: 1,927
Threads: 88
Joined: Apr 2010
Posts: 45
Threads: 12
Joined: Nov 2010
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.
Posts: 290
Threads: 26
Joined: Oct 2010
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>
Posts: 1,927
Threads: 88
Joined: Apr 2010
2011-04-12, 18:19:09
(This post was last modified: 2011-04-12, 18:20:24 by jhondavis.)
|