Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

If statement in JCE/TinyMCE tomodify text template
(1 viewing) (1) Guest
ARI Quiz Lite
Go to bottomPage: 1
TOPIC: If statement in JCE/TinyMCE tomodify text template
#23681
If statement in JCE/TinyMCE tomodify text template 12 Years, 11 Months ago Karma: 0
hi, I work in Joomla 1.5 and I have a problem in html. When I press hide/read in JCE I have this:

<div align="center">
<p>Dear, {$UserName}! the result is <span style="text-transform: lowercase;">{$Passed}</span>.</p>
</div>

and I need to do something like this but I don't know how..:

<div align="center">
<p>{$UserName}, the result is <span style="text-transform: lowercase;">{$Passed}</span>.
<?php
if ($Passed == "failure")
echo "<a href='correct URL'>Press here and try again.</a>";
?>
</p>
</div>

I can't find a way to import an "if" statement in there... can't i use php in JCE or TinyMCE? How can I do it?
Any ideas? Thanks a lot in advance.
The administrator has disabled public write access.
 
#23682
Re:If statement in JCE/TinyMCE tomodify text template 12 Years, 11 Months ago Karma: 760
Hello,

The extension supports ability to use one text template when a user passes a quiz successfully and another for failed quiz. Use "Successful Template" and "Failed Template" parameters in quiz settings.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#23684
Re:If statement in JCE/TinyMCE tomodify text template 12 Years, 11 Months ago Karma: 0
Thank you so much! You were so quick and so clear! Problem solved, the thread can be closed. THANKS!
The administrator has disabled public write access.
 
Go to topPage: 1