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


Recent Events
  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.

  • 14/04/2017 Happy Easter

    Wish a Happy Easter and give 30% discount for all our WordPress and Joomla! extensions. Use EASTER17 coupon code. The offer is valid till 17 April.


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 5 Years, 9 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 5 Years, 9 Months ago Karma: 667
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 5 Years, 9 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