Most obvious step would be to look how the editor does that. Open /styles/*/template/posting_editor.html and search forLord Phobos wrote:make it open a SMALL window, like the smilies one?
{U_MORE_SMILIES}
.Oh I'm sure they "work" - don't confuse the site's output with requesting the site. In other words: simple header and simple footer should be outputted just as expected, thus looking different from overall header and overall footer - but they have nothing to with the state of its internet browser window/tab.Lord Phobos wrote:They simply won't work
AmigoJack wrote:Most obvious step would be to look how the editor does that. Open /styles/*/template/posting_editor.html and search forLord Phobos wrote:make it open a SMALL window, like the smilies one?{U_MORE_SMILIES}
.
Oh I'm sure they "work" - don't confuse the site's output with requesting the site. In other words: simple header and simple footer should be outputted just as expected, thus looking different from overall header and overall footer - but they have nothing to with the state of its internet browser window/tab.Lord Phobos wrote:They simply won't work
Code: Select all
<!-- IF S_SHOW_SMILEY_LINK -->
<tr>
<td align="center"><a class="nav" href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a></td>
</tr>
<!-- ENDIF -->
Code: Select all
<!-- INCLUDE simple_header.html -->
<table width="100%" cellspacing="1" cellpadding="4" border="0">
<tr>
<td>
<table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0">
<tr>
<th>Radio Lord Phobos</th>
</tr>
<tr>
<td class="row1" align="center" valign="middle"><!-- BEGIN radio --> <!-- BEGINS: AUTO-GENERATED MUSES RADIO PLAYER CODE -->
<script type="text/javascript" src="https://hosted.muses.org/mrp.js"></script>
<script type="text/javascript">
MRP.insert({
'url':'http://eu6.fastcast4u.com:5238/;',
'lang':'it',
'codec':'mp3',
'volume':100,
'autoplay':false,
'buffering':5,
'title':'Radio Lord Phobos',
'welcome':'Urla dal Castello',
'bgcolor':'#FFFFFF',
'skin':'scradio',
'width':160,
'height':100
});
</script>
<!-- ENDS: AUTO-GENERATED MUSES RADIO PLAYER CODE --> <!-- END radio --><br /><br /><a class="nav" href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- INCLUDE simple_footer.html -->
Yes it needs that. You can not just open a .html file from your template directory and expect it to work.Lord Phobos wrote:Maybe I should first create a php file to be put in the root.
Yes, and it is just what I am looking for!Sniper_E wrote: There has to be a knowledge base on setting this up somewhere.
Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
include($phpbb_root_path . 'includes/message_parser.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
page_header('About Us');
$template->set_filenames(array(
'body' => 'test.html',
));
page_footer();
?>
Code: Select all
<a class="nav" href="test1.php" onclick="popup(this.href, 300, 350, 'test2'); return false;">testlink</a>