TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,985
  • Total Topics: 21,321
  • Online today: 1,318
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 398
  • Total: 398

Buttons will not work

Started by fat4l 3rror, March 15, 2008, 07:51:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fat4l 3rror

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 . '">&nbsp;</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 . '">&nbsp;</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

G6Cad

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'])


This website is proudly hosted on Crocweb Cloud Website Hosting.