By: Hampus
Date: 2014-02-14
Time: 16:09
|
Code prints out over the text
Hello,
I have some issues..
I do like this:
"Please contact me!
[onshow.contact;script=[val];subtpl]"
and $contact as a variable in php!
It works, but the thing is... the text/contact-form is OVER the text "Please Contact me!" I want the contact-form right there i write the code "[onshow.contact;script=[val];subtpl]"
How do I do that? Please help!
|
By: Hampus
Date: 2014-02-14
Time: 16:38
|
Re: Code prints out over the text
Yes I can have:
[onshow.contact;file=[val]]
but! I have a php code into contact.php ($contact = "contact.php") , so I need php...
I'm going to use this for news also, so not just contact-form
|
By: Skrol29
Date: 2014-02-14
Time: 16:42
|
Re: Code prints out over the text
What version of TBS do you have ? (there is something new about sub-template in TBS 3.9.0)
What is doing your script ?
Does it performs echo() or templating ?
|
By: Hampus
Date: 2014-02-14
Time: 16:49
|
Re: Code prints out over the text
Thanks for answering! Really appreciate it!
I have: TinyButStrong version 3.9.0 for PHP 5 (with manual, plug-ins and examples)
Yes, I have a while loop for displaying news... :) just php
|
By: Hampus
Date: 2014-02-15
Time: 12:22
|
Re: Code prints out over the text
Any help?
|
By: Skrol29
Date: 2014-02-17
Time: 14:02
|
Re: Code prints out over the text
> Yes, I have a while loop for displaying news... :) just php
If you use parameter "file", such as [onshow.contact;file=[val]]
then the target file must be a piece of template, not a PHP script.
If you use parameter "script", such as [onshow.contact;script=[val];subtpl]
then the target script must be a PHP script driving a TBS template. I.E. not using some echo().
Before TBS 3.9.0, there could be some failures, and I think that parameter "file" could allow some eco or some PHP script.
You can use the TBS option "old_subtemplate" in order to get compatibility with code from a previous TBS version.
|
|
Posting in progress.
Please wait...
|