Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Set groups/events permissions for user uploads

11 years 4 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

ISSUE SUMMARY:
Is there a way to set the default for groups and events creation so that all members have permissions to upload photos/videos? Right now the person creating the group has to enable those preferences.


STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

11 years 4 months ago
Licenses:

Hi Meagan,

for group you must create new override file:
copy groups.forms.php from [joomla site root]/components/com_community/templates/default/ to [joomla site root]/templates/bsmart2013/html/com_community/

edit it and find this code at line 126:

<input type="checkbox" name="photopermission-member" class="checkbox" id="photopermission-member" value="1" <?php echo ( $params->get('photopermission') == GROUP_PHOTO_PERMISSION_ALL ) ? ' checked="checked"' : '';?> disabled="disabled" />
changing it to
<input type="checkbox" name="photopermission-member" class="checkbox" id="photopermission-member" value="1" <?php echo ( $params->get('photopermission') == GROUP_PHOTO_PERMISSION_ALL || $isNew ) ? ' checked="checked"' : '';?> disabled="disabled" />

and find this code at line 166
<input type="checkbox" class="checkbox" name="videopermission-member" id="videopermission-member" value="0" <?php echo ($params->get('videopermission') == GROUP_VIDEO_PERMISSION_ALL) ? ' checked="checked"' : '';?> disabled="disabled" />
changing it to
<input type="checkbox" class="checkbox" name="videopermission-member" id="videopermission-member" value="0" <?php echo ($params->get('videopermission') == GROUP_VIDEO_PERMISSION_ALL || $isNew) ? ' checked="checked"' : '';?> disabled="disabled" />

and for event, can you elaborate more? because can not upload videos/photos there

Regards

The following user(s) said Thank You: Meagan
11 years 4 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

Hi Albertus,

This worked well, thank you. There is no issue with events, I was mistaken. I do have one last question - I would like to enable the group discussion file sharing by default as well. I know the following line of code from the same file needs to be edited, I'm just not sure what variable to change.

<input type="checkbox" class="checkbox" name="groupdiscussionfilesharing" id="groupdiscussionfilesharing" value="1" <?php echo ( $params->get('groupdiscussionfilesharing') >= 1 ) ? ' checked="checked"' : '';?> />

Thank You.

11 years 4 months ago
Licenses:

Hi Meagan,

you must put:

$isNew
as OR condition, so that code will be like this:
<input type="checkbox" class="joms-checkbox" name="groupdiscussionfilesharing" value="1" <?php echo ($params->get('groupdiscussionfilesharing') >= 1 || $isNew) ? ' checked="checked"' : ''; ?>>

Regards

The following user(s) said Thank You: Meagan
11 years 4 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

Yes, that helps.

Thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW