Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:47 pm EST
Geeklog Forums
Can a Static Page be used for Homepage?
Whoosh
Anonymous
DIrk. I think there is a problem with this feature (staticpage as homepage) or maybe I am simply misunderstanding the docs.
I have a staticpage, the title of which is 'frontpage'. I entered no label.
Its format is BLANK, which I interpret as having no header, footer or blocks.
I enabled it as a centerblock, taking up the ENTIRE PAGE.
I enable php. In the contents I put the following:
if ($_USER['uid'] > 1) {
print '<a href="' . $_CONF['site_url'] . '/users.php?mode=logout">Logout</a>';
} else {
echo $_USER['uid'];
print '<a href="' . $_CONF['site_url'] . '/users.php?mode=login">Login</a>';
}
The code is working, but the page is NOT blank. Is this a bug? I am testing the nightly tarball.
I have a staticpage, the title of which is 'frontpage'. I entered no label.
Its format is BLANK, which I interpret as having no header, footer or blocks.
I enabled it as a centerblock, taking up the ENTIRE PAGE.
I enable php. In the contents I put the following:
Text Formatted Code
global $_USER, $_CONF;if ($_USER['uid'] > 1) {
print '<a href="' . $_CONF['site_url'] . '/users.php?mode=logout">Logout</a>';
} else {
echo $_USER['uid'];
print '<a href="' . $_CONF['site_url'] . '/users.php?mode=login">Login</a>';
}
The code is working, but the page is NOT blank. Is this a bug? I am testing the nightly tarball.
5
5
Quote
All times are EST. The time is now 09:47 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content