Changeset 1561 in ExiteCMS


Ignore:
Timestamp:
07/31/08 09:48:00 (4 years ago)
Author:
hverton
Message:

Make sure that all login possibilities are visible by default (user can hide unwanted ones), made the OpenID link point to the national wikipedia page (based on locale code)

Location:
trunk/modules/user_info_panel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/user_info_panel/templates/modules.user_info_panel.tpl

    r1559 r1561  
    109109            {elseif $method == "openid"} 
    110110                <input type='text' name='user_openid_url' class='textbox' style='width:128px;background: url({$smarty.const.IMAGES}openid_small_logo.png) no-repeat; padding-left: 18px;' /><br /> 
    111                 <span class='small' style='font-size:90%;'>  <a href="http://en.wikipedia.org/wiki/OpenID"  target="_blank">{$locale.068}</a></span><br /> 
     111                <span class='small' style='font-size:90%;'>  <a href="http://{$settings.locale_code}.wikipedia.org/wiki/OpenID"  target="_blank">{$locale.068}</a></span><br /> 
    112112            {/if} 
    113113            </div> 
  • trunk/modules/user_info_panel/user_info_panel.php

    r1559 r1561  
    7474$variables['auth_state'] = array(); 
    7575foreach($variables['auth_methods'] as $key => $method) { 
    76     $variables['auth_state'][] = isset($_SESSION['box_login'.$key]) && $_SESSION['box_login'.$key] == 0; 
     76    if (isset($_SESSION['box_login'.$key])) { 
     77        $variables['auth_state'][] = $_SESSION['box_login'.$key] == 0 ? 1 : 0; 
     78    } else { 
     79        $variables['auth_state'][] = 1; 
     80    } 
    7781} 
    7882 
Note: See TracChangeset for help on using the changeset viewer.