Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: How to implement JComments to Yootheme ZOO 2.0
Pages: 1 [2]   Go Down
  Print  
Author Topic: How to implement JComments to Yootheme ZOO 2.0  (Read 7038 times)
0 Members and 3 Guests are viewing this topic.
ledirlo
Newbie
*

Karma: 0
Offline Offline

Posts: 10


« Reply #15 on: November 01, 2011, 05:28:37 »

I'm sorry I took so long I was working etc
well anyway more searching the forums would have led you to the same answers as me : I didn't post the ZOO PLUGIN for JCOMMENTS that is somewhere else on this website and that you need to put into your jcomments plugins folder ...



really sorry pals I have been working on things without getting answer either on other forums it's a pain in the $ss
I hope it all works somehow anyway now

* com_zoo.plugin.php (0.98 KB - downloaded 60 times.)
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #16 on: November 01, 2011, 17:25:26 »

Replace:
Code: (php)
function getObjectLink($id) {
$link = 'index.php?option=com_zoo&view=item&item_id='. $id;
require_once(JPATH_SITE.DS.'includes'.DS.'application.php');
$component = & JComponentHelper::getComponent('com_zoo');
$menus = & JSite::getMenu();
$items = $menus->getItems('componentid', $component->id);
if (count($items)) {
$link .= "&Itemid=" . $items[0]->id;
}
$link = JRoute::_($link);
return $link;
}
with:
Code: (php)
function getObjectLink($id) {

        $link = '';

$zooConfig = JPATH_ADMINISTRATOR.'/components/com_zoo/config.php';

if (is_file($zooConfig)) {
require_once($zooConfig);

$zooApp = App::getInstance('zoo');
$item = $zooApp->table->item->get($id);

if (!empty($item)) {
$link = JRoute::_($zooApp->route->item($item));
}
}
return $link;
}

Because this more correct way to build link to Zoo's item.

Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: 1 [2]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: How to implement JComments to Yootheme ZOO 2.0
 
Jump to: