hi Everyone :D
My problem:
In the default smf i want to remove as much unnecessary stuff as possible
here are some things i want to remove:
The search box(not the page but the box in the header)
The user info box
The key stats (the one in the header)
And in the footer if it's allowed the little buttons(not the copyright)
Why: To make the integration with joomla better
My question:
Which files do i have to change to do this?
Are there any problems were i have to watch out for?
That's all and sorry for my bad English! 8)
Quite a big list, lets see....
Search Box:
Open: /Themes/theme_name_here/index.template.php
Find:
</td>';
/* echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
form action="', $scripturl, '?action=search2" method="post" style="margin: 0;">
<a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />
<input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />';
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
echo '
</form>
</td>
Replace With:
</td>
Close & Save File
User Information:
You can use a variation of the code I posted here: http://www.simplemachines.org/community/index.php?topic=73222.0
What are the "key stats"?
Buttons in footer:
Open: /Themes/theme_name_here/index.template.php
Find:
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
Replace With:
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
Cheers,
Ryan Jones
Thanks so much for your quick response and the information will notify if it all worked
Quote from: sru on March 01, 2006, 10:44:12 AM
Thanks so much for your quick response and the information will notify if it all worked
:)
Come to think of it the search bit is also coveredby the mod in the other post... I'm still inclear what you meant by What are the "key stats" though.
Cheers,
Ryan Jones