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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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 14 Years, 5 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 13:33 By Sasso.
The administrator has disabled public write access.
 
#2606
Re:Help with vars 14 Years, 5 Months ago Karma: 746
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 14 Years, 5 Months ago Karma: 0
Yes, that was just the problem

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