Bug with Polls

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?

Quote · 18 Sep 2012

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' :
                    if($iProfileId) {
                        $iRowsLimit  = $this -> _oConfig -> iProfilePagePollsCount;
                        $sOutputCode = $this -> searchProfilePolls($iProfileId, $iRowsLimit, true, false);             
                     }
                     break;

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
Quote · 18 Sep 2012

Thanks Anton, that did it.

Quote · 20 Sep 2012

 Hello

Thanks Anton, that did it.

 You are welcome. :)

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 20 Sep 2012

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?

Quote · 22 Sep 2012

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?

 

Quote · 26 Sep 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.