Photo Albums on homepage

We recently got a request from one of our customers that they would like to display "Photo Albums" block on homepage instead of most recent Photos. This made total sense to us as well because it's better to display "Photo Albums" if the site has lot of photos. We applied the fix for the customer and thought of sharing with others here as well who might have the same need:

Backup your database

Run this SQL query via php admin or through admin panel -

INSERT INTO `sys_page_compose` (`Page`, `PageWidth`, `Desc`, `Caption`, `Column`, `Order`, `Func`, `Content`, `DesignBox`, `ColWidth`, `Visible`, `MinWidth`) VALUES ('index', '998px', 'Photo Albums', '_bx_photos_albums', 1, 1, 'PHP', 'return BxDolService::call(''photos'', ''get_profile_albums_block'', array($this->oProfileGen->_iProfileID), ''Search'');', 1, 34, 'non,memb', 0);


Regards,

Armaan

Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP
Quote · 23 Jan 2012

Thanks for sharing Armaan...and by the way...your mod I purchased is still working great. Thanks again!

Jeremy
Quote · 25 Feb 2012

 

Thanks for sharing Armaan...and by the way...your mod I purchased is still working great. Thanks again!

Nothing beats customer satisfaction and that's our no.1 priority as well, glad you are happy with our product :)

Thanks

Armaan

Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP
Quote · 25 Feb 2012

Sorry guys but this isnt working with my dolphin site

 

I have added the query as you said but its not showing me any thing

 

return BxDolService::call('photos', 'get_profile_albums_block', array($this->oProfileGen->_iProfileID), 'Search');

Quote · 5 Mar 2012

 

Sorry guys but this isnt working with my dolphin site

 

I have added the query as you said but its not showing me any thing

 

return BxDolService::call('photos', 'get_profile_albums_block', array($this->oProfileGen->_iProfileID), 'Search');

 You will need to block from "inactive" to "active" section by going to admin panel->builders=>page blocks->homepage

 

Regards

Armaan

Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP
Quote · 5 Mar 2012

Hi Armaann,

 

they are active see attachment

 

sorry the language is in german but the functions are the same

 

 

active-block.JPG · 21.4K · 272 views
Quote · 6 Mar 2012

Pls dont ask me why but now its working :(

 

thanks for you promt response ;)

Quote · 6 Mar 2012

Now its me again

 

one more question how can you change the code so you only show the Public Albums from members?

 

is it this code?

 

('index', '998px', 'Photo Albums', '_bx_photos_albums', 1, 1, 'PHP', 'return BxDolService::call(''photos'', ''get_profile_albums_block'', array($this->oProfileGen->_iProfileID), ''Search'');', 1, 34, 'non', 0);

Quote · 6 Mar 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.