emagus Phocaflow

Phoca Gallery - image gallery extension
emagus
Phoca Member
Phoca Member
Posts: 15
Joined: 30 Sep 2008, 23:27
Location: Germany
Contact:

emagus Phocaflow

Post 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
emagus - web. design. communication.
www.emagus.eu
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: emagus Phocaflow

Post by Jan »

Great, looks great, great work :wink: ...

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
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: emagus Phocaflow

Post 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
If you find Phoca extensions useful, please support the project
emagus
Phoca Member
Phoca Member
Posts: 15
Joined: 30 Sep 2008, 23:27
Location: Germany
Contact:

Re: emagus Phocaflow

Post 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!! :)
emagus - web. design. communication.
www.emagus.eu
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: emagus Phocaflow

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
emagus
Phoca Member
Phoca Member
Posts: 15
Joined: 30 Sep 2008, 23:27
Location: Germany
Contact:

Re: emagus Phocaflow

Post 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
emagus - web. design. communication.
www.emagus.eu
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: emagus Phocaflow

Post by Jan »

Great, thank you...
If you find Phoca extensions useful, please support the project
Post Reply