Disqus K2 Issue ?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Sep 21, 2014 8:58 am
Reply with quote
Report this post
Hello !

I've checked the forum and saw different similar issues with no real answer.

I've installed Disques in different websites and Gavick Template. But for some reason in mine it's not wrking

http://www.joomgeek.com/blog/dubai-lect ... qus_thread

I see it's downloading but the default comment system is displayed.

What can be wrong ?

Tks a lot !
User avatar
Gold Boarder

GK User
Mon Sep 22, 2014 3:46 pm
Reply with quote
Report this post
Hello,

As I've replied in other topic - currently the Disqus to K2 plugins are not supported.
User avatar
Administrator

GK User
Wed Sep 24, 2014 11:53 am
Reply with quote
Report this post
But it's working on this one that we did also :)

http://www.buggy-adventures.com/blog/20 ... visor.html
User avatar
Gold Boarder

GK User
Fri Sep 26, 2014 11:54 am
Reply with quote
Report this post
Hello

Here is the dev's answer. How do you think we can solve this small issue ?

"I did little fix/update of plugin so when you use default template example:

http://www.joomgeek.com/blog/weekly-rev ... ate=atomic

everything works fine. If "DISQUS_COMMENTS" text is visible in place of counter - there was problem with communicate beetween servers: your and disqus.

But gavick template loads default comment system, so you should ask gavick guys to leave comment's part of template untouched. I think they deleted code for comment plugins. Without template files (send me zip or give server ftp access) I can't say more."
User avatar
Gold Boarder

GK User
Fri Sep 26, 2014 12:32 pm
Reply with quote
Report this post
Hello again,

My mistake - I thought that you are writing about support for the Disqus for K2 plugin in the NSP GK5 module. I'll look for a solution and I will back here with it.
User avatar
Administrator

GK User
Fri Sep 26, 2014 12:35 pm
Reply with quote
Report this post
Please open file html/com_k2/templates/default/item.php and please add before this fragment:

