Is it possible to remove the ability to create secret groups? We still want all users to create Open, Members Only and Private groups. We just do not want to allow secret groups.
It's not possible to do this in the UI itself, but you can customize the theme to remove this option. Let me know and I can provide some pointers on where to look.
Pointers would be greatly appreciated.
In the /template/socialgroup/socialgroup-form.ftl template, you'll want to remove this piece of code:
<#assign secret = enums['com.jivesoftware.community.socialgroup.SocialGroup$Type'].SECRET/>
<li <#if (groupType == secret.ID)>class="selected"</#if>>
<input type="radio" name="groupType" id="jive-socialgroup-type-${secret}" value="${secret.ID}" <#if (groupType == secret.ID)>checked="CHECKED"</#if> onclick="groupTypeChange(this);" />
<label for="jive-socialgroup-type-${secret}" class="jive-grouptype-secret" onclick="groupTypeChange(this);">
<@s.text name="sgroup.form.type.secret.label" />
<span class="jive-form-label-desc"><@s.text name="sgroup.form.type.secret.text" /></span>
</label>
</li>
Let me know if that didn't answer your questions.
Also, can I make this case public for anyone else with a similar question?
Thanks,
Vinh
Sure, you can make this case public. Thanks for your help.
Hi Vinh,
we also need to remove the creation of secret groups. We have removed the section of the /template/socialgroup/socialgroup-form.ftl.
But now, current secert groups are getting open groups once they have been edited.
How can we work around this?
We do not want our users to create secret groups, but existing secret groups should remain as they are. And most importantly, should not be changed to open groups after an edit.
regards,
Nils
UPDATE:
It seems that adding style="display:none" the first line to works fine.
<listyle="display:none"<#if (groupType == secret.ID)>class="selected"</#if>>
The code has changed slightly for 4.0. You'll see a:
<#list groupTypes as type>
Which is basically cycling through all the types of social groups and displaying the HTML for each one. If you want to remove the secret social group, you'd have to create an if condition immediately below the list and check the type.id against the assigned secret.id value and make sure that they are not equal.
Thanks,
Vinh
Hi Vinh,
Can you please provide the code? or some example. (I am newbie in Jive development)
Thanks,
Marilen
Jive combines the most powerful features of collaboration software, community software,
social networking software & social media monitoring into the leading SBS solution.
© Copyright 2000–2010 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205
Sales: 877-495-3700 | General: 503-295-3700
Privacy Policy | Sitemap | Jobs | Contact Us