How should this look a like to be correct

Started by Surferbird, December 13, 2008, 08:18:31 AM

Previous topic - Next topic

Surferbird

Try to install SMF-Gallery to SMF 1.1.7 but the changes in idex.template.php
doesn't go right because theme is Calypso theme...is here anyone who could
put this file code mod in right style..so it work?
When press gallery button now, it jump to much down, as logout button too?

It is the fit of gallery part.

Here is my file now:

// The [calendar]!

if ($context['allow_calendar'])

   echo '<li', $current_action == 'calendar' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';

// The [member] list button.

if ($context['allow_memberlist'])

   echo '<li', $current_action == 'mlist' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';

// the [SMF Gallery] button
if ($context['allow_smfgallery_view'])
echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
// If the user is a guest, also show [register] button.

if ($context['user']['is_guest'])

   echo '<li', $current_action == 'register' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';

// If the user is a guest, show [login] button.

if ($context['user']['is_guest'])

   echo '<li', $current_action == 'login' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';

// Otherwise, they might want to [logout]...

if ($context['user']['is_logged'])

   echo '<li', $current_action == 'logout' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';



   echo '

      </ul><br style="clear: both;"/>';


This should be added to file:

// the [SMF Gallery] button
if ($context['allow_smfgallery_view'])
echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Thanks for your help!
.:: Always something to ask - always grateful for assistance ::.

Advertisement: