$g_add = allowedTo('smfgallery_add');
$g_gallery = allowedTo('smfgallery_usergallery');
Open Sources/Subs-Gallery2.php
Find
// MyGallery
if (!$context['user']['is_guest'] && $g_gallery)
$context['gallery']['buttons']['mygallery'] = array(
'text' => 'gallery_text_mygallery2',
'url' => $scripturl . '?action=gallery;su=user;u=' . $context['user']['id'],
'lang' => true,
);
Add Before
$context['gallery']['buttons']['addpicture'] = array(
'text' => 'gallery_form_addpicture',
'url' => $scripturl . '?action=gallery;;sa=add',
'lang' => true,
);