this is very strange

i've got something very strange happening, this is the example, 

in admin i've set the joined groups block to display just 1 so that if i've joined more than 1 group i get View All on the bottom left of the block and the scroll arrows at the bottom on the right, the View All works fine, the problem is the scroll arrows function, if i'm looking at the block on my (or another members) profile page they work as they should, but when i look at the block on my account page and i click the arrow the refresh spinner (or whatever it is called) spins for a second then the whole block just disappears right before my eyes, i've tried this with other joined blocks and they all do the same, i even created a new page in Page Builders and added the blocks to that page using Deano's Tools and they still disappear, they only work correctly on profile pages and no where else, have i got an ajax problem or something or am i just going crazy and hallucinating. 

i'm running 7.1.4. with all cache off

Quote · 29 Jul 2014

I am not understanding where your getting the block from. What block you talking about.

Keep in mind that many blocks in dolphin, if the block is not natively provided in the page builders for that page and you have to copy it from somewhere else to put it there, then there is a risk it won't work. Not all blocks can be copied and have them still work properly.

https://www.deanbassett.com
Quote · 29 Jul 2014

 RE:

have i got an ajax problem or something

 That's a possibility if the block was copied to a page it wasn't designed to be used on.  The block may appear on a page load, but if the page it's on doesn't provide all the necessary functions, it  may not be possible to dynamically load new content into the block.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 29 Jul 2014

 

I am not understanding where your getting the block from. What block you talking about.

 in the Pages Builder there is a Joined Groups block in the Inactive Blocks section for the Profile page and the Account page, as i said when i drag them to the Active Blocks they work fine on a members Profile page but not on a members Account page, as i say, very strange

Quote · 29 Jul 2014

 

That's a possibility if the block was copied to a page it wasn't designed to be used on.

 as i said i did try and create a new page but the block that is on the account page is there by default

Quote · 29 Jul 2014

just went to the dolphin demo site, set the number of groups to show on profile to 1 (as this effects the account page as well), created another group so that the arrows would show, added the joined block to the account page so that i could test it and it's does the same thing, at least i now know it's not my site, it must be a bug if somebody wants to report it because i don't how or even if my membership level allows me too

Quote · 29 Jul 2014

Ok.

I see them i my site.

Looks like it's a bug. Does it on my site also.

https://www.deanbassett.com
Quote · 29 Jul 2014

Ok. Here is the fix.

Edit modules\boonex\groups\classes\BxGroupsModule.php

At about line 389 look for this

function serviceProfileBlockJoined ($iProfileId)

A little further down look for this line within that function.

$o->sUrlStart = getProfileLink($aProfile['ID']) . '?';

Replace that line with this.

if(strpos($_SERVER['REQUEST_URI'], 'member.php') !== false) {
    $o->sUrlStart = 'member.php?';
} else {
    $o->sUrlStart = getProfileLink($aProfile['ID']) . '?';
}

https://www.deanbassett.com
Quote · 29 Jul 2014

Ticket created. http://www.boonex.com/trac/dolphin/ticket/3430

https://www.deanbassett.com
Quote · 29 Jul 2014

many thanks as always Deano

Quote · 29 Jul 2014

Sorry. My replacement code had a bug. I updated the post. The new replacement code is this.

if(strpos($_SERVER['REQUEST_URI'], 'member.php') !== false) {
    $o->sUrlStart = 'member.php?';
} else {
    $o->sUrlStart = getProfileLink($aProfile['ID']) . '?';
}

https://www.deanbassett.com
Quote · 29 Jul 2014

thanks, it worked first time but i'll change it any way

Quote · 29 Jul 2014

Official fix - r18344

Rules → http://www.boonex.com/terms
Quote · 20 May 2015
 
 
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.