Last post 4 hours 44 min ago
Posts last week 110
Average response time last week 29 min
All time posts 67424
All time tickets 10424
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#6100 – I want to see Class API of sh404sef and other document of sh404sef

Posted in ‘Pre-sale questions’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 10 April 2015 09:47 UTC
vinhnx
Hi My Name is Vinh , I want to get support with sh404sef .

1. I want to see Class Diagram , Database Diagram Sh404sef , Helper class ? what type of cache on sh404sef ? is this same with Joomla 3 when i use it with code below:


$cache = JFactory::getCache();
$list = $cache->call(array('mod_slideshowHelper','getList'),$params);
[/code]

2. I have write my component , call it com_product .

- On View List Catalog: I want to rewrite to www.mydomain/catalog-name/

- On View Detail Product: I want to rewrite to www.mydomain/catalog-name/product-name.html

but I got www.mydomain/catalog-name.html and www.mydomain/catalog-name/product-name.html with code below:


<?php
/**
* sh404SEF - SEO extension for Joomla!
*
* @author Yannick Gaultier
* @copyright (c) Yannick Gaultier - Weeblr llc - 2015
* @package sh404SEF
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @version 4.4.8.2409
* @date 2015-04-05
*/
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );

// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig = & Sh404sefFactory::getConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin( $lang, $shLangName, $shLangIso, $option);
if ($dosef == false) return;
// ------------------ standard plugin initialize function - don't change ---------------------------
$view = isset($view) ? $view : null;
$layout = isset($layout) ? $layout : null;
$task = isset($task) ? $task : null;

switch($view){

case 'catalog':
try{
$catid = isset($catid) ? $catid : null;
$catobj = ShlDbHelper::selectObject( '#__categories', array( 'id', 'title'), array( 'id' => $catid));
}
catch(Exception $e)
{
ShlSystem_Log::error( 'sh404sef', '%s::%s::%d: %s', __CLASS__, __METHOD__, __LINE__, $e->getMessage());
}
if($catobj) $title[] = $catobj->title;
shRemoveFromGETVarsList('catid');

break;

case 'product':
try{
$id = isset($id) ? $id : null;
$productobj = ShlDbHelper::selectObject( '#__product', array( 'id', 'title','catid'), array( 'id' => $id));
$catid = $productobj->catid;
$catobj = ShlDbHelper::selectObject( '#__categories', array( 'id', 'title'), array( 'id' => $catid));

}
catch(Exception $e)
{
ShlSystem_Log::error( 'sh404sef', '%s::%s::%d: %s', __CLASS__, __METHOD__, __LINE__, $e->getMessage());
}
if($id){
$title[] = $catobj->title;
$title[] = $productobj->title;
}

shRemoveFromGETVarsList('id');
break;

default:

break;

}

shRemoveFromGETVarsList('option');
shRemoveFromGETVarsList('view');
shRemoveFromGETVarsList('Itemid');
shRemoveFromGETVarsList('lang');


// ------------------ standard plugin finalize function - don't change ---------------------------
if ($dosef){
$string = shFinalizePlugin( $string, $title, $shAppendString, $shItemidString,
(isset($limit) ? @$limit : null), (isset($limitstart) ? @$limitstart : null),
(isset($shLangName) ? @$shLangName : null));
}
// ------------------ standard plugin finalize function - don't change ---------------------------

?>


Can you support me for this problem ? thanks you
Friday, 10 April 2015 10:00 UTC
wb_weeblr
Hi

Thanks for your message. We provide support to our subscribers through our helpdesk.
After logging in, please open a ticket describing as clearly as possible the problem you're experiencing.

Thanks and regards
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.