Solution: News Manager & External Commenting Working Together - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: Solution: News Manager & External Commenting Working Together (/showthread.php?tid=2781) |
Solution: News Manager & External Commenting Working Together - jsmcgraw - 2012-02-19 In reading through the forums, it seems some of the information out there on this topic is a bit out of date so I thought I'd add my piece. Currently, it is suggested (via combining the information on the External Commenting install page and the support thread) that the following be appended to the /inc/site.php file (at the end of the nm_show_post function) in the News Manager plugin to get things working: Code: get_external_comments($id, $url, $title); However, this results in comments to one post appearing on all the posts. Instead, append this: Code: get_external_comments($slug, $url, $title); Context: Code: <div class="nm_post"> For sites where multiple post excerpts are featured on the news page, getting external commenting working introduces the problem of scads of conflicting comment boxes loading up on a single page. To clean up the mess and have the comment boxes appear only on discrete post pages instead of beneath excerpts, it is necessary to prevent the external comments from loading when the excerpts are generated. To do so, ignore what I've written above and instead append the following to the /inc/site.php file of the News Manager plugin: Code: <?php if ($excerpt==false) echo get_external_comments($slug, $url, $title); ?> Context: Code: # show "go back" link, if required Solution: News Manager & External Commenting Working Together - jsmcgraw - 2012-02-20 Another issue when configuring NewsManager to turn GS into a blog is that the excerpts on the news page (i.e. whatever is configured to be the front page) ignore formatting tags, resulting in a wall-of-text for longer excerpts. To address this, open the NewsManager file /inc/functions.php and remove this line from the nm_create_slug function: Code: $content = strip_tags($content); Before: Code: /******************************************************* After: Code: /******************************************************* Solution: News Manager & External Commenting Working Together - mvlcek - 2012-02-20 jsmcgraw Wrote:Another issue when configuring NewsManager to turn GS into a blog is that the excerpts on the news page (i.e. whatever is configured to be the front page) ignore formatting tags, resulting in a wall-of-text for longer excerpts. To address this, open the NewsManager file /inc/functions.php and remove this line from the nm_create_slug function: This will create invalid HTML code in most cases. Solution: News Manager & External Commenting Working Together - chefbyte - 2012-02-20 This is the issue I have on one of my sites and not found an answer yet to have the [...] as a continuation of the post and also to remove the formatting errors out of it. http://www.peteberry.co.uk Someone come up with the answer and its blog heaven Solution: News Manager & External Commenting Working Together - jsmcgraw - 2012-02-20 Quote:This will create invalid HTML code in most cases. Hmmm... I do see that now... but I've yet to find a browser for which it is a problem so I'll have to revisit later as the greater problem at the moment is lack of formatting. Any suggested alternative? Solution: News Manager & External Commenting Working Together - jsmcgraw - 2012-02-20 This is a Disqus-only fix: To preview a post's comment count on excerpt page/s and at the top of each post, paste the following into your /theme/ThemeName/template.php (or equivalent) file just before the </body> tag: Code: <script type="text/javascript"> Next, add the following where desired to your newsmanager/inc/site.php file: Code: <span class="disqus_comment_count"><a href="<?php echo $url; ?>#disqus_thread" data-disqus-identifier="<?php echo $slug; ?>"> </a></span> Context: Code: /******************************************************* Result: Solution: News Manager & External Commenting Working Together - jsmcgraw - 2012-02-20 mvlcek Wrote:This will create invalid HTML code in most cases. Funny thing is I can see extra <p> tags at the beginning of each excerpt but they have no effect, links and formatting work, and it's even able to pass the W3 Validator. Solution: News Manager & External Commenting Working Together - jsmcgraw - 2012-02-20 chefbyte Wrote:This is the issue I have on one of my sites and not found an answer yet to have the [...] as a continuation of the post I wasn't able to replace the "[...]" at the excerpt's truncation but I did come up with a little workaround to lead readers to the full post at the end of the excerpt. In the NewsManager /inc/site.php file, I added this: Code: <div style="float:right;margin-top:-25px;"> The float & margin put it just below the text on the right hand side while the clearing div & empty paragraph create some whitespace. In context: Code: function nm_show_post($slug, $excerpt=false) { Solution: News Manager & External Commenting Working Together - chefbyte - 2012-02-20 Thanks for the tip, that's added a link to the full article. bit of extra white space now between the posts but I will figure it out when I get second. Solution: News Manager & External Commenting Working Together - declis - 2012-02-24 if you don't want to have the "[...]", you can simply write something else in it or let it empty in "functions.php": Code: /******************************************************* Solution: News Manager & External Commenting Working Together - jsmcgraw - 2012-02-25 declis Wrote:if you don't want to have the "[...]", you can simply write something else in it or let it empty in "functions.php": Indeed. But what I (and I think chefbyte) meant was that we could not replace the [...] with a link to the full post. I could not create a string that would work in the context of the function and had to put it elsewhere. Solution: News Manager & External Commenting Working Together - declis - 2012-02-25 oh yeah, that's right! i tried it also and found your solution here in the thread. everything's working fine (comments count and the "read more" link), thanks! Solution: News Manager & External Commenting Working Together - mintika - 2012-03-01 @jsmcgraw thanks for comments count.working fine Solution: News Manager & External Commenting Working Together - Kovalj - 2012-03-26 Hi there, I have one problem with those two plugins working together. When two or more posts have same tags, facebook coments is shown on all posts. For example if I comment one post with facebook, that comment is apear on all posts with same tag. Can someone help please? RE: Solution: News Manager & External Commenting Working Together - kazu - 2012-12-08 I want thumnail(Picture) system like wordpress. Is it difficult? You have to change control panel , maybe... |