"Home" page

Started by Rebex, September 13, 2004, 11:26:11 PM

Previous topic - Next topic

Rebex

Hey everyone,

I really like these forums, and we used the old version on our old website. I have a quick question though. If you want the "home" button to go to a home page, where you can update news, how would I go about setting that up, and then having another button for the forums? We had this for our old site, although I wasn't the one to set it up so I am not sure how it works. Basically, I need a front page that I can update every couple days, and then these forums are what I would like to use for that page.

Any help would be appreciated, thanks!

Metho

#1
Joshua "Methonis" Frazer
Support Specialist
The Simple Machines Team

[Unknown]

This wouldn't be very hard, and I could point you to a number of different forums that are doing it, with SMF.

If you look here:
http://www.simplemachines.org/community/index.php?topic=11938.0

There's a forum button.  That's step 1.  Next, you'll want to edit the index template (Themes/yourtheme/index.template.php) and adjust it so it shows the forum and home links.

That is to say, find this:

// Show the [home] and [help] buttons.
echo '
<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];


And replace it with:

// Show the [home] and [help] buttons.
echo '
<a href="http://www.yoursite.tld/">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];


Where your site's URL is http://www.yoursite.tld/.

-[Unknown]

Advertisement: