used Deanos tools to add block to account page

Hello all, 

I used Deanos Tools to add block to Accounts page. But It cannot be seen on page

Page: Account - Desc: Profile photo switcher block

_bx_photos_photo_switcher_block

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

Can certain blocks not be added to all pages?

Thank you,

account.jpg · 131.2K · 187 views
Quote · 9 Nov 2013

As Deano would state, "not all blocks can be moved."

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 9 Nov 2013

That code is written specifically for the profile page. The block does work on other pages, but must be changed to this.

return BxDolService::call('photos', 'profile_photo_switcher_block', array(array('PID' => (int)$_COOKIE['memberID'])), 'Search');

The reason is $this->oProfileGen->_iProfileID gets the id of the profile being viewed. It is only available on the profile page, so it has to be changed to (int)$_COOKIE['memberID'] to use the id of the logged in member instead.

It also will not look the same on other pages. Why i do not really know. But to get it to look the same you will have to add some css to hide the switcher block above the photo and the name block below the photo.

And yes. Not all blocks will work on any page. In fact, more than 90% of them will not work on other pages.

https://www.deanbassett.com
Quote · 9 Nov 2013

thank you

Quote · 9 Nov 2013
 
 
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.