1
Elena123
Smarty template working only as logged user
  • 2006/3/21 10:23

  • Elena123

  • Just popping in

  • Posts: 27

  • Since: 2003/6/24


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?

2
Elena123
Re: Smarty template working only as logged user
  • 2006/3/28 8:01

  • Elena123

  • Just popping in

  • Posts: 27

  • Since: 2003/6/24


Could someone answer me please?

Login

Who's Online

172 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 172


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits