Page 1 of 1
emagus Phocaflow
Posted: 18 Nov 2008, 08:33
by emagus
Hey guys,
I've created a module that let's you scroll through your Phoca-Categories similar like on your Ipod.
Check it out at
http://extensions.joomla.org/component/ ... Itemid,35/
If you like it, please write a review and rate the extension.
Of course I'm always open for your ideas.
Bye
emagus
Re: emagus Phocaflow
Posted: 19 Nov 2008, 02:54
by Jan
Great, looks great, great work

...
I think this can be changed:
$images[$i]['url'] = JRoute::_('index.php?option=com_phocagallery&view=category&id='. $value->id.':'.$value->alias.'&Itemid=51');
because of SEF
e.g. to get the itemid by the following function:
Code: Select all
// Create link (set Itemid)
function getLink( $id )
{
// Set Itemid id, exists this link in Menu?
$menu = &JSite::getMenu();
$itemsCategory = $menu->getItems('link', 'index.php?option=com_phocagallery&view=category&id='.(int) $id );
$itemsCategories= $menu->getItems('link', 'index.php?option=com_phocagallery&view=categories');
if(isset($itemsCategory[0])) {
$itemId = $itemsCategory[0]->id;
$alias = $itemsCategory[0]->alias;
} else if(isset($itemsCategories[0])) {
$itemId = $itemsCategories[0]->id;
$alias = '';
} else {
$itemId = 0;
$alias = '';
}
if ($alias != '') {
$catid_slug = $id . ':' . $alias;
} else {
$db =& JFactory::getDBO();
$query = 'SELECT c.alias'.
' FROM #__phocagallery_categories AS c' .
' WHERE c.id = '. (int)$id;
$db->setQuery( $query );
$catid_alias = $db->loadObject();
if (isset($catid_alias->alias) && $catid_alias->alias != '') {
$catid_slug = (int)$id . ':'.$catid_alias->alias;
} else {
$catid_slug = (int)$id;
}
}
// Category
$link = JRoute::_('index.php?option=com_phocagallery&view=category&id='. $catid_slug .'&Itemid='.$itemId);
return ($link);
}
I will paste it to demo site too, so hope this will public your extension too (I will vote surely for it on Joomlacode.org)
Jan
Re: emagus Phocaflow
Posted: 19 Nov 2008, 03:11
by Jan
For me it works, I have changed:
FROM:
JRoute::_('index.php?option=com_phocagallery&view=category&id='. $value->id.':'.$value->alias.'&Itemid=51');
TO:
$images[$i]['url'] = modImageFlowHelper::getLink($value->id);
see:
https://www.phoca.cz/phocagallery/demo/i ... ies-emagus
Jan
Re: emagus Phocaflow
Posted: 24 Nov 2008, 01:26
by emagus
Hey Jan,
thanks for the info.
I will include that in my next release.
One suggestion: you should set "Thumbnailsize" to large.
Right now, Phocaflow uses the medium Phocagallery-Thumbnails from your gallery and scales them up which results in bad quality.
If you use Thumbnailsize large, it will scale them down, which results in much better quality (at least in firefox).
(For Optimal quality in firefox and IE you need to have thumbnailsizes, that exactly match the calculated Phocaflow thumbnailsizes. So you'd either have to use differnt size in your Phocagallery or adjust the css of the Phocaflow module.)
I will use thumbnailsize: large as default in my next release.
Goodnight
Simon
PS: thanks for your review+vote!!

Re: emagus Phocaflow
Posted: 24 Nov 2008, 19:05
by Jan
Ok
Re: emagus Phocaflow
Posted: 02 Jan 2009, 19:53
by emagus
Hey everybody.
I released a new version of the emagus Phocaflow module.

I added the changes you provided, Jan. Thanks again!
It should be SEF capable now. Please test and report any problems, everybody!
Sorry it took me so long, but I don't have much time to do this.
So if you update your demo site, please add the new version. Thanx!
Bye
Simon
Re: emagus Phocaflow
Posted: 02 Jan 2009, 22:06
by Jan
Great, thank you...