1. shonn piersol
  2. Plugins
  3. Saturday, 06 July 2013
  4.  Subscribe via email
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;
}
}
?>
Responses (4)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now

Last questions

Veranstaltung im Frontend sichtbar obwohl nicht ve
Hallo, folgendes Problem stellt sich mir: Wenn ich eine Veranstaltung dupl...
4 Replies
Posted on Friday, 09 February 2024
Suche bei der Matukio - Fehler Ö Ä Ü..
Hallo, evtl. könnt ihr mir weiterhelfen. Bei mir funktioniert die suche bei ...
3 Replies
Posted on Wednesday, 15 May 2024
  • New
  • When is CComment compatible with Joomla 5?
    When is CComment compatible with Joomla 5?...
    4 Replies
    Posted on Tuesday, 05 December 2023
    • #CComment
    • #Joomla 5
    _MATUKIO_NO_EVENTS appears in the frontend if no e
    Hello, there ist still the problem, that on the frontpage appears COM_MATUKIO...
    2 Replies
    Posted on Sunday, 12 May 2024
  • New
  • verschiedene URL's für Kursübersicht einer Kategor
    Hallo, ich habe eine Frage in Bezug auf SEO: ein externer Spezialist macht die...
    3 Replies
    Posted on Monday, 29 April 2024