1
fangio
problems with included templates
  • 2006/1/6 1:15

  • fangio

  • Just popping in

  • Posts: 3

  • Since: 2006/1/6 1


Hello,

I'm currently working on my first module for xoops. But I've some problems with templates. There are 5 of them in my template folder

The installation of my module works without problems. The templates will be compiled and written in db.

My template odkroster_membersList.html includes the other 4 templates, therefore I've chosen the order as you can see below. First I didn't know that the order is important so I had done it wrong. But now it seems correct to me.

The problems:
1) the error [I]...Smarty error: unable to read resource: "db:odkroster_membersList_normal"...[/I] is still there. But IMHO the order should be correct now. There are no other includes made in my templates.
2) during the deinstallation of my modul another template file will be deleted. Installing and deinstalling it again another (not my) template will be kicked. I'm totally confused.

deinstallations-log (part):

Deleting templates...
Template odkroster_membersList_class.html deleted from the database. Template ID: 419
Template odkroster_membersList.html deleted from the database. Template ID: 422
Template odkroster_membersList_rank.html deleted from the database. Template ID: 421
Template odkroster_membersList_level.html deleted from the database. Template ID: 420
Template odkroster_membersList_normal.html deleted from the database. Template ID: 418
Deleting block...
Deleting templates...
Template multimenu_block_02.html deleted from the database. Template ID: 128
Template multimenu_block_02.html deleted from the database. Template ID: 346
Deleting module tables...
Table xps_odk_guild dropped.

[...]

xoops_version.php (part):
[...]
// Templates
$modversion['templates'][1]['file'] = 'odkroster_membersList_normal.html';
$modversion['templates'][1]['description'] = '';
$modversion['templates'][2]['file'] = 'odkroster_membersList_class.html';
$modversion['templates'][2]['description'] = '';
$modversion['templates'][3]['file'] = 'odkroster_membersList_level.html';
$modversion['templates'][3]['description'] = '';
$modversion['templates'][4]['file'] = 'odkroster_membersList_rank.html';
$modversion['templates'][4]['description'] = '';
$modversion['templates'][5]['file'] = 'odkroster_membersList.html';
$modversion['templates'][5]['description'] = '';
[...]


I hope you can help a newbie like me. Thanks in advance and sorry for grammatical mistakes, I'm not a native speaker.

-- fangio

2
fangio
Re: problems with included templates
  • 2006/1/6 2:19

  • fangio

  • Just popping in

  • Posts: 3

  • Since: 2006/1/6 1


I've found the problem. Both errors were caused by missing endings (.html) in the include template statements.

Login

Who's Online

174 user(s) are online (74 user(s) are browsing Support Forums)


Members: 0


Guests: 174


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