Just do
// The [gallery]!
if ($context['allow_calendar'])
echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '' : '' , '
<div class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=gallery">Gallery</a>
</div>' , $current_action == 'gallery' ? '<div class="seperator"><!--no content--></div>' : '<div class="seperator"><!--no content--></div>';
Fantastic - this worked a treat - thankyou! Do you know why the permissions would not be showing up in the permissions section!? It seems to have created a space for them (like a table listing) but there are no permission options available at all.....
This following code was listed in the install.gallery.php file, and I am wondering if this is just standard text contained within the file, or if it is actually an error report telling me that the files were not installed correctly.....
I have checked my cpanel and there is no install.gallery.php file in the main root directory where index.php and ssi.php are located. The only place where this install.gallery.php file still resides is in the .zip package file in /packages....??
Here is the code..
//Install the Database tables for SMF Galleryif (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF')) require_once(dirname(__FILE__) . '/SSI.php');// Hmm... no SSI.php and no SMF?elseif (!defined('SMF')) die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');