Hi Jan,
I need a little help:
yesterday I created a new image gallery with phoca gallery in a joomla 15 website with all the SEO options ON in Joomla control panel.
Also it seems all works correctly...the only problem is that if I create one category the alias field will remain empty and the links used e.g in an article does not working correctly...
This is not a big problem (I will write the category aliases by hand) but if you have one solution this will be very appreciated.
Thanks for your help.
Eddi
SEF suggestion
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: SEF suggestion
Yes, I will change it in new version, so alias should be added autmatically
Jan
Jan
If you find Phoca extensions useful, please support the project
-
zorzini
- Phoca Member

- Posts: 17
- Joined: 28 Jul 2008, 13:46
Re: SEF suggestion
Thanks a lot for your answer...
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
Brujo
- Phoca Member

- Posts: 49
- Joined: 26 Apr 2009, 13:17
Re: SEF suggestion
Hello, i already installed the 2.2.3 Version of Gallery but my aliases are still empty or only one character in like -
as i wrote in the documentation the alias should be automatically created, but not at my side, i cant also not overwrite or add byself, it juts drops back...
can you give me an hint?
as i wrote in the documentation the alias should be automatically created, but not at my side, i cant also not overwrite or add byself, it juts drops back...
can you give me an hint?
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: SEF suggestion
Hi, I have tested it on my all test sites, and everythink works OK, maybe there are some problems with iconv, try to change the following function in:
administrator\components\com_phocagallery\helpers\phocagallery.php
line 1152
FROM:
TO
Jan
administrator\components\com_phocagallery\helpers\phocagallery.php
line 1152
FROM:
Code: Select all
function getAliasName($name) {
if (function_exists('iconv')) {
$name = preg_replace('~[^\\pL0-9_.]+~u', '-', $name);
$name = trim($name, "-");
$name = iconv("utf-8", "us-ascii//TRANSLIT", $name);
$name = strtolower($name);
$name = preg_replace('~[^-a-z0-9_.]+~', '', $name);
} else {
$name = JFilterOutput::stringURLSafe($name);
if(trim(str_replace('-','',$name)) == '') {
$datenow =& JFactory::getDate();
$name = $datenow->toFormat("%Y-%m-%d-%H-%M-%S");
}
}
return $name;
} Code: Select all
function getAliasName($name) {
$name = JFilterOutput::stringURLSafe($name);
if(trim(str_replace('-','',$name)) == '') {
$datenow =& JFactory::getDate();
$name = $datenow->toFormat("%Y-%m-%d-%H-%M-%S");
}
return $name;
} If you find Phoca extensions useful, please support the project
-
Brujo
- Phoca Member

- Posts: 49
- Joined: 26 Apr 2009, 13:17
Re: SEF suggestion
thanks Jan, this works perfect for me now.
I did some tests it seems it was this line:
thanks Brujo
I did some tests it seems it was this line:
Code: Select all
$name = preg_replace('~[^\\pL0-9_.]+~u', '-', $name);