Code: Select all
<?php if($params->get('itemComments') && !JRequest::getInt('print') && ($params->get('comments') == '1' || ($params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)):?>
                           <div class="itemComments" id="itemCommentsAnchor">


the following code:

Code: Select all
<?php if($this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1'))): ?>
  <!-- K2 Plugins: K2CommentsBlock -->
  <?php echo $this->item->event->K2CommentsBlock; ?>
  <?php endif; ?>


That should solve your issue.
User avatar
Administrator

GK User
Fri Sep 26, 2014 1:35 pm
Reply with quote
Report this post
Hello

Done but I still don't see them :(
User avatar
Gold Boarder

GK User
Fri Sep 26, 2014 5:05 pm
Reply with quote
Report this post
Could you send me a PM message with FTP access to your website?
User avatar
Administrator

GK User
Fri Sep 26, 2014 8:55 pm
Reply with quote
Report this post
Done
User avatar
Gold Boarder

GK User
Sun Sep 28, 2014 7:24 am
Reply with quote
Report this post
Hellooooooooo :) Just to be sure. Did you receive it ?

Tks a lot !
User avatar
Gold Boarder

GK User
Mon Sep 29, 2014 11:23 am
Reply with quote
Report this post
Hello,

Yes, I've received it - I will look at this issue today.
User avatar
Administrator

GK User
Mon Sep 29, 2014 9:16 pm
Reply with quote
Report this post
The code seems for me properly, it can be something with settings, unfortunately I cannot check it, because the provided account returns "Login denied! Your account has either been blocked or you have not activated it yet."
User avatar
Administrator

GK User
Mon Sep 29, 2014 9:23 pm
Reply with quote
Report this post
Sorry it was not activated. Now it's ok !
User avatar
Gold Boarder

GK User
Thu Oct 09, 2014 7:37 am
Reply with quote
Report this post
Tks I saw it's working now ! Can I remove the log access ? Btw I've just added .titleComments{display:none;}
.itemCommentsForm {display:none;} to remove the previous form. Is it ok or you think there is a better option to do so ?
User avatar
Gold Boarder

GK User
Thu Oct 09, 2014 8:47 am
Reply with quote
Report this post
The previous form was displayed on your website after activating the Disqus plugin?
User avatar
Administrator

GK User
Thu Oct 09, 2014 9:54 am
Reply with quote
Report this post
yes, no idea why
User avatar
Gold Boarder

GK User
Thu Oct 09, 2014 7:20 pm
Reply with quote
Report this post
In this case please remove the following code from the item.php file in the k2 override:

Code: Select all
<?php if($params->get('itemComments') && !JRequest::getInt('print') && ($params->get('comments') == '1' || ($params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)):?>
                           <div class="itemComments" id="itemCommentsAnchor">
                                    <ul class="itemCommentsList">
                                             <?php foreach ($this->item->comments as $key=>$comment): ?>
                                             <li class="<?php echo ($key%2) ? "odd" : "even"; echo (!$this->item->created_by_alias && $comment->userID==$this->item->created_by) ? " authorResponse" : ""; echo($comment->published) ? '':' unpublishedComment'; ?>">
                                                      <?php if($comment->userImage):?>
                                                      <img src="<?php echo $comment->userImage; ?>" alt="<?php echo JFilterOutput::cleanText($comment->userName); ?>" width="<?php echo $params->get('commenterImgWidth'); ?>" />
                                                      <?php endif; ?>
                                                      <?php if(!empty($comment->userLink)): ?>
                                                      <h3> <a href="<?php echo JFilterOutput::cleanText($comment->userLink); ?>" title="<?php echo JFilterOutput::cleanText($comment->userName); ?>" target="_blank" rel="nofollow"> <?php echo $comment->userName; ?> </a></h3>
                                                      <?php else: ?>
                                                      <h3> <?php echo $comment->userName; ?> </h3>
                                                      <?php endif; ?>
                                                      <a class="commentLink" href="<?php echo $this->item->link; ?>#comment<?php echo $comment->id; ?>" name="comment<?php echo $comment->id; ?>" id="comment<?php echo $comment->id; ?>"> <?php echo JText::_('K2_COMMENT_LINK'); ?> </a><span> <?php echo JHTML::_('date', $comment->commentDate, JText::_('DATE_FORMAT_LC2')); ?> </span>
                                                      <p> <?php echo $comment->commentText; ?></p>
                                                      <?php if($this->inlineCommentsModeration || ($comment->published && ($this->params->get('commentsReporting')=='1' || ($this->params->get('commentsReporting')=='2' && !$this->user->guest)))): ?>
                                                      <span class="commentToolbar">
                                                      <?php if($this->inlineCommentsModeration): ?>
                                                      <?php if(!$comment->published): ?>
                                                      <a class="commentApproveLink" href="<?php echo JRoute::_('index.php?option=com_k2&view=comments&task=publish&commentID='.$comment->id.'&format=raw')?>"><?php echo JText::_('K2_APPROVE')?></a>
                                                      <?php endif;?>
                                                      <a class="commentRemoveLink" href="<?php echo JRoute::_('index.php?option=com_k2&view=comments&task=remove&commentID='.$comment->id.'&format=raw')?>"><?php echo JText::_('K2_REMOVE')?></a>
                                                      <?php endif;?>
                                                      <?php if($comment->published && ($this->params->get('commentsReporting')=='1' || ($this->params->get('commentsReporting')=='2' && !$this->user->guest))): ?>
                                                      <a class="commentReportLink modal" rel="{handler:'iframe',size:{x:640,y:480}}" href="<?php echo JRoute::_('index.php?option=com_k2&view=comments&task=report&commentID='.$comment->id)?>"><?php echo JText::_('K2_REPORT')?></a>
                                                      <?php endif; ?>
                                                      </span>
                                                      <?php endif; ?>
                                             </li>
                                             <?php endforeach; ?>
                                    </ul>
                                    <div class="pagination">
                                             <?php echo $this->pagination->getPagesLinks(); ?>
                                    </div>
                           </div>
                           <?php endif; ?>
                           <?php endif; ?>
                           <h3 class="titleComments"> <?php echo JText::_('K2_LEAVE_A_COMMENT') ?> </h3>
                           <?php if($params->get('commentsFormPosition')=='below' && $params->get('itemComments') && !JRequest::getInt('print') && ($params->get('comments') == '1' || ($params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
                           <div class="itemCommentsForm">
                                    <?php echo $this->loadTemplate('comments_form'); ?>
                           </div>
                           <?php endif; ?>
                           <?php $user = &JFactory::getUser(); if ($params->get('comments') == '2' && $user->guest):?>
                           <div>
                                    <?php echo JText::_('K2_LOGIN_TO_POST_COMMENTS');?>
                           </div>
                           <?php endif; ?>
User avatar
Administrator

GK User
Thu Oct 09, 2014 7:22 pm
Reply with quote
Report this post
So

> I remove this
> Remove what I did in custom.css

Right ?

Btw can you just let me know how you fix it ? So I can update the dev component and we won't have this issue again :p
User avatar
Gold Boarder

GK User
Thu Oct 09, 2014 11:09 pm
Reply with quote
Report this post
Yes, your CSS code won't be necessary.

It is a fix only for your case - it is not a common solution.
User avatar
Administrator

GK User
Fri Oct 10, 2014 11:14 am
Reply with quote
Report this post
Tks a lot ! But sorry did not find the file you're telling me ...

components/com_k2/controllers ?
User avatar
Gold Boarder

GK User
Sun Oct 12, 2014 11:24 am
Reply with quote
Report this post
Hello

Sorry another issue .. What can be wrong here ? On a new item the comments are not displayed ?

http://www.joomgeek.com/blog/the-top-5- ... asis2.html

:'(
User avatar
Gold Boarder

GK User
Wed Oct 15, 2014 7:23 am
Reply with quote
Report this post
Please check your configuration - if the disqus is displayed on other posts, it must be an issue with your config not with the template.
User avatar
Administrator

GK User
Wed Oct 15, 2014 7:26 am
Reply with quote
Report this post
Weird but better now it's working on all. WOuld you mind to confirm you can see the comments ? on any of the blog post http://www.joomgeek.com/blog/weekly-rev ... iness.html

In any case I do appreciate a lot your support !
User avatar
Gold Boarder

GK User
Wed Oct 15, 2014 7:27 am
Reply with quote
Report this post
Yes, I see the Disqus comments too. It could be some script issue, or temporary problem on the Disqus side.
User avatar
Administrator

GK User
Wed Oct 15, 2014 7:30 am
Reply with quote
Report this post
<3
User avatar
Gold Boarder

GK User
Mon Oct 20, 2014 1:05 pm
Reply with quote
Report this post
I still have some issues :( I made it via a html module. Working a bit but it's ok I think. Tks for your help !
User avatar
Gold Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.