By: testebr
Date: 2006-04-26
Time: 06:53
|
100%[error]
Hi,
The class return this code in my table:
<table width="100%[error]" border="0"....
Why this [error] text show in my table? WTF!
|
By: Sheepy
Date: 2006-04-26
Time: 07:30
|
Re: 100%[error]
Have you merged anything with the error field? If you've no error, then at least merge it with an empty string.
|
By: testebr
Date: 2006-05-02
Time: 12:56
|
Re: 100%[error]
php file:
$TBS = new clsTinyButStrong;
$TBS->LoadTemplate("$patch_to_template/file.php");
$TBS->Show();
|
Template file:
<table width="100%" border="1" cellspacing="0" cellpadding="2" bordercolor="#e0e0e0" style="border-collapse: collapse;">
...
..
.
|
And the result always is:
<table width="100%[ERROR]" border="1" cellspacing="0" cellpadding="2" bordercolor="#e0e0e0" style="border-collapse: collapse;">
...
..
.
|
Whats the problem?
|
By: Skrol29
Date: 2006-05-02
Time: 13:02
|
Re: 100%[error]
This may be not related to TBS. "[ERROR]" is not a TBS error message, there is no such string in the source.
|
By: testebr
Date: 2006-05-02
Time: 13:15
|
Re: 100%[error]
Hmm.. this is crazy
Work fine:
$TBS = new clsTinyButStrong;
$TBS->LoadTemplate("$patch_to_template/file.php");
$TBS->Show();
|
The problem occur:
case "make_action":
$TBS = new clsTinyButStrong;
$TBS->LoadTemplate("$patch_to_template/file.php");
$TBS->Show();
break;
|
Whats the problem?
|
By: TomH
Date: 2006-05-02
Time: 13:34
|
Re: 100%[error]
Can you try put TBS->Show() outside switch braces...
<?php
switch ($i) {
case 0:
echo "i equals 0";
case 1:
echo "i equals 1";
case "make_action":
$TBS = new clsTinyButStrong;
$TBS->LoadTemplate("$patch_to_template/file.php");
}
$TBS->Show();
?> |
|
By: testebr
Date: 2006-05-02
Time: 13:52
|
Re: 100%[error]
Same problem...
Php file:
switch( $test )
{
case "test_only":
$template_show = 'test10';
}
$TBS = new clsTinyButStrong;
$TBS->LoadTemplate("$patch_to_template/$template_show.php");
$TBS->Show();
exit;
|
Template file:
%%%%%%% <table width="100%" border="1" cellspacing="0" cellpadding="2" bordercolor="#e0e0e0" style="border-collapse: collapse;">
|
The result:
%[ERROR]%[ERROR]%[ERROR]%[ERROR]%[ERROR]%[ERROR]%[ERROR] <table width="100%[ERROR]" border="1" cellspacing="0" cellpadding="2" bordercolor="#e0e0e0" style="border-collapse: collapse;">
|
|
By: testebr
Date: 2006-05-02
Time: 14:09
|
Re: 100%[error]
Sorry, I find the problem.. my javascript funcion URLDecode add the code [error] if string == %, I change and work fine now.
My first switch work fine.
TBS is wonderful
|
|
Posting in progress.
Please wait...
|