1
I am tring to modify a my old module adding templates, to learn how I look another module, so I made my template BUT it works ONLY if I am logged else white page!
Also if in the template file there is only a sentece like "Tring" (so no template code error)!
The code I have used in the head of index.php page (I've only one page in this module) is:
include ("../../mainfile.php");
// this page uses smarty template
// this must be set before including main header.php
$xoopsOption['template_main'] = 'ykyrowdw_index.html';
include (XOOPS_ROOT_PATH."/header.php");
and the funciotn
$xoopsTpl->assign('','');
for assign my values
in the xoops_version.php page I have added
// Templates
$modversion['templates'][1]['file'] = 'mymodule_index.html';
$modversion['templates'][1]['description'] = '';
And finally I reload the module in the XOOPS module pannel!
I have debug the page but the same problem correct as user, white page as anonimous.
That is what I done, I don't know why it works only for logged user!
Could some one answer me please?