7.0.9
On your profile you can't set the privacy settings for the polls block, I tested it on the demo site as well. You can every other block, just not the polls block. Is there a fix for this?
7.0.9 On your profile you can't set the privacy settings for the polls block, I tested it on the demo site as well. You can every other block, just not the polls block. Is there a fix for this? |
Hello The issue appears because of the way of how Poll module generates the block for Profile page. But it can be modified. 1. You need to open modules/boones/poll/classes/BxPollModule.php file and do the following. 1.1. Fing serviceGetPolls function and the following code in it
case 'get_profile_polls' : replace $sOutputCode = $this -> searchProfilePolls($iProfileId, $iRowsLimit, true, false); with this one $sOutputCode = $this -> searchProfilePolls($iProfileId, $iRowsLimit, true, false, false);
1.2. Find the following row in the same file function searchProfilePolls($iProfileId, $iLimit = 6, $bUseInitPart = true, $bShowEmptyMsg = true) and replace is with thi one function searchProfilePolls($iProfileId, $iLimit = 6, $bUseInitPart = true, $bShowEmptyMsg = true, $bUseDesignBox = true)
1.3. In searchProfilePolls function find the following line $sOutputCode .= $this -> showSearchResult( _t('_bx_polls_profile'), null, $iLimit, false, 1, true, $bShowEmptyMsg ); and replace it with this one $sOutputCode .= $this -> showSearchResult( _t('_bx_polls_profile'), null, $iLimit, false, 1, $bUseDesignBox, $bShowEmptyMsg );
2. Open Dolphin's database -> sys_page_compose table and find the row with "profile" as Page and "Member's polls block" as Desc. Edit it and enter 1 in DesignBox field. Save it.
3. Clear cache via admin panel -> clean cache block.
4. Test it. I did it on my demo Dolphin 7.0.9 and the issue disappeared. Good luck! :)
Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV |
Thanks Anton, that did it. |
Hello Thanks Anton, that did it. You are welcome. :) Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV |
Anton, When a member has no polls, is the poll block supposed to show on their profile? My member's poll block is there but collapsed, because there is nothing inside it. Is there a way to hide the block if they have no active polls? |
I got the privace issue fixed, but now the collapsed block shows on a member's profile if they don't have any polls. I re-upped the files, and it still exists. The block should not show if there are no polls I assume?
|