Keyword

Disqus plugin after k2 content

  • Giuseppe
  • Giuseppe's Avatar Topic Author
  • Offline
  • New Member
More
13 years 11 months ago #89742 by Giuseppe
Disqus plugin after k2 content was created by Giuseppe
HI guys!So here's my problem.. I have installed a disqus plugin (file in attachment) on Joomla 1.5.21 with K2 2.4.1 .. I would that the Disqus form appear in the last position after all things. Look at the image attached please, so you can understand better.How can i do to change disqus plugin position?Thanks in advance!
Attachments:

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #89743 by william white
Replied by william white on topic Disqus plugin after k2 content
The plugin is being called by a k2 event. I think this will determine where its placed. Mabey someone will chime in and tell how to change the plugin to fire in a different place or how to move the event in the item.php file

Please Log in or Create an account to join the conversation.

  • Giuseppe
  • Giuseppe's Avatar Topic Author
  • Offline
  • New Member
More
13 years 11 months ago #89744 by Giuseppe
Replied by Giuseppe on topic Disqus plugin after k2 content
I think this is the code to edit.. how? =)

CODE:

$text = 'text';
if ($article->access <= $user->get('aid', 0)){
if($option == "com_content") {
$this->_path = JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catslug, $article->sectionid));
} elseif($option == "com_k2") {
if($this->isDetailPage()) {
//priority: text->fulltext->introtext
$text = isset($article->text) ? 'text' : isset($article->fulltext) ? 'fulltext' : 'introtext';
} else {
//priority: introtext->text->fulltext
$text = isset($article->introtext) ? 'introtext' : isset($article->text) ? 'text' : 'fulltext';
}
$this->_path = K2HelperRoute::getItemRoute($article->id, $article->catid);
} else {
$this->_path = "#";
}

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #89745 by luis
Replied by luis on topic Disqus plugin after k2 content
Hello, did you find the solution?

Can you share it?

 

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #89746 by diane
Replied by diane on topic Re: Disqus plugin after k2 content
i would love to know where you got the plugin from for k2 and joomla 1.5 i have been searching for months to try and get one, can anyone point me in the right direction as the one i have downloaded only seems to work for normal joomla articles and not k2 articles

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #89747 by Matt Thomas
Replied by Matt Thomas on topic Re: Disqus plugin after k2 content
In case you haven't found it yet, or if someone else comes across this post, there is one from JoomlaWorks at code.google.com/p/joomlaworks/downloads/detail?name=plg_jw_disqusForK2-v1.0_j1.5.zip&can=2&q=

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum