Posted on: 11/03/02 07:49am
By: Anonymous (Paul Mah)
It seems that the code for framing a staticpage as a frontpage was (unintentionally) left out. Frames still come out OK if news is displayed, but not so if "nonews" label is used.
I can't seem to locate Tom's Email in the README so here it is. Just enclose the following in a
if (!empty($_USER['uid'])) { }
if you wish to hide it from anonymous users
//##EDIT## (Paul Mah)
// Enables 'Framing' when $_SP_CONF switched on and label is present
//> Start Insert
if (($_SP_CONF['in_block'] == 1) && !empty ($spresult['sp_label'])) {
$display .= COM_startBlock ($spresult['sp_label']);
}
//> End Insert
$display .= stripslashes ($spresult['sp_content']); // Existing Code
//> Start Insert
if (($_SP_CONF['in_block'] == 1) && !empty ($spresult['sp_label'])) {
$display .= COM_endBlock ();
}
//> End Insert
Framing a staticpage on Frontpage
Posted on: 11/03/02 06:50pm
By: Anonymous (Paul Mah)
Whoops, need to mention that the code substitution should occur on line 77 for staticpages 1.2 distribution with the updated index.php.