Posts: 7
Threads: 1
Joined: Apr 2011
2011-04-12, 23:14:30
(This post was last modified: 2011-04-12, 23:17:07 by jones-kelark77.)
Oleg06 Wrote:does not work for some reason your plugin in version 3
http://neowebtime.ru/1/
It doesnt work because its having a javascript conflict you are using alot of javascript libraries and even the noconflict library, even though noconflict solves some issues it doesnt solve everything.
Javascript makes pages slow and break, for a better experience its best to connect and base every script on each other instead of calling libraries all the time.
@RobA, It would be nice if you could make this plugin work with the News Manager plugin, the (% external_comments %) works on pages but not on the articles the news Manager generates. I also wonder if this plugin lists all the comments on the website or just the ones in relation to the article.
Posts: 290
Threads: 26
Joined: Oct 2010
2011-04-13, 01:36:06
(This post was last modified: 2011-04-13, 01:36:32 by Chastin3.)
Oleg06 Wrote:does not work for some reason your plugin in version 3
http://neowebtime.ru/1/
Works fine in my testbed;
http://testbed.cartocopia.com/disqus-test-page/
You are missing a /div for some reason in the injected code.
What other plugins are on that page that could be conflicting?
-Rob A>
Posts: 290
Threads: 26
Joined: Oct 2010
Mehk Wrote:@RobA, It would be nice if you could make this plugin work with the News Manager plugin, the (% external_comments %) works on pages but not on the articles the news Manager generates. I also wonder if this plugin lists all the comments on the website or just the ones in relation to the article.
The comments get tied to a unique page identifier - specifically the page slug. I don't have any experience with the News manager to know how it identified individual news articles on a page. I can load it in my dev site and take a look....
-Rob A>
Posts: 7
Threads: 1
Joined: Apr 2011
2011-04-13, 02:19:10
(This post was last modified: 2011-04-13, 02:25:25 by jones-kelark77.)
RobA Wrote:Mehk Wrote:@RobA, It would be nice if you could make this plugin work with the News Manager plugin, the (% external_comments %) works on pages but not on the articles the news Manager generates. I also wonder if this plugin lists all the comments on the website or just the ones in relation to the article.
The comments get tied to a unique page identifier - specifically the page slug. I don't have any experience with the News manager to know how it identified individual news articles on a page. I can load it in my dev site and take a look....
-Rob A>
I have only started using GS 2 days ago, but I was searching for a way to use GS as a CMS and a blog. There are not many plugins in the extend section of this website that allow you to create a blog, but News manager is one that does the trick, but it would be nice if we could combine this with your External comments plugin that way users of GS would have a solution to get a blog like system with a decent blog function and a good way for people to leave comments.
The news manager plugin seems to write away its XML to root/data/articles.
Posts: 1,928
Threads: 88
Joined: Apr 2010
2011-04-13, 05:46:08
(This post was last modified: 2011-04-13, 07:45:16 by jhondavis.)
Posts: 290
Threads: 26
Joined: Oct 2010
2011-04-14, 01:27:52
(This post was last modified: 2011-04-14, 01:28:38 by Chastin3.)
Oleg06 Wrote:Please Attach and vkontakte, well, please
http://vk.com/developers.php?o=-1&p=Comments
is it possible to somehow attach the language files
Updated in extend to version 0.6 added support for http://livefyre.com/
I have to get an account at VK to access their API documentation, should get to this soon.
I've also started creating a language file.
-Rob A>
Posts: 290
Threads: 26
Joined: Oct 2010
2011-04-14, 03:11:58
(This post was last modified: 2011-04-14, 03:12:22 by Chastin3.)
RobA Wrote:I've also started creating a language file.
Thanks to good documentation in the wiki I've added support for internationalization as of version 0.7 in Extend. Please attach language files and I'll update them in extend.
-Rob A>
Posts: 1,204
Threads: 30
Joined: Jun 2010
Roba: how about a bit more ambitious comment system for GS, hosted per website, not using 3rd party services ? ;>
I know it's a helluva work, and this CMS still needs a really good news/article plugin to make such comment system useful, but developing things for this cms are pushing it forward
Addons: blue business theme, Online Visitors, Notepad
Posts: 290
Threads: 26
Joined: Oct 2010
RobA Wrote:Oleg06 Wrote:Please Attach and vkontakte, well, please
http://vk.com/developers.php?o=-1&p=Comments
is it possible to somehow attach the language files
I have to get an account at VK to access their API documentation, should get to this soon.
-Rob A>
It appears one can not just sign up for VK, it requires an invitation from an existing member.
If you could generate the code for a sample site I can try adding it to the plugin. Note I will also need the detailed API (link on that page but need an account to access).
-Rob A>
Posts: 290
Threads: 26
Joined: Oct 2010
Thanks Oleg - I've added VK support - can you verify?
Also thanks for the Russian translation file!
Connie - Thanks for the German translation file!
Version 0.8 is now uploaded to extend
-Rob A>
Posts: 1,928
Threads: 88
Joined: Apr 2010
Hurrah, it works, everything is cool, thank you very much
http://neowebtime.ru/1/newss/news-06-04-2011?lang=en
Posts: 1
Threads: 0
Joined: Apr 2011
Does it work with php + mysql pages?
For example, my individual pages URLs are:
http://www.example.com/index.php?id=single&idx=3
http://www.example.com/index.php?id=single&idx=4
And I would need separate comment pages on each page.
Posts: 290
Threads: 26
Joined: Oct 2010
The plugin work with the getsimple framework, using the slug as the default unique page identifier, but you can pass in any other item like I show in the news manager example.
So you could use your idx (is this available as a variable in the template?) in this case.
-Rob A>
Posts: 290
Threads: 26
Joined: Oct 2010
Updated in Extend with a Spanish Language file.
Thanks Carlos!
-Rob A>
Posts: 346
Threads: 27
Joined: Sep 2010
Hello RobA - thanks again for this plugin. It's been working wonders for me with my site, and is probably the best integration of comments I've used for the site too
Just wanted to point out a glitch that occurs when a particular event happens. If your page title has inverted commas (') then the script doesn't output the comments box or any comments. You simply get the 'blog comments powered by Disqus' link at the bottom of the page.
Example page
I know that it is the comma that is the cause of the script breaking, because when I remove it, the page displays the box just fine (like here). Is there a way that this can be patched, or should users simply avoid using the character in their page titles with the script?
Thanks again.
Posts: 290
Threads: 26
Joined: Oct 2010
2011-06-06, 06:20:32
(This post was last modified: 2011-06-06, 06:21:04 by Chastin3.)
Angryboy Wrote:Hello RobA - thanks again for this plugin. It's been working wonders for me with my site, and is probably the best integration of comments I've used for the site too
Just wanted to point out a glitch that occurs when a particular event happens. If your page title has inverted commas (') then the script doesn't output the comments box or any comments. You simply get the 'blog comments powered by Disqus' link at the bottom of the page.
Example page
I know that it is the comma that is the cause of the script breaking, because when I remove it, the page displays the box just fine (like here). Is there a way that this can be patched, or should users simply avoid using the character in their page titles with the script?
Thanks again.
Good catch.
Right before this line [95]:
Code: $new_content = "\n<!-- START: external_coments plugin embed code -->\n";
add in:
Code: $PostID = addslashes($PostID);
$PageURL = addslashes($PageURL);
$PageTitle = addslashes($PageTitle);
This should escape any single quotes, double quotes or backslashes and make the javascript work.
(It shouldn't break any old discusID's either)
Type this and let me know...
-Rob A>
Posts: 346
Threads: 27
Joined: Sep 2010
Perfecto. Thanks once again!
Posts: 290
Threads: 26
Joined: Oct 2010
Quote:Right before this line [95]:
Code: $new_content = "\n<!-- START: external_coments plugin embed code -->\n";
add in:
Code: $PostID = addslashes($PostID);
$PageURL = addslashes($PageURL);
$PageTitle = addslashes($PageTitle);
This should escape any single quotes, double quotes or backslashes and make the javascript work.
(It shouldn't break any old discusID's either)
Type this and let me know...
-Rob A>
I've updated extend to include this change.
-Rob A>
Posts: 1,928
Threads: 88
Joined: Apr 2010
Posts: 290
Threads: 26
Joined: Oct 2010
Oleg06 Wrote:what code to embed in a news manager? http://testbed.cartocopia.com/news/?arti...48b965f950
I modified the news manager plugin to call this one. Here is the code I used:
Code: /*******************************************************
* @function show_article
* param $id - unique article id
* param $excerpt - if TRUE, print only a short article summary
* @action prints the article with given id on theme/site page
*/
function show_article($id, $excerpt=FALSE) {
$file = ARTICLEDATA . $id . '.xml';
$data = getXML($file);
if (!empty($data)) {
$date = $data->date;
$title = stripslashes(htmlspecialchars_decode($data->title, ENT_QUOTES));
$content = stripslashes(htmlspecialchars_decode($data->content, ENT_QUOTES));
if ($excerpt && !empty($data->excerpt)) {
$content = '<p>' . stripslashes(htmlspecialchars_decode($data->excerpt, ENT_QUOTES)) . '</p>';
}
$url = get_page_url(TRUE);
$url .= preg_match('/\?/', $url) ? '&' : '?';
$url .= "article=$id";
?>
<div class="article">
<h3 class="article_title">
<a href="<?php echo $url; ?>"><?php echo $title; ?></a>
</h3>
<p class="article_date">Posted on: <?php echo $date; ?></p>
<div class="article_content"><?php echo $content; ?></div>
<?php
if ($excerpt && !empty($data->excerpt))
echo "<p class=\"article_link\"><a href=\"$url\">Read more</a></p>";
elseif (!$excerpt)
get_external_comments($id, $url, $title);
echo "<p class=\"article_meta\"><b>Permalink:</b> <a href=\"$url\">$url</a></p>";
?>
</div>
<?php
} else {
echo '<p>The requested article does not exist.</p>';
}
}
I added the get_external_comments line.
-Rob A>
Posts: 1,928
Threads: 88
Joined: Apr 2010
2011-06-13, 04:33:35
(This post was last modified: 2011-06-14, 02:19:40 by jhondavis.)
I put this line in the new plugin news manager
Code: get_external_comments($id, $url, $title);
and written
Code: Notice: Undefined variable: id in /home/p30318/www/chaga-mushroom.com/plugins/news_manager/inc/site.php on line 128
http://chaga-mushroom.com/0/h/post/hhhh
Posts: 290
Threads: 26
Joined: Oct 2010
Oleg06 Wrote:I put this line in the new plugin news manager
Code: get_external_comments($id, $url, $title);
and written
Code: Notice: Undefined variable: id in /home/p30318/www/chaga-mushroom.com/plugins/news_manager/inc/site.php on line 128
http://chaga-mushroom.com/h/post/hhhh
In the one I provided the code for the parameter is $id.
In the current version it looks like the parameter is now $slug, so try replacing $id with $slug.
-Rob A>
Posts: 1,928
Threads: 88
Joined: Apr 2010
Thanks, it works
Posts: 2
Threads: 0
Joined: Aug 2011
how can I show on my index page, under the news tittle how many comments are in thread?
Posts: 290
Threads: 26
Joined: Oct 2010
Viggo Wrote:how can I show on my index page, under the news tittle how many comments are in thread? It depends on the comment provider - most provide some javascript to do that, but not all.... For example facebook: http://developers.facebook.com/docs/refe.../comments/ The fb:comments-count tag will emit the number of comments on your URL in a <span> tag. Disqus: http://docs.disqus.com/developers/universal/
|