Return to Jive Software

Skip navigation
2,610 Views 8 Replies Last post: Mar 5, 2010 10:18 AM by marilen114 RSS
janetreitcheck Beginner 293 posts since
Jan 14, 2009
Currently Being Moderated

Feb 26, 2009 3:38 PM

Remove ability to create a secret group

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.

vinh.jones Jive Employee 15,291 posts since
Apr 1, 2008
Currently Being Moderated
Feb 26, 2009 3:49 PM in response to: Janet Reitcheck
Re: Remove ability to create a secret group

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.

vinh.jones Jive Employee 15,291 posts since
Apr 1, 2008
Currently Being Moderated
Feb 26, 2009 4:03 PM in response to: Janet Reitcheck
Re: Remove ability to create a secret group

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

nilsbolsen Beginner 522 posts since
Apr 10, 2008
Currently Being Moderated
Aug 5, 2009 8:55 AM in response to: Vinh
Re: Remove ability to create a secret group

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.

 

<li style="display:none"  <#if (groupType == secret.ID)>class="selected"</#if>>
vinh.jones Jive Employee 15,291 posts since
Apr 1, 2008
Currently Being Moderated
Aug 5, 2009 4:18 PM in response to: Nils Bolsen
Re: Remove ability to create a secret group
Thanks for the update, Nils.
vinh.jones Jive Employee 15,291 posts since
Apr 1, 2008
Currently Being Moderated
Feb 26, 2010 2:59 PM in response to: Vinh
Re: Remove ability to create a secret group

 

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

marilen114 Novice 9 posts since
Jan 5, 2010
Currently Being Moderated
Mar 5, 2010 10:59 AM in response to: Vinh
Re: Remove ability to create a secret group

Hi Vinh,

 

Can you please provide the code? or some example. (I am newbie in Jive development)

 

Thanks,

Marilen

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.