Author Topic: After vLIB update PHD does not work properly anymore  (Read 906 times)

0 Members and 1 Guest are viewing this topic.

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
After vLIB update PHD does not work properly anymore
on: Thu, 17. October 2002 - 17:14:29
Working with vlibTemplate 3.0.3
*CVB: Hyperlink deleted*

failing with vlibTemplate 3.0.9
*CVB: Hyperlink deleted*

Problem: CSS variables are not set anymore.

header.php calls
tmpl/header.htm

This contains:

<tmpl_include file=../formate.css>

And

"formate.css" contains
Code: [Select]
.table_header
{
    font-size: 10pt;
    font-family: Verdana;
    font-weight: bold;
    color: <tmpl_var name=thColor>;
    background-color: <tmpl_var name=thBGcolor>;;
}

header.php sets
   $tpl -> setvar(thColor, $thColor);
   $tpl -> setvar(thBGcolor, $thBGcolor);

"Its not a bug, its a feature!"  :wink:
Claus

PS: The coding is identical. I just updated vlib.
Last Edit: Sat, 17. February 2007 - 13:21:33 by ClausVB

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
After vLIB update PHD does not work properly anymore
Reply #1 on: Sun, 20. October 2002 - 11:47:23
I have created a sample:

PHP script:
Code: [Select]
<?php
include_once(
../vlibTemplate.php);
$tmpl = new vlibTemplate(tmpl/vlibTemplate_include_adv.html);

$tmpl->setvar(background#eeeeee);
$tmpl->setvar(thColor#ffffff);
$tmpl->setvar(thBGcolor#778899);

$tmpl->setloop(tr$tabledata);

$tmpl->pparse();
?>

Template (working):
Code: [Select]
<html>
<head>
<style type="text/css">
.table_header
{
    font-size: 10pt;
    font-family: Verdana;
    font-weight: bold;
    color: <tmpl_var name=thColor>;
    background-color: <tmpl_var name=thBGcolor>;;
}
</style>
    <title>&lt;tmpl_include file=../formate.css&gt;</title>
</head>

<body background="{tmpl_var name=background}">

<table border="1" width="100%">
<!-- rows -->
  <tmpl_loop name=tr> <!-- new row (start) -->
<tr class="table_header">
   <tmpl_loop name=row>
  <td valign="top">{tmpl_var name=cell}</td>
   </tmpl_loop>
</tr>
   <!-- new row (end) -->
  </tmpl_loop>
</table>

</body>
</html>

Template (failing):
Code: [Select]
<html>
<head>
   <tmpl_include file=../formate.css>
   <title>&lt;tmpl_include file=../formate.css&gt;</title>
</head>

<body background="{tmpl_var name=background}">

<table border="1" width="100%">
<!-- rows -->
  <tmpl_loop name=tr> <!-- new row (start) -->
<tr class="table_header">
   <tmpl_loop name=row>
  <td valign="top">{tmpl_var name=cell}</td>
   </tmpl_loop>
</tr>
   <!-- new row (end) -->
  </tmpl_loop>
</table>

</body>
</html>
Last Edit: Sat, 17. February 2007 - 13:22:52 by ClausVB

releasedj

  • Guest
After vLIB update PHD does not work properly anymore
Reply #2 on: Thu, 24. October 2002 - 10:37:25
I've just released vLIB 3.0.10 which should resolve these issues.

It was a problem with 2 of the recent performance enhancements which didn't go together to well.

Regards,

Kelvin

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
After vLIB update PHD does not work properly anymore
Reply #3 on: Tue, 29. October 2002 - 00:30:41
It's working with 3.0.10.