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?

Using SSO and Username and Email not showing
(1 viewing) (1) Guest
component
Go to bottomPage: 123
TOPIC: Using SSO and Username and Email not showing
#53858
Re:Using SSO and Username and Email not showing 9 Years, 8 Months ago Karma: 0
I have commented out those 2 fields in the location you stated for
//$data['Email'] = AriUtils::getParam($_COOKIE, 'aq_email', '');
//$data['UserName'] = AriUtils::getParam($_COOKIE, 'aq_name', '');

Still not working.

Any idea on a resolution, I have tried this in an Embedded Quiz, as well as normal link to quiz and it does not work.
We need to use SSO and when it is enabled it is not bypassing this. Is there a way to force this all the time.
The administrator has disabled public write access.
 
#53878
Re:Using SSO and Username and Email not showing 9 Years, 8 Months ago Karma: 760
Do you want to show "name" and "email" fields always with empty values for guest users without populating it with a previous data?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#53881
Re:Using SSO and Username and Email not showing 9 Years, 8 Months ago Karma: 0
Yes Always show, and I have taken away the Email and put a custom Drop down box for Locations selection. I have also updated and put that Variable available in the Templates for Email and Text display, it all was working till I turned on SSO, which we are enforcing, but we use Generic Accounts so we need this option so users can fill in their username and select location. When testing on required Staff test.
The administrator has disabled public write access.
 
#53894
Re:Using SSO and Username and Email not showing 9 Years, 8 Months ago Karma: 760
If the following code is commented, the extension will not populate "name" and "email" fields with previous values for new quiz sessions:

Code:


$data['Email'] = AriUtils::getParam($_COOKIE, 'aq_email', '');
$data['UserName'] = AriUtils::getParam($_COOKIE, 'aq_name', '');



The extension shows the form only for guest users, if you want to change this behaviour see the following code in <joomla_directory>/components/com_ariquiz/controllers/quiz.php file:

Code:


if ($user->get('id') == 0 && $quiz->Anonymous != 'Yes')
{
$formView = $this->getSubView('guestform', 'quizform');
}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#53965
Re:Using SSO and Username and Email not showing 9 Years, 8 Months ago Karma: 0
Ok commenting the Cookies part, out and modifying the code to force the Name form, it still uses the cached credentials from the SSO regardless what is put in. is there a way to just force all quizzes to prompt and load those parameters in the quiz regardless of settings on Quiz for Anonymous etc.
The administrator has disabled public write access.
 
#53999
Re:Using SSO and Username and Email not showing 9 Years, 8 Months ago Karma: 760
If want to show the form always then use the following code in <joomla_directory>/components/com_ariquiz/controllers/quiz.php file:

Code:


$formView = $this->getSubView('guestform', 'quizform');



instead of:

Code:


if ($user->get('id') == 0 && $quiz->Anonymous != 'Yes')
{
$formView = $this->getSubView('guestform', 'quizform');
}



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 123