Hello everyone!
I'm struggling a bit with groups and fans. I have 4 groups set-up. The idea behind this is that only fans of that group can see it's contents (post/ forum/ fotos/ sounds/ videos/ etc).
I also have a few users set-up. In the groups page, all the groups are shown (they are set public). When a member clicks on that link, he will see all group content.
I tried changing the visibility, but then the group doesn't show to anyone. Not even the member/ founder (only in my groups).
I would prefer to have the groups visibility on hidden and that only the fans/ admins can see and use the contents.
Any help would be greatly appreciated!
Christiaan, Dolphin newbie.
|
You want to hide all blocks or some of them? so much to do.... |
Hello Prashank.
I´m not talking about the blocks. But about the actual content (comments/ photos/ forum) of a group. So that member A (fan of group 1) can not see the content of group 2, 3, 4, etc.
What 'm after is that you have to be a fan of a group before you can see the content, comments, photos, forum, etc. of that group. If your not a member the content is not shown.
Is this a more clear description?
|
Dolphin does not properly distinguish between browsing permission and viewing permission. For displaying of items in blocks for browsing purposes, most modules are wrongly checking the viewing permission instead of the browsing permission. The fix below should work and can be similarly applied to other modules. Now you will be able to set the viewing to fans only and the items will still be showing up in the blocks for browsing. When a fan click on a group listing, it will show but when a non-fan click on it they will get an access denied message.
In modules\boonex\groups\classes\BxGroupsTemplate.php
Find :
if (!$this->_oMain->isAllowedView ($aData)) {
Replace With :
if (!$this->_oMain->isAllowedBrowse ()) {
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Hey Modzzz!
Thanks for the suggestion. I tried, but it doesn´t work. All agents are still able to see the content of all the groups, including they ones they are not fan off. Only fans are able to post comments/ photos/ videos/ etc.
Do you have any other suggestion? This is kinda important for me.
|
After thinking about it, I realized I missed a critical component. If the group is not viewable to others except fans, how will members become fans in the first place ? You have to view the group page to become a fan. Now I have to ask you the same question as Prashank25. Do you want to make blocks invisible but leaving only the actions block so someone can get to click the join button if they wish to become a fan ? You responded to Prashank25 saying you are not talking about blocks but the content is displayed in blocks so you do not have a choice but to hide the blocks (except the actions block). The challenge though is hiding the sub-menu links also (forum, comments)
Hey Modzzz!
Thanks for the suggestion. I tried, but it doesn´t work. All agents are still able to see the content of all the groups, including they ones they are not fan off. Only fans are able to post comments/ photos/ videos/ etc.
Do you have any other suggestion? This is kinda important for me.
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Hello Modzzz.
Hmm. Well, you do have a point there. But that has been giving some thought. If your group is not visible, unless your a fan, the group-admin can send you an invitation. That is a standard feature available within the groups.
I don´t mind having a block or not. I just need group-content to be visible for fans only. And how? That part doesn´t matter.
I really appreciate your input and thought on this!
|
Perhaps somebody needs to invent a splash page for groups, where that's all you see, until you join My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
I am still out of clue what you want to hide. If we say blocks you say no and if we say page you say no lol
We don't have a point...xD
try this btw
edit modules\boonex\groups\classes\BxDolPageView.php scroll down to end and add this in the getCode function
if(!($this->_oDb->isFan($this->aDataEntry['ID'], $this->_oMain->_iProfileId, 0) || $this->_oDb->isFan($this->aDataEntry['ID'], $this->_oMain->_iProfileId, 1))) {
return MsgBox(_t('_Access denied'));
}
It will block all users who are not fan of the group. If thats what you want here it is.
Good luck
so much to do.... |
Okay. Another attempt. I´m really sorry, quite new to Dolphin. LOL
The blocks with the groups are on my page. Obviously. And they probably need to be, otherwise the group-feature all together won´t work.
Let me try to explain with an example what I want to happen: Member 1 is a fan of group 1. Member 2 is a fan of group 2.
When member 1 goes to group 2, he can see everything that is posted there. And THAT is what needs to be prevented. Member 1 can only see what is posted in the group(s) he is a fan of. Member 2 visits group 2. He is a fan, so he can see all posts and add new posts. When he goes to group 1 he can not see posts or add posts.
I don´t mind the groups being publicly listed. When you click on a group your not a fan of, it will load, but it would give the error: Your not a fan of this group.
Thanks for all the support and feedback guys. :)
|
Hi everyone! I have a similar question as Christiaan, but with a little difference:
how can I hide comments from visitors if not a fan? I need to have these 2 options for group admins: - if a person is not a fan, he/she can see comments but can not add their own - if a person is not a fan he/she can not see the comments and gets "access denied" message. The group is visible, and its fans can be visible too.
The idea is - a visitor can see the group and its members, see pictures and read the description, but the comments are hidden. So, you know what this community is about, but if you want to see people talk, you should ask for a permission to join them.
I've added an option to privacy settings: there was only "Posts by" (me only, public, fans, etc), now there is "View posts by" also. Added a column to the database. But I can not figure out which code I should change and how. I would appreciate any help!
|
This functionality can be found in the Premium Groups module.
Hi everyone! I have a similar question as Christiaan, but with a little difference:
how can I hide comments from visitors if not a fan? I need to have these 2 options for group admins: - if a person is not a fan, he/she can see comments but can not add their own - if a person is not a fan he/she can not see the comments and gets "access denied" message. The group is visible, and its fans can be visible too.
The idea is - a visitor can see the group and its members, see pictures and read the description, but the comments are hidden. So, you know what this community is about, but if you want to see people talk, you should ask for a permission to join them.
I've added an option to privacy settings: there was only "Posts by" (me only, public, fans, etc), now there is "View posts by" also. Added a column to the database. But I can not figure out which code I should change and how. I would appreciate any help!
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Thanks modzzz, but I need only this one improvement, so bying a whole module is not necessary for me now. But maybe I'll need it later, thank you for the information! |