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?

Help with vars
(1 viewing) (1) Guest
ARI Quiz Lite
Go to bottomPage: 1
TOPIC: Help with vars
#2605
Help with vars 7 Years, 11 Months ago Karma: 0
Im trying to show a message in quiz description, for registered users and guests.

This is the code:

Code:

<?php
if ($canTakeQuiz)
{
?>
<input type="submit" class="button" value="<?php AriQuizWebHelper::displayResValue('Label.Continue');?>"/>
<?php
}
else
{
if ($user->id == 0)
{
?> 
<p>TEXT 1</p>
<?php
}
elseif ($user->id != 0)
{
?>
<p>TEXT 2</p>
<?php
}
?>



The problem is that it shows alway the
text 1 to registered users and guests. Why?
Last Edit: 2009/10/31 07:33 By Sasso.
The administrator has disabled public write access.
 
#2606
Re:Help with vars 7 Years, 11 Months ago Karma: 666
Hello,

Check that 'user' variable is defined in this context.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#2607
Re:Help with vars 7 Years, 11 Months ago Karma: 0
Yes, that was just the problem

Thank you!
The administrator has disabled public write access.
 
Go to topPage: 1