marcmerz
10-22-2004, 11:20 AM
First of all i'd like to thank you for CMPS. It is a fantastic add-on to vBulletin.
I came across a little problem. I included some php code where i define certain variables. I then use these variables like $variable inside templates to echo the output. But now i am stuck:
How do i use a variable here:
In PHP i defined $linkprefix as either 'link.php?link=' or 'http://' depending on some conditions. Inside a template i get stuck when i try to use the variable:
<a href="$linkprefix www.example.com"> does not work because of the whitespace and <a href="$linkprefixwww.example.com"> does not work, because there is no variable $linkprefixwww (of course).
What should i do?
I came across a little problem. I included some php code where i define certain variables. I then use these variables like $variable inside templates to echo the output. But now i am stuck:
How do i use a variable here:
In PHP i defined $linkprefix as either 'link.php?link=' or 'http://' depending on some conditions. Inside a template i get stuck when i try to use the variable:
<a href="$linkprefix www.example.com"> does not work because of the whitespace and <a href="$linkprefixwww.example.com"> does not work, because there is no variable $linkprefixwww (of course).
What should i do?