TinyPortal

General => Chit chat => Topic started by: stog on March 05, 2010, 06:13:21 PM

Title: plain zen like front page required if possible
Post by: stog on March 05, 2010, 06:13:21 PM
hi
thx for your excellent tiny portal which i use on quite a few sites
i wonder though which theme/setup you would suggest for getting the simplest of front pages- and which would give me most flexibility on setting up buttons or even none!

using 1.1.11 and 1beta4 - i've been playing around with header and footer php's to allow for an iframe use of an html site, but would love to have a simple adagio or corto look without any of the forum log in/messages links showing up on the front page - this is for a specific site which will only be used by a few folks for forum use...

i've set up a front page article approach too with corto but would love to lose most of the index template just for the front page

is it a matter of editing out in the index template - which affects the whole forum site or is there another approach i am overlooking

any ideas gratefully received

many thx again
Title: Re: plain zen like front page required if possible
Post by: JPDeni on March 05, 2010, 08:43:05 PM
The header and footer for the site will show up on the front page, so if you don't want that, you'll have to make something that doesn't use the index.php file for your theme. You could create a separate page outside of your forum directory as an entry way into your forum, with just a simple link. Then you could make the page look however you wanted.
Title: Re: plain zen like front page required if possible
Post by: Mick on March 05, 2010, 08:55:41 PM
Jp.....

how about a index.html ?

It would be a blank page.  It just a matter of adding its content with a link to the forum which uses index.php
Title: Re: plain zen like front page required if possible
Post by: stog on March 05, 2010, 11:30:10 PM
thx

i suppose my hangup is that when they are anywhere in the forum/smf area and click home - they don't get to that index.html , but go to index.php -

which might only mean  that i need alter the 'home' link, but that seems so integral to the smf part - $scripturl is it?

ie we can get into the smf site from the html ok, but to get directly 'back' from the smf area....using smf's 'Home" button..

i'm actually tieing-in or attempting to tie-in, an iweb site

(would it be any easier if i was using smf2 RC2 ? and, this wonderful clean theme here, of mr bloc's with beta5 seems that it might allow a very spacious front page with a very minimal top too ;) )

thx for your input guys n gals :)
Title: Re: plain zen like front page required if possible
Post by: Mick on March 06, 2010, 01:27:11 AM
You can always add a link button to yoursite.com/index.html in the nav bar.

unless you want that in the linktree?

the index.html will come before index.php if accessed that way.
Title: Re: plain zen like front page required if possible
Post by: JPDeni on March 06, 2010, 03:13:27 AM
Quote
(would it be any easier if i was using smf2 RC2 ? and, this wonderful clean theme here, of mr bloc's with beta5 seems that it might allow a very spacious front page with a very minimal top too ;) )

When beta 5 is available to the public, that might be an option. Until it is available, we don't offer it as an option, though, because it would be sorta worthless to tell you to use something you don't have access to.

Quotewhich might only mean  that i need alter the 'home' link, but that seems so integral to the smf part - $scripturl is it?

$scripturl points to the index.php file. You shouldn't have to change anything.

Quotethe index.html will come before index.php if accessed that way.

Interesting. I've never used both in a directory.
Title: Re: plain zen like front page required if possible
Post by: ccbtimewizard on March 06, 2010, 05:30:12 AM
It depends on what the apache is configured to read. You can set the default indexing file of a directory through .htaccess, and generally index.html will be read before index.php as index.html is the most common.
Title: Re: plain zen like front page required if possible
Post by: stog on March 06, 2010, 09:23:05 AM
Quote from: bluedevil on March 06, 2010, 01:27:11 AM
You can always add a link button to yoursite.com/index.html in the nav bar.

unless you want that in the linktree?

the index.html will come before index.php if accessed that way.
thx but what i really want to try n do is........
can i change the 'title' Home - so that it is called something else? leaving me free to add a new button in the smf parts, that links to my index.html which i can label Home..thro-out the smf part


i wondered about using the "action"mod as a way of adding my own button perhaps - could this be a way of adding my home .html page to the linktree?

--->yes re beta 5  and smf 2 - with this very theme looks almost the solution :) - i await all with eagerness!

