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
|
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 |
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. |
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
|
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
|
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 |
Ok.
I see them i my site.
Looks like it's a bug. Does it on my site also. https://www.deanbassett.com |
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 |
https://www.deanbassett.com |
many thanks as always Deano |
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 |
thanks, it worked first time but i'll change it any way |
Rules → http://www.boonex.com/terms |