I know that none of the "portal" mods work in this beta of SMF, but I was wondering if there is a simple way to point the "Home" button to a simple HTML description of our group (inside of the forum layout), and have a "Forum" button that points to the forum index. I simply want a way to integrate a welcome / summary message to our site. Any ideas?
yes... edit the target of "home" in subs.php
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
),
instead of $scripturl, enter 'http://your.page.com',
Quote from: Kindred on April 28, 2008, 04:36:43 PM
yes... edit the target of "home" in subs.php
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
),
instead of $scripturl, enter 'http://your.page.com',
Thanks!
I have 2 issues though.
1. My forum is installed to the root of my website, so the forum index.php interferes with the one I want to create.. how can I resolve this?
2. When I reroute the home button, how will users get to the forum?
If you have installed the forum into the root, then you are going to have a problem using another script as index.php.
You will have to move the forum to a subdirectory, add YOUR page to the root and access the forum from a link on your page.
(move all forum files into a sub directory and then upload and run repair_settings.php to reset the urls and paths.)
And you could have a button that says "Home Page" and another one that says "forum home"
(instead of changing the existing home array, take a COPY of it, put it in front of the original and target the site homepage as instructed.
You can alter the text of the button $txt['home'] and add a new one (ie add $txt['sitehome']= 'Site Home';) in index.english.php