TinyPortal
Development => Support => Topic started by: fat4l 3rror on March 15, 2008, 07:51:47 PM
Quote// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="main2tab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="main2tab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '['. $context['user']['unread_messages'] . ']' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="main2tab_active_' . $last . '"> </td>' : '';
Lets say I want the ....gallery button, I edit everysingle thing to say gallery (and yea it will work due to the fact that the action is =gallery)
WHen I edit it, the button will not show
What Gallery are you using there ? SMF gallery or some external Gallery ?
If it's SMF gallery, the action=gallery is correct, but the text the gallery adds to the default theme is not just 'gallery' it should be $txt['smfgallery_menu']
Also the if ($context['user']['is_logged'] && $context['allow_pm']) needs to be changed to if ($context['allow_smfgallery_view'])