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?
ARI Quiz Lite
Go to bottomPage: 1
TOPIC: Help with vars
#2605
Help with vars 15 Years, 7 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 15 Years, 7 Months ago Karma: 764
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 15 Years, 7 Months ago Karma: 0
Yes, that was just the problem

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