Welcome to Geeklog, Anonymous Friday, April 25 2025 @ 06:32 pm EDT
Geeklog Forums
Framing a staticpage on Frontpage
Paul Mah
Anonymous
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
17
14
Quote
Paul Mah
Anonymous
Whoops, need to mention that the code substitution should occur on line 77 for staticpages 1.2 distribution with the updated index.php.
15
17
Quote
All times are EDT. The time is now 06:32 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