Hello, I have tried this method to hide the image gallery in user view editing.
But nothing happens. I actually don't understand excatly how this hack works. Normally, after using the hack, when you go on a user group, you have the choice of front-editing? For me, nothing has changed. I have tried several time, but it fails.
The form PHP to change, is it the one in admistrator/component/com k2, or only in website component/com k2?
Here what I have change in the code:
Config (in administrator)
<param menu="hide" name="showImageGalleryTab" type="radio" default="1" label="Image gallery tab on edit form" description=""> <option value="0">Hide</option> <option value="1">Show</option> </param>
To
<param menu="hide" name="showImageGalleryTab" type="list" default="18" label="Image gallery tab on edit form" description=""><option value="26">none</option> <option value="25">Super Administrator</option> <option value="24">Administrator</option> <option value="23">Manager</option> <option value="21">Publisher</option> <option value="20">Editor</option> <option value="19">Author</option> <option value="18">Registered</option> <option value="1">all</option> </param>
And form (not in administrator, directly in component):
<?php if ($this->params->get('showImageGalleryTab')): ?> <li id="tabImageGallery"><a href="#"><?php echo JText::_('Image Gallery'); ?></a></li> <?php endif; ?>
To
<?php if ($access >($this->params->get('showImageGalleryTab')-1)): ?> <li id="tabImageGallery"><a href="#"><?php echo JText::_('Image Gallery'); ?></a></li> <?php endif; ?>
Thank you for the help, please!