Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
External Comments Plugin
#26
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.
Reply
#27
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>
Reply
#28
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>
Reply
#29
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.
Reply
#30
thanks, facebook works even in the three plugins news
http://neowebtime.ru/1/
http://neowebtime.ru/1/newss/news-06-04-2011?lang=en
http://neowebtime.ru/1/news-1?article=4d9b702b0fdcd
http://neowebtime.ru/1/index.php?id=news...sitem=news
Please Attach and vkontakte, well, please
http://vk.com/developers.php?o=-1&p=Comments
is it possible to somehow attach the language files
Reply
#31
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>
Reply
#32
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>
Reply
#33
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 Wink
Addons: blue business theme, Online Visitors, Notepad
Reply
#34
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>
Reply
#35
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>
Reply
#36
Hurrah, it works, everything is cool, thank you very much
http://neowebtime.ru/1/newss/news-06-04-2011?lang=en
Reply
#37
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.
Reply
#38
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>
Reply
#39
Updated in Extend with a Spanish Language file.

Thanks Carlos!

-Rob A>
Reply
#40
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 Smile

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.
Reply
#41
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 Smile

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>
Reply
#42
Perfecto. Smile Thanks once again!
Reply
#43
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>
Reply
#44
what code to embed in a news manager? http://testbed.cartocopia.com/news/?arti...48b965f950
Reply
#45
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>
Reply
#46
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
Reply
#47
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>
Reply
#48
Thanks, it works Smile
Reply
#49
how can I show on my index page, under the news tittle how many comments are in thread?
Reply
#50
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/
Reply




Users browsing this thread: 2 Guest(s)