thanks, so i describe all my steps
i create file /includes/class_myaddon_seo.php with code
PHP Code:
class vB_Friendly_Url_Category extends vB_Friendly_Url_Paged
{
protected $idvar = 'cat';
protected $idkey = 'id';
protected $titlekey = 'catname';
protected $ignorelist = array('cat','product');
protected $script = 'myaddon.php';
protected $rewrite_segment = 'category';
}
create plugin on hook friendlyurl_resolve_class
PHP Code:
include_once('./includes/class_myaddon_seo.php');
in myaddon.php define
PHP Code:
define('FRIENDLY_URL_LINK', 'articles');
add in .htaccess rules
PHP Code:
ReWriteRule ^category/.* myaddon.php [QSA]
And successfully generate links for example
PHP Code:
$url=$vbulletin->options['bburl'].'/'.fetch_seo_url('category',$categorydata);
And links look as
http://mysite.net/category/id-categoryname
All works good!