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
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 |
Probably requires code modifications. Geeks, making the world a better place |
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? |
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 |
The following change should work : In modules/boonex/groups/classes/BxGroupsSearchResult.php Find : case 'search': Just below, add :
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
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 |
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 |
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 :
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
In modules/boonex/groups/classes/BxGroupsSearchResult.php
Find :
case 'search':
Just below, add :
either way still showing the item as private. Did it work for you? |
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 |
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 |