×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Ohanah Event System Plugin

Ohanah Event System Plugin 11 years 5 months ago #21599

  • shonn piersol
  • shonn piersol's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 0
First of all, hope you dont take offense that I went with this event system over yours :) . I needed a front end self created event posting system with photos for each event. This system does that well. But it does NOT integrate very easy to comment systems.

I am hoping you can help me as I am a paid subscriber of ccomment.

Here is what others got to work for jcomments. Perhaps you can advise me what to change to make your system POSSIBLY work in this way.

1. Put this at the end of /components/com_ohanah/views/event/tmpl/default.php

$comments = JPATH_SITE . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
	require_once($comments);
	echo JComments::show($event->id, 'com_ohanah', $event->title);
  }

2. make a new file named "com_ohanah.plugin.php" , fill it with the code below and put it in /components/com_jcomments/plugins/

<?php
/**
 * JComments plugin for Ohanah
 *
 * @version 2.3
 * @package JComments
 * @author Sergey M. Litvinov (smart@joomlatune.ru)
 * @copyright (C) 2006-2012 by Sergey M. Litvinov (http://www.joomlatune.ru)
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 **/
 
class jc_com_ohanah extends JCommentsPlugin
{
	function getObjectInfo($id, $language = null)
	{
		$db = JFactory::getDBO();
		$db->setQuery('SELECT title, created_by FROM #__ohanah_events WHERE ohanah_event_id = ' . $id);
		$row = $db->loadObject();
 
		$info = new JCommentsObjectInfo();
 
		if (!empty($row)) {
			$Itemid = self::getItemid('com_ohanah');
			$Itemid = $Itemid > 0 ? '&Itemid='.$Itemid : '';
 
			$info->title = $row->title;
			$info->userid = $row->created_by;
			$info->link = JRoute::_('index.php?option=com_ohanah&task=view&id='.$id.$Itemid);
 
		}
 
		return $info;
	}
}
?>

Ohanah Event System Plugin 11 years 5 months ago #21601

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Shonn,
could you please send me ohanah to This email address is being protected from spambots. You need JavaScript enabled to view it. and I'll create the integration for you next week.
Regards,
Daniel

Ohanah Event System Plugin 11 years 5 months ago #21621

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Schonn,

The problem I have is that - Ohanah relies on the Nooku framework. The nooku framework does something that is generally very cool for developers: when it finds the script tag, it moves it to the head of the document. Now this is good in 99% of the cases, but in our case the script tag should not be touched by Nooku.
In the latest nooku releases one could add a data-inline attribute to the script tag and nooku will leave the script tag alone. Unfortunately ohanah uses the latest stable version of Nooku and not the latest dev. version...

I'll write to ohanah and ask them if they have any idea about that.

Regards,
Daniel

Ohanah Event System Plugin 11 years 5 months ago #21634

  • shonn piersol
  • shonn piersol's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 0
I know they do not have an API, but apparently using the method above for jcomments, someone got it to work. Is the method above a type that is not possible with your component?

Ohanah Event System Plugin 11 years 5 months ago #21643

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
It is possible, but as I wrote above the Nooku framework is doing something that isn't supposed to do, that brakes ccomment.
That is why I currently cannot provide integration with ohanah.
I spoke with Johan Janssens and here is what he told me:

[08.07.2013 16:15:27] Daniel Dimitrov: when is the next framework update expected?
[08.07.2013 16:18:08] Johan Janssens: somewhere in the coming weeks
[08.07.2013 16:18:33] Johan Janssens: we have a major framework update coming that will include all the fixes that needs to be done, end of July probably


Once they publish this update, the ohanah guys will most probably update their software as well and then I can finish writing the plugin.

Regards,
Daniel
  • Page:
  • 1
Time to create page: 0.098 seconds