How can I hide content if its not public?

OK, thing is that I have certain groups which are not yet finished and so I selected View: only me, but those are shown on the search results page.

Can this be fixed? can those be totally hidden?

Thank you

Quote · 13 Jan 2015

Probably requires code modifications.

Geeks, making the world a better place
Quote · 13 Jan 2015

 

Probably requires code modifications.

 that's for sure.

If that's not a lot of work for you, would you share the tweak that needs to be done?

Quote · 14 Jan 2015

 

 

Probably requires code modifications.

 that's for sure.

If that's not a lot of work for you, would you share the tweak that needs to be done?

 ok, maybe we can sort this out on a side job

 

Let me know

Quote · 14 Jan 2015

The following change should work :

In modules/boonex/groups/classes/BxGroupsSearchResult.php

Find :

           case 'search':

Just below, add :


           $this->aCurrent['restriction']['public']['value'] = BX_DOL_PG_ALL;

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 14 Jan 2015

The reason that private groups show in the list is so that members that might want to join can ask to join.  If the private groups are hidden, then the group owner/admins will have to invite people to join the group because no one will know the group exists.

Geeks, making the world a better place
Quote · 14 Jan 2015

 

The reason that private groups show in the list is so that members that might want to join can ask to join.  If the private groups are hidden, then the group owner/admins will have to invite people to join the group because no one will know the group exists.

 that's my intention.

People only can see those groups if I invite them. Else is invisible for every one

Quote · 14 Jan 2015

In my previous response, the search will only show groups with public viewing access. If that is not what you want and you need to show all groups except those with "me only" access then use the code change below instead :

 

In modules/boonex/groups/classes/BxGroupsSearchResult.php

 

Find :

 

           case 'search':

 

Just below, add :


           $this->aCurrent['restriction']['public']['value'] = BX_DOL_PG_NOBODY;
           $this->aCurrent['restriction']['public']['operator'] = '!=';

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 14 Jan 2015

 

In modules/boonex/groups/classes/BxGroupsSearchResult.php

 

Find :

 

           case 'search':

 

Just below, add :


           $this->aCurrent['restriction']['public']['value'] = BX_DOL_PG_NOBODY;
           $this->aCurrent['restriction']['public']['operator'] = '!=';

 either way still showing the item as private.

Did it work for you?

Quote · 14 Jan 2015

Sorry, I didn't actually make the change locally. Usually when I post fixes here, I do so based on my knowledge of the script only.

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 15 Jan 2015

The solution provided by modzzz should work fine if you're talking about search results page indeed.

But if you meant some other page, f.ex. m/groups/browse/recent then you have to find the line

case 'recent':

and add those two lines below it.

Or even more if you want to hide private events off all possible pages then put those two lines before the line

switch ($sMode) {

But be careful because there is a chance that you'll not be able to find such groups anywhere yourself unless you're going to keep URLs for such groups as bookmarks.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 20 Jan 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.