This chapter will cover full screen mode module. Even your module doesn't have windowed mode, you must still have window.php (see Full Page vs Inline).
Full screen mode requires the following files:
$txt['main_body'] = 'Hello world!';
Simple, eh. You don't need to include user_init.php, or use flush_tpl(), everything will be taken care by qE.
If you need to use a skin file .tpl, load it with load_tpl ('mod', [skin_name]); This also true for windowed mode. By using 'mod' parameter, qE will try to load module skin from current skin, and if the specified file not found, qE will attempt to load from default skin. And if the file still not found, it will exit the script.
$tpl = load_tpl ('mod', 'module_myskin.tpl');
$row['something'] = 'something';
$txt['main_body'] = quick_tpl ($tpl, $row);
A complex module may require more than one file. To do so, the structure of files should be:
Pay attention to main.php, as qE only allow you to load main.php, you can't force qE to load your other files. So use this method:
$cmd = get_param ('cmd');
Subscribe to our newsletter for the latest updates and exciting promotions!