MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

How to make discussion tab section of group visible to public ?  (Zatvorena) (Mono Support )

19973 put(a) pogledan, 10 odgovor(a) 26.7.2013. 16:38:33Kreirao(la) super
mzilic

mzilic

29.7.2013. 15:32:46
Hello Super,

You can reference this blog post to create a custom webpart: http://www.mono-software.com/Blog/post/Mono/93/Building-a-custom-Web-part/

Regards,
Mario
Ovaj sadržaj još nije ocijenjen. 
2218 Reputacija 300 Ukupno objava
super

super

26.7.2013. 16:38:33
I want everyone to be able to see the discussion tab section but right now it says only members of that group can see the content ? 

But to post the topic in discussion section any user will have to login anyway to I don't find any reason to keep it hidden this discussion section..

any help ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
khorvat

khorvat

29.7.2013. 8:10:02
Hi,

there is a ~\MonoX\ModuleGallery\SocialNetworking\Groups\GroupView.ascx.cs WebPart and he has CheckUserPrivileges method that you should override and change the visibility of the lnkDiscussion.

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
super

super

29.7.2013. 10:46:19
From where I can get GroupView.ascx.cs code behind page ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
kpeulic

kpeulic

29.7.2013. 12:39:40
This is the part of the source code paid package (Purchase MonoX). Regarding to the above answer you don't need the source code.
Ovaj sadržaj još nije ocijenjen. 
1849 Reputacija 181 Ukupno objava
super

super

29.7.2013. 13:36:34
But khorvat mentioned that I can do this in GroupView.ascx.cs but the monox pre-build version that I have doesn't have GroupView.ascx.cs ?

How to accomplish this task then ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
mzilic

mzilic

29.7.2013. 14:19:39
Hello Super,

You would need to create your own GroupView control and inherit the MonoX's GroupView control and override the method which Kristijan mentioned.

Regards,
Mario
Ovaj sadržaj još nije ocijenjen. 
2218 Reputacija 300 Ukupno objava
super

super

29.7.2013. 15:19:01
Could you please help me with the code ? I am not sure how to go about it ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
super

super

29.7.2013. 17:40:57
This did the job:  

<MonoX:Discussion runat="server" ID="snDiscussion" RelatedContentVisible="true" IsPublic="true"  />
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
khorvat

khorvat

30.7.2013. 6:27:47
Great to hear this, yes that is one option that you can use.

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava