Customizing SMF > SMF Coding Discussion
Home Page vs. Forum Page
Mr. Peanut:
On my forum, I want to have a button/logo that will take the user back to my main site, out of the forum section. Just like the page you are looking at now. (Click on "Home" at the top of the screen and you are no longer in the forum).
Does anyone know the back-end application for programming this?
Thanks,
Kindred:
well, most of the portals do this sort of thing...
You can also use SSI and layers, which is how simplemachines.org does it.
However, this does not belong in feature requests... this is a support question or a custom coding question..
Mr. Peanut:
Thanks, but where can I learn how to code Simple Machines if I am new to all of this?
Antes:
Well i think he needs button (subs.php)
Open your /sources/Subs.php
--- Code: (Find) --- 'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
--- End code ---
--- Code: (Replace) --- 'home' => array(
'title' => $txt['home'],
'href' => 'http://www.link.tld',
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
'forum' => array(
'title' => 'Forum',
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
),
--- End code ---
Kindred:
well, that creates the button
(again, not a feature request)
and you should link him to the wiki...
http://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0
but I think he's asking about coding pages outside of the forum which still use forum functions and layouts...
(without coding, you can do most of the using any one of the existing portal mods)
as for learning how to code...
1- learn php, html and css
2- ask questions in the coding board, not the feature requests board.
Navigation
[0] Message Index
[#] Next page
Go to full version