Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 02:35 pm EST
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
13
10
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.
10
12
Quote
All times are EST. The time is now 02:35 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