Categories > TinyButStrong general >

PROBLEM with subtemplate and Script ????!!!!

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: GIAHUYNH
Date: 2006-04-04
Time: 07:15

PROBLEM with subtemplate and Script ????!!!!

2 have two file
PHPFILE

<?
include_once('tbs_class.php') ;
$act="menu.php";


$TBS = new clsTinyButStrong ;
$TBS->LoadTemplate('skin/index.html') ;

$TBS->Show(TBS_OUTPUT+TBS_NOTHING) ;

?>

if in HTMLFILE i put code below, i see message >>> " TinyButStrong Error (Parameter 'script'): Field [onload] cannot be merged because file '[var.act]' is not found or not readable. This message can be cancelled using parameter 'noerr'  "
[onload;script=[var.act];subtpl]

when i change code to newcode i see code PHP. > botay.COM
[onload;file=[var.act];subtpl]

By: Sheepy
Date: 2006-04-04
Time: 07:41

Re: PROBLEM with subtemplate and Script ????!!!!

First, try changing onload to onshow.  onload is merged before [var], which is a special field as of version 2.0x.
By: Skrol29
Date: 2006-04-04
Time: 10:30

Re: PROBLEM with subtemplate and Script ????!!!!

Hello,
What is your TBS version ?
By: DUC
Date: 2006-04-05
Time: 03:44

Re: PROBLEM with subtemplate and Script ????!!!!

We are using version 1.1
By: DUC
Date: 2006-04-05
Time: 04:00

Re: PROBLEM with subtemplate and Script ????!!!!

I just download last version of TBS is 2.05.7 and then I use syntax :
[var.version] to see version, It  display is 1.1
What is wrong?
By: Sheepy
Date: 2006-04-06
Time: 10:22

Re: PROBLEM with subtemplate and Script ????!!!!

[var.version] will display the global variable $version.  Use [var..version] for TBS version.
By: Duc
Date: 2006-04-11
Time: 06:44

Re: PROBLEM with subtemplate and Script ????!!!!

Thank you very much, Sheeply.
Good luck !