• Welcome to Simple Machines Community Forum. Please login or sign up.

Mystic Night

Started by codenaught, April 02, 2006, 04:13:04 AM

Previous topic - Next topic

codenaught

Link to the theme


A purple theme that doesn't use many images and is based on the old babylon style template.
Dev Consultant
Former SMF Doc Coordinator

Tracy

When I try to use this template I get this error:

Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of SMF!

I am running SMF 1.0.7.
Any suggestions?

cyberjack

Compatible With:     1.1 RC2

Kelly

I love this layout and am using it but how would I add the gallery link to the coding?
Quote
// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;
   
   echo '
<div class="explore" align="center">
<a id="upshrink" href="javascript:void(0);" onclick="shrinkHeader(!current_header); return false;">[+-]</a>';
echo '
<a href="', $scripturl, '">  ', $txt[103] ,' </a> >';
echo '

<a href="', $scripturl, '?action=help"> ', $txt[119] ,' </a> >';
   if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search"> ', $txt[182] ,'</a> >';

   if ($context['user']['is_logged'] && $context['allow_pm'])
echo ' <a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a> >';

   if ($context['allow_memberlist'])
echo ' <a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a> >';

   if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin"> ', $txt[2] ,'</a> >';

   if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile"> ', $txt[467] ,'</a> >';

    if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar"> ', $txt[calendar24] ,'</a> >';
   if ($context['user']['is_guest'])
{
echo '
<a href="', $scripturl, '?action=login"> ', $txt[34] ,'</a> >

<a href="', $scripturl, '?action=register"> ', $txt[97] ,'</a></div> ';

}
else

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



</div>';

}

codenaught

Depends on where you want it. :)

But if you want it after search perhaps, you would find this code:

echo '
<a href="', $scripturl, '?action=search"> ', $txt[182] ,'</a> >';


And add after:

echo '
<a href="', $scripturl, '?action=gallery">Gallery</a> >';


Okay well, that is if the gallery is located in your forum under an ?action=gallery. Otherwise you could insert your custom url like this:

echo '
<a href="http://www.yourcustomgalleryurl.com">Gallery</a> >';


Note: If you have a gallery text string such as $txt['gallery'] you are welcome to use that. :)
Dev Consultant
Former SMF Doc Coordinator

Kelly

Thank you so much. But I do have a question? No images are used right for the top menu?  I just want to make sure it's not me lol.

codenaught

Nope there aren't images in the main menu. :) I designed the theme to be fairly quick loading with not too many images used.

Dev Consultant
Former SMF Doc Coordinator

Advertisement: