Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 05:02 am 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
 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.
 Quote

All times are EDT. The time is now 05:02 am.

  • 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