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
i'm trying to replicate a similar look to this forum
- damo
- Joomla! Explorer
- Posts: 482
- Joined: Tue Aug 23, 2005 12:49 pm
- Location: Sweden
- Contact:
-
- Joomla! Apprentice
- Posts: 26
- Joined: Thu Aug 25, 2005 9:43 pm
Re: i'm trying to replicate a similar look to this forum
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:
I just simply went and deleted anything I didn't want such as:
It's worked for me.
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: Select all
// 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>
Code: Select all
<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>
- damo
- Joomla! Explorer
- Posts: 482
- Joined: Tue Aug 23, 2005 12:49 pm
- Location: Sweden
- Contact:
- klaus3
- Joomla! Fledgling
- Posts: 1
- Joined: Sat Jan 21, 2006 10:13 pm
Re: i'm trying to replicate a similar look to this forum
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!)
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!)
- chadness
- Joomla! Guru
- Posts: 768
- Joined: Mon Aug 22, 2005 5:43 pm
- Location: Minneapolis, MN
- Contact:
Re: i'm trying to replicate a similar look to this forum
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.
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.
Last edited by chadness on Mon Jan 23, 2006 4:17 pm, edited 1 time in total.