thx everyone
Title: Re: plain zen like front page required if possible
Post by: Mick on March 06, 2010, 03:01:33 PM
Quote from: stog on March 06, 2010, 09:23:05 AM
Quote from: bluedevil on March 06, 2010, 01:27:11 AM
You can always add a link button to yoursite.com/index.html in the nav bar.

unless you want that in the linktree?

the index.html will come before index.php if accessed that way.
thx but what i really want to try n do is........
can i change the 'title' Home - so that it is called something else? leaving me free to add a new button in the smf parts, that links to my index.html which i can label Home..thro-out the smf part


i wondered about using the "action"mod as a way of adding my own button perhaps - could this be a way of adding my home .html page to the linktree?

--->yes re beta 5  and smf 2 - with this very theme looks almost the solution :) - i await all with eagerness!

thx everyone

Yes the action mod should work but my question is,

..if you need a front a page, why does it matter if it shows in the link tree?


All you need is a button in the navigation bar of the forum directed to the "new" front page.

Do you have a website and a forum?  or just a forum?

Have you tried the "bakers dozen mod" yet?  It adds 13 extra pages to the forum and has a linktree system.  Its based off the "help" pages.
Title: Re: plain zen like front page required if possible
Post by: ZarPrime on March 06, 2010, 03:08:16 PM
Quote from: stog on March 06, 2010, 09:23:05 AM
thx but what i really want to try n do is........
can i change the 'title' Home - so that it is called something else? leaving me free to add a new button in the smf parts, that links to my index.html which i can label Home..thro-out the smf part


This is easily accomplished.  The themestring to change is located in the following file --> /Themes/default/languages/index.english.php

In SMF 2.0 RC2, the line to change is ...

$txt['home'] = 'Home';


In order for this to take effect, you might have to "Empty the file cache"after you change the "Home" to "Whatever".

In SMF 1.1.11 it's different.  I believe the line to look for is ...

$txt[103] = 'Home';


ZarPrime
Title: Re: plain zen like front page required if possible
Post by: stog on March 06, 2010, 03:32:21 PM
brilliant thx all -- the baker's dozen looks v useful and its 'pages' title is editable and thx for explaining the way to change the title zar -- cheers!

i have a few sites where i want to have smf as a major searchable part but not necessarily in the foreground, and i have now a few extra avenues to test/explore -- will report back

cheers again
Title: Re: plain zen like front page required if possible
Post by: stog on March 06, 2010, 06:08:47 PM
ok baker's dozen installed ok - works in "core" - then i added code to the custom theme - in this case "corto" but can't yet change the link that the mod creates in the menu from a text link to an image or a tab -- any help appreciated! thx

the new page (called "second home" for now) was  created in default - and i added a redirect to the index.html within the page, which works great..


then next to the  the zar prime advice! - which will achieve the desired redirect without having to fix the above, but i'd  now like to know how to add this pages link as a tab ... cheers
Title: Re: plain zen like front page required if possible
Post by: stog on March 07, 2010, 12:20:34 PM
also
can't find where in the index template, to add the bakers dozen code in adagio?
// Show the [pages] button.
global $user_info, $modSettings;
if ($user_info['is_guest'] ? !empty($modSettings['dozen_pages_enable_guest_access']) : !empty($modSettings['dozen_pages_enable_member_access']))
echo ($current_action == 'pages' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pages' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pages">', !empty($modSettings['dozen_pages_tab_label']) ? $modSettings['dozen_pages_tab_label'] : $txt['dozen_pages_tab_default'], '</a>
</td>' , $current_action == 'pages' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


similiarly using "adding tab to theme"  http://docs.tinyportal.co.uk/index.php?topic=30
doesn't seem to help me editing the index template, in both corto and adagio - sry for being 'thick'!
__________________________________________________

obviously in adagio one can add a custom button so no real problem there, and re-addressing the Home button as zar described above achieves the return to index.html from within the smf part in both themes, but i still wanted to know how :) to achieve these other edits.....u know how it is !

thx for your patience
Title: Re: plain zen like front page required if possible
Post by: ZarPrime on March 10, 2010, 04:30:48 PM
stog,

Take a look at this post on SMF and see if this will help you to sort the fix out ...
http://www.simplemachines.org/community/index.php?topic=344516.msg2334757#msg2334757

ZarPrime