This object is in archive! 

Widget Login

Archived Graham M. 11 years ago

I have managed to make SSO login default for when users click on the login link on the main site, but how do I achieve the same when users use the widget to post a response?


Currently, you click the widget, fill out your response then it displays login page with normal login as default.

Best Answer
photo

Hello Graham,

Unfortunetely it's not available to make SSO method default when using widget. We'll consider that option in our next major release.

Replies (5)

photo
1

Hello Graham,

Unfortunetely it's not available to make SSO method default when using widget. We'll consider that option in our next major release.

photo
1

Hi Stas,


Is it possible to modify the popup source directly? If you can point me to where it is, I will happily just remove the normal login part :)

photo
1

Graham,

Login popup consists of several template files:

  1. /application/templates/forms/auth.phtml
  2. /application/modules/system/templates/components/auth-forms.phtml
  3. /application/modules/system/templates/components/auth-sidebar.phtml
  4. /application/templates/layout/header.phtml

photo
1

Thanks Paul,


I managed to get it done on the normal login form (not the widget) by editing header.phtml and inserting an if statement to check if the tab is called itTab and if it is, don't display it.


I still need to figure out how to do it on the widget...


My additions are on line 3 and 10 below.


  1. <ul class="b-popup-tabs">
  2. <?php foreach ($loginRegPages as $page):?>
  3. <?php if ( $page->liClass != "itTab" ): ?>
  4. <li class="<?php echo $page->liClass?> <?php if (key_exists('showPopup', $this) && $this->showPopup == $page->route):?> selected<?php endif?>">
  5. <a rel="<?php echo $page->aRel; ?>" class="filter" title="<?php echo $page->getLabel()?>" href='<?php echo (isset($page->uri)) ? $page->getUri() : $page->getHref();?>'>
  6. <span class="marker"></span>
  7. <i class="ico-small <?php echo $page->icoClass?>"></i> <?php echo $page->getLabel()?>
  8. </a>
  9. </li>
  10. <?php endif; ?>
  11. <?php endforeach?>
  12. </ul>

photo
1

Managed to do get it right by editing public/assets/js/frontend.js and inserting


  1. $("li.itTab").hide();


to line 640 and then editing line 641 to


  1. $(".b-popup-tabs .ldapTab a").click();

Replies have been locked on this page!