Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 9:43 pm (All times are UTC )

 




Post new topic Reply to topic  [ 5 posts ] 
Author Message
Posted: Tue Oct 04, 2005 9:57 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Aug 23, 2005 12:49 pm
Posts: 437
Location: Sweden
by only having the user profile, search and forum memu items a the top ... i don't know how to ... can anyone help?

cheers
damo


Top
   
 
Posted: Thu Oct 06, 2005 1:14 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 25, 2005 9:43 pm
Posts: 26
So you just want to have home, search, and profile buttons shown in your smf theme?  This is what I changed it to, with just home and search for guests.

As far as I know the themes are fairly similar so this should apply to whatever theme your using. Edit 'your-smf-folder/Themes/your-theme/index.template.php' and scroll towards the bottom, this is what my theme originally looked like:
Code:
// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   if ($context['user']['is_guest'])
   {
   echo '
   <div align="center">
   <center>
   <table border="0" cellpadding="0" cellspacing="0" width="325">
      <tr>
         <td>
         <div align="center">
         <center>
         <table border="0" cellpadding="0" cellspacing="0" width="325" height="40">
            <tr>
            <td><a href="', $scripturl, '" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_guest_home.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/home.gif" width="40" height="40"></a></td>
            <td><a href="', $scripturl, '?action=help" target="_blank" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_guest_help.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/help.gif" width="40" height="40"></a></td>
            <td><a href="', $scripturl, '?action=search" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_guest_search.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/search.gif" width="40" height="40"></a></td>';
      if ($context['allow_calendar']) {
         echo '   <td><a href="', $scripturl, '?action=calendar" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_guest_calendar.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/calendar.gif" width="40" height="40"></a></td>';
      } else {
         echo '   <td><a href="', $scripturl, '?action=calendar" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_guest_calendar_off.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/calendar.gif" width="40" height="40"></a></td>';
      }
         echo '   <td><a href="', $mosConfig_live_site, 'directory/index.php?option=com_smf_registration&task=register" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_guest_register.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/register.gif" width="40" height="40"></a></td>
            <td><a href="', $scripturl, '?action=login" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_guest_login.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/login.gif" width="40" height="40"></a></td>
            </tr>
         </table>
         </center>
         </div>
         </td>
      </tr>
      <tr>
         <td width="325" height="25"><img border="0" id="titlebar" src="' . $settings['images_url'] . '/blank.gif" width="325" height="25"></td>
      </tr>
   </table>
   </center>
   </div>
   ';
   }
   elseif (!$context['user']['is_guest'] && !$context['allow_admin'])
   {
   echo '
   <div align="center">
   <center>
   <table border="0" cellpadding="0" cellspacing="0" width="450">
      <tr>
         <td>
         <div align="center">
         <center>
         <table border="0" cellpadding="0" cellspacing="0" width="450" height="40">
            <tr>
            <td><a href="', $scripturl, '" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_home.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/home.gif" width="40" height="40"></a></td>
            <td><a href="', $scripturl, '?action=help" target="_blank" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_help.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/help.gif" width="40" height="40"></a></td>
            <td><a href="', $scripturl, '?action=search" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_search.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/search.gif" width="40" height="40"></a></td>';
   if ($context['allow_calendar']) {
         echo '   <td><a href="', $scripturl, '?action=calendar" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_calendar.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/calendar.gif" width="40" height="40"></a></td>';
   } else {
         echo '   <td><a href="', $scripturl, '?action=calendar" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_calendar_off.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/calendar.gif" width="40" height="40"></a></td>';
   }
         echo '   <td><a href="', $scripturl, '?action=stats" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_stats.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/stats.gif" width="40" height="40"></a></td>
            <td><a href="', $scripturl, '?action=who" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_who.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/who.gif" width="40" height="40"></a></td>
            <td><a href="', $scripturl, '?action=mlist" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_mlist.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/mlist.gif" width="40" height="40"></a></td>';
   if ($context['allow_edit_profile']) {
         echo '   <td><a href="', $scripturl, '?action=profile" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_profile.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/profile.gif" width="40" height="40"></a></td>';
   } else {
         echo '   <td><a href="', $scripturl, '?action=profile" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_profile_off.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/profile.gif" width="40" height="40"></a></td>';
   }
         echo '   <td><a href="', $scripturl, '?action=mambo_logout;sesc='.$context['session_id'].'" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_logout.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/logout.gif" width="31" height="40"></a></td>
            </tr>


I just simply went and deleted anything I didn't want such as:
Code:
<td><a href="', $scripturl, '?action=help" target="_blank" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_guest_help.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/help.gif" width="40" height="40"></a></td>


It's worked for me.


Top
  E-mail  
 
Posted: Thu Oct 06, 2005 7:38 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Aug 23, 2005 12:49 pm
Posts: 437
Location: Sweden
great thanks


Top
   
 
Posted: Sun Jan 22, 2006 6:20 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Jan 21, 2006 10:13 pm
Posts: 1
What theme is closer to the look on this forum?

BTW: In many years I have been on the open source community, it's the first time ever that I see an attitute like this... joombla (and it's templates are open to everyone, but the best template ever is ours and only ours. You can turn green on envy but you'll never get it!)


Top
   
 
Posted: Mon Jan 23, 2006 3:51 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Mon Aug 22, 2005 5:43 pm
Posts: 758
Location: Minneapolis, MN
I don't think I've ever heard anyone from the core team say anything like that.  Yes, they want to keep their unique template to themselves, but that's not unusual.  Though, anyone should be able to view the source and piece it back together.

But, to answer your question, I'm not sure which theme they used as a base.  Jamboworks (which is Rhuk's template design company) did it for them.

_________________
http://www.technoadvice.com


Last edited by chadness on Mon Jan 23, 2006 4:17 pm, edited 1 time in total.

Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group