Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
3 - 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Trying to use a smarty tag in an IFrame - need help
by wizanda on 2007/12/20 19:27:42

Smarty renders the templates of XOOPS and so to use Smarty variables, it needs to be in the template…
The variables can be assigned to Smarty in the PHP and also in the template if needed....
Re: Trying to use a smarty tag in an IFrame - need help
by Quest on 2007/12/20 17:55:32

I'm not so sure you need the semi-colon after the $adverts

echo=$adverts

assuming of course you have defined $adverts (where it is)

as far as I know smarty is located in xoops/class/smarty , not sure if that will help you or not. Have a look at it and see...

Best of luck,
Quest
Re: Trying to use a smarty tag in an IFrame - need help
by Will_H on 2007/12/20 17:30:53

So you created a custom module? Did you hook the modules?
Re: Trying to use a smarty tag in an IFrame - need help
by trspice on 2007/12/20 16:52:46

Thanks for the suggestion Quest. I did try that but the page returns empty. Here are the methods and results I tried;
Quote:

echo "<{$adverts}>"; //returns <>
echo '<{$adverts}>'; //returns <{$adverts}>
echo "$adverts"; //returns empty page
echo $adverts; //returns empty page


Does the file need a smarty interpreter? I figured functions.php had the interpreter.
Re: Trying to use a smarty tag in an IFrame - need help
by Quest on 2007/12/20 11:54:10

Try

echo $adverts //without the <{ and }>

Quest

Who's Online

816 user(s) are online (769 user(s) are browsing Support Forums)


Members: 0


Guests: 816


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits