function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_alberghi'); $_Itemid = intval($_Itemid) ? '&Itemid=' . $_Itemid : ''; $link = JoomlaTuneRoute::_('index.php?option=com_alberghi&task=detail&id=' . $id . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_beeheard'); $_Itemid = $_Itemid > 0 ? '&Itemid=' . $_Itemid : ''; $link = JRoute::_('index.php?option=com_beeheard&controller=suggestions&suggestion_id=' . $id . $_Itemid); return $link; }
function getObjectLink($id) { static $_Itemid = null; if (!isset($_Itemid)) { if (JCOMMENTS_JVERSION == '1.5') { $needles = array('gid' => (int) $id); if ($item = jc_com_docman::_findItem($needles)) { $_Itemid = $item->id; } else { $_Itemid = ''; } } else { $_Itemid = JCommentsPlugin::getItemid('com_docman'); } } if (JCOMMENTS_JVERSION == '1.0') { $link = JoomlaTuneRoute::_("index.php?option=com_docman&task=doc_details&gid=" . $id . "&Itemid=" . $_Itemid); } else { include_once JPATH_SITE . DS . 'includes' . DS . 'application.php'; $link = 'index.php?option=com_docman&task=doc_details&gid=' . $id; if ($_Itemid != '') { $link .= '&Itemid=' . $_Itemid; } $router = JPATH_SITE . DS . 'components' . DS . 'com_docman' . DS . 'router.php'; if (is_file($router)) { include_once $router; } $link = JRoute::_($link); } return $link; }
function getObjectLink($id) { global $mainframe; if (!isset($GLOBALS['jc_sobi2itemid'])) { $_requestOption = JCommentsInput::getVar('option', ''); $_requestItemid = (int) JCommentsInput::getVar('Itemid', 0); $_Itemid = null; $db =& JCommentsFactory::getDBO(); $query = "SELECT `configValue`" . "\nFROM `#__sobi2_config`" . "\nWHERE `configKey` = 'forceMenuId'" . "\n AND `sobi2Section` = 'general'"; $db->setQuery($query); $forceMenuId = (int) $db->loadResult(); if ($_requestOption == 'com_sobi2' && !$forceMenuId) { $_Itemid = $_requestItemid; } else { $_Itemid = JCommentsPlugin::getItemid('com_sobi2'); } $GLOBALS['jc_sobi2itemid'] = $_Itemid; } $_Itemid = $GLOBALS['jc_sobi2itemid']; if ($_Itemid != null) { $_Itemid = '&Itemid=' . $_Itemid; } else { $_Itemid = ''; } $link = JoomlaTuneRoute::_('index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=' . $id . $_Itemid); return $link; }
public function getObjectLink($id) { // Itemid meaning of our component $_Itemid = JCommentsPlugin::getItemid('com_tracker'); // url link creation for given object by id $link = JRoute::_('index.php?option=com_tracker&view=torrent&id=' . $id . '&Itemid=' . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_projectlog'); $link = "index.php?option=com_projectlog&view=project&project_id=" . $id; $link .= $_Itemid > 0 ? '&Itemid=' . $_Itemid : ''; $link = JRoute::_($link); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_jvideo'); $link = 'index.php?option=com_jvideo&view=watch&id=' . $id; $link .= $_Itemid > 0 ? '&Itemid=' . $_Itemid : ''; $link = JRoute::_($link); return $link; }
function getObjectLink($id) { $link = 'index.php?option=com_jcollection&view=item&id=' . $id; $_Itemid = JCommentsPlugin::getItemid('com_jcollection'); $link .= $_Itemid > 0 ? '&Itemid=' . $_Itemid : ''; $link = JRoute::_($link); return $link; }
function getObjectLink($id) { // Itemid meaning of our component $_Itemid = JCommentsPlugin::getItemid('com_wordbridge'); // url link creation for given object by id $link = JRoute::_('index.php?option=com_wordbridge&task=view&p=' . $id . '&Itemid=' . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_portfolio'); $link = 'index.php?option=com_portfolio&id=' . $id . '&view=item'; $link .= $_Itemid > 0 ? '&Itemid=' . $_Itemid : ''; $link = JRoute::_($link); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_afm'); $db =& JCommentsFactory::getDBO(); $db->setQuery('SELECT cat_id FROM #__afm_files WHERE file_id = ' . $id); $catid = $db->loadResult(); $link = sefRelToAbs('index.php?option=com_afm&task=answer&catid=' . $catid . '&aid=' . $id . '&Itemid=' . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_ice'); $db =& JCommentsFactory::getDBO(); $db->setQuery('SELECT catid, imgid FROM #__icefiles WHERE imgid = ' . $id); $catid = $db->loadResult(); $link = JoomlaTuneRoute::_('index.php?option=com_ice&page=view&imgid=' . $id . '&catid=' . $catid . '&Itemid=' . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_groupjive'); $db =& JCommentsFactory::getDBO(); $db->setQuery('SELECT group_id FROM #__gj_bul WHERE id = ' . $id); $gid = $db->loadResult(); $link = JoomlaTuneRoute::_('index.php?option=com_groupjive&task=showfullmessage&idm=' . $id . '&groupid=' . $gid . '&Itemid=' . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_xfaq'); $db =& JCommentsFactory::getDBO(); $db->setQuery('SELECT catid FROM #__xfaq WHERE id = ' . $id); $catid = $db->loadResult(); $link = JoomlaTuneRoute::_('index.php?option=com_xfaq&task=answer&catid=' . $catid . '&aid=' . $id . '&Itemid=' . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_autoexp'); $db =& JCommentsFactory::getDBO(); $db->setQuery('SELECT mark_id FROM #__autoexp_add WHERE id = ' . $id); $catid = $db->loadResult(); $link = JoomlaTuneRoute::_('index.php?option=com_autoexp&page=show_adds&catid=' . $catid . '&adid=' . $id . '&Itemid=' . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_musicbox'); $db =& JCommentsFactory::getDBO(); $db->setQuery('SELECT catid FROM #__musicboxalbum WHERE id = ' . $id); $catid = $db->loadResult(); $link = sefRelToAbs("index.php?option=com_musicbox&task=view&catid=" . $catid . "&id=" . $id . "&Itemid=" . $_Itemid); return $link; }
function getObjectLink($id) { $db =& JCommentsFactory::getDBO(); $db->setQuery('SELECT folderid FROM #__puarcade_games WHERE id = ' . $id); $fid = $db->loadResult(); $_Itemid = JCommentsPlugin::getItemid('com_puarcade'); $link = JoomlaTuneRoute::_('index.php?option=com_puarcade&fid=' . $fid . '&gid=' . $id . '&Itemid=' . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_jportfolio'); $db =& JCommentsFactory::getDBO(); $db->setQuery('SELECT catid FROM #__jportfolio_projects WHERE id = ' . $id); $catid = $db->loadResult(); $link = sefRelToAbs('index.php?option=com_jportfolio&catid=' . $catid . '&project=' . $id . '&Itemid=' . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_myblog'); $db =& JCommentsFactory::getDBO(); $db->setQuery("SELECT permalink FROM #__myblog_permalinks WHERE contentid='{$id}'"); $permalink = $db->loadResult(); $link = JoomlaTuneRoute::_('index.php?option=com_myblog&show=' . $permalink . '&Itemid=' . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_yellowpages'); $db =& JCommentsFactory::getDBO(); $db->setQuery('SELECT catid FROM #__jyp_entries WHERE id = ' . $id); $catid = $db->loadResult(); $link = sefRelToAbs('index.php?option=com_yellowpages&Itemid=' . $_Itemid . '&task=view&catid=' . $catid . '&id=' . $id); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_javoice'); //get type_id $db =& JFactory::getDBO(); $db->setQuery('SELECT voice_types_id FROM #__jav_items WHERE id = ' . $id); $type_id = $db->loadResult(); $link = JRoute::_('index.php?option=com_javoice&view=items&layout=item&cid=' . $id . '&type=' . $type_id . '&Itemid=' . $_Itemid); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_scatalog'); $db =& JCommentsFactory::getDBO(); $id = intval($id); $db->setQuery("SELECT cat_id FROM #__scatalog_catproduct_xref WHERE product_id={$id} LIMIT 1"); $catid = $db->loadResult(); $link = JoomlaTuneRoute::_("index.php?option=com_scatalog&view=product&catid={$catid}&id=" . $id . "&Itemid=" . $_Itemid); return $link; }
function getObjectLink($id) { $db =& JCommentsFactory::getDBO(); $query = 'SELECT cc.id, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(\':\', cc.id, cc.alias) ELSE cc.id END as slug' . ' FROM #__phocagallery_categories AS cc' . ' WHERE cc.id = ' . $id; $db->setQuery($query); $slug = $db->loadResult(); $_Itemid = JCommentsPlugin::getItemid('com_phocagallery'); $link = 'index.php?option=com_phocagallery&view=category&id=' . $slug; $link .= $_Itemid > 0 ? '&Itemid=' . $_Itemid : ''; $link = JRoute::_($link); return $link; }
function getObjectLink($id) { $db =& JCommentsFactory::getDBO(); $query = "SELECT CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug " . "\n FROM #__digifolio_projects as a " . "\n WHERE id = " . $id; $db->setQuery($query); $slug = $db->loadResult(); $link = 'index.php?option=com_digifolio&view=project&id=' . $slug; $_Itemid = JCommentsPlugin::getItemid('com_digifolio'); $link .= $_Itemid > 0 ? '&Itemid=' . $_Itemid : ''; $link = JRoute::_($link); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_flippingbook'); $db =& JCommentsFactory::getDBO(); $id = intval($id); $query = 'SELECT b.id,' . ' CASE WHEN CHAR_LENGTH(b.alias) THEN CONCAT_WS(":", a.id, b.alias) ELSE b.id END as slug,' . ' CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END as catslug' . ' FROM #__flippingbook_books AS b' . ' LEFT JOIN #__flippingbook_categories AS c ON c.id = b.category_id' . ' WHERE b.id = ' . $id; $db->setQuery($query); $row = $db->loadObject(); $link = "index.php?option=com_flippingbook&view=book&id=" . $row->slug . "&catid=" . $row->catslug; $link .= $_Itemid > 0 ? '&Itemid=' . $_Itemid : ''; $link = JRoute::_($link); return $link; }
function getObjectLink($id) { if (JCOMMENTS_JVERSION == '1.0') { $_Itemid = JCommentsPlugin::getItemid('com_mtree'); $link = sefRelToAbs('index.php?option=com_mtree&task=viewlink&link_id=' . $id . '&Itemid=' . $_Itemid); } else { $link = 'index.php?option=com_mtree&task=viewlink&link_id=' . $id; $_Itemid = JCommentsPlugin::getItemid('com_mtree'); $link .= $_Itemid > 0 ? '&Itemid=' . $_Itemid : ''; $link = JRoute::_($link); } return $link; }
function getObjectLink($id) { include_once JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_resource' . DS . 'library' . DS . 'helper.php'; if (class_exists('MEUrl')) { $link = MEUrl::link_record($id); } else { $_Itemid = JCommentsPlugin::getItemid('com_resource'); $link = 'index.php?option=com_resource&controller=article&article=' . $id; $link .= $_Itemid > 0 ? '&Itemid=' . $_Itemid : ''; } $link = JRoute::_($link); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_virtuemart'); if ($_Itemid != 0) { $_Itemid = '&Itemid=' . $_Itemid; } else { $_Itemid = ''; } $db =& JCommentsFactory::getDBO(); $query = "SELECT CONCAT('index.php?option=com_virtuemart&page=shop.product_details&flypage=', c.category_flypage,'&category_id=',c.category_id,'&product_id=', a.product_id, '" . $_Itemid . "' )" . "\n FROM #__vm_product AS a" . "\n LEFT JOIN #__vm_product_category_xref AS b ON b.product_id = a.product_id" . "\n LEFT JOIN #__vm_category AS c ON b.category_id = c.category_id" . "\n WHERE a.product_id = '{$id}'"; $db->setQuery($query); $link = JoomlaTuneRoute::_($db->loadResult()); return $link; }
function getObjectLink($id) { $_Itemid = JCommentsPlugin::getItemid('com_poll'); if (JCOMMENTS_JVERSION == '1.5') { $db =& JCommentsFactory::getDBO(); $db->setQuery('SELECT alias FROM #__polls WHERE id = ' . $id); $alias = $db->loadResult(); $link = 'index.php?option=com_poll&id=' . $id . ':' . $alias; $link .= $_Itemid > 0 ? '&Itemid=' . $_Itemid : ''; $link = JRoute::_($link); } else { $link = sefRelToAbs('index.php?option=com_poll&task=results&id=' . $id . '&Itemid=' . $_Itemid); } return $link; }
function getObjectLink($id) { global $mainframe; $_Itemid = JCommentsPlugin::getItemid('com_vfm'); $link = ''; $vfm_core = JOOMLATUNE_JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_vfm' . DS . 'VFM_Core.class.php'; if (is_file($vfm_core)) { require_once $vfm_core; $db =& JCommentsFactory::getDBO(); $db->setQuery('SELECT filename FROM #__vfm_files WHERE id = ' . $id); $filename = $db->loadResult(); $link = sefRelToAbs('index.php?option=com_vfm&do=view&file=' . VFM_Core::encodePath($filename) . '&Itemid=' . $_Itemid); } return $link; }