Changeset 20368 for extensions/oAuth


Ignore:
Timestamp:
Jan 25, 2013, 11:29:14 AM (11 years ago)
Author:
mistic100
Message:

complete Instagram help

Location:
extensions/oAuth
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/admin/template/providers.tpl

    r20324 r20368  
    115115      {elseif $p=='Twitter'}
    116116        <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|@translate|sprintf:'<b>Application Website</b>, <b>Application Callback URL</b>':$SERVERNAME}</li>
    117         <li>{'Set the <b>Default Access Type</b> to <em>Read only</em>'|@translate}</li> 
     117        <li>{'Set the <b>Default Access Type</b> to <em>Read only</em>'|@translate}</li>
    118118      {elseif $p=='Tumblr'}
    119119        <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|@translate|sprintf:'<b>Application Website</b>, <b>Default Callback URL</b>':$SERVERNAME}</li>
     120      {elseif $p=='Instagram'}
     121        <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|@translate|sprintf:'<b>Website</b>':$SERVERNAME}</li>
    120122      {/if}
    121123     
  • extensions/oAuth/auth.php

    r20337 r20368  
    6565  else if (isset($_GET['init_auth']))
    6666  {
    67     $params = array('hauth_return_to', get_absolute_root_url() . OAUTH_PATH . 'auth.php?provider='.$provider.'&amp;auth_done=1');
    6867    if ($provider == 'OpenID')
    6968    {
  • extensions/oAuth/include/functions.inc.php

    r20293 r20368  
    44function load_hybridauth_conf()
    55{
    6   global $hybridauth_conf;
     6  global $hybridauth_conf, $conf;
    77 
    88  if (file_exists(PHPWG_ROOT_PATH.OAUTH_CONFIG))
     
    1010    $hybridauth_conf = include(PHPWG_ROOT_PATH.OAUTH_CONFIG);
    1111    $hybridauth_conf['base_url'] = OAUTH_PUBLIC;
     12    if (!empty($conf['oauth_debug_file']))
     13    {
     14      $hybridauth_conf['debug_mode'] = true;
     15      $hybridauth_conf['debug_file'] = $conf['oauth_debug_file'];
     16    }
    1217    return true;
    1318  }
  • extensions/oAuth/include/providers_stats.inc.php

    r20337 r20368  
    2323    'label'             => 'Instagram',
    2424    'provider_name'     => 'Instagram',
     25    'callback'          => true,
     26    'require_client_id' => true,
    2527    'new_app_link'      => 'http://instagram.com/developer/clients/manage',
    2628    'userguide_section' => null,
  • extensions/oAuth/language/fr_FR/help.lang.php

    r20324 r20368  
    66$lang['Fill out any required fields such as the application name and description'] = 'Remplissez tous les champs demandés comme le nom et la description de l\'application';
    77$lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Donnez cette URL comme Callback/Redirect URL pour votre application : <em>%s</em>';
    8 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Mettez votre nom de domaine dans les chmpas %s. Il doit correspondre à <em>%s</em>';
     8$lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Mettez votre nom de domaine dans les champs %s. Il doit correspondre à <em>%s</em>';
    99$lang['Select <em>Website with facebook authentication</em> as application type'] = 'Choisissez <em>Site web avec authentification facebook</em> comme type d\'application';
    1010$lang['Set the <b>Application Type</b> to <em>Web Application</em>'] = 'Sélectionnez <em>Web Application</em> pour <b>Application Type</b>';
  • extensions/oAuth/template/profile.tpl

    r20323 r20368  
    2929  {'Logged with'|@translate} : <b>{$OAUTH_PROVIDER}</b><br>
    3030  <b>{'Username'|@translate}</b> : {$OAUTH_USERNAME}<br>
    31   <b>{'Profile URL'|@translate}</b> : <a href="{$OAUTH_PROFILE_URL}">{$OAUTH_PROFILE_URL|truncate:40:' ... ':true:true}</a>
     31  {if $OAUTH_PROFILE_URL}<b>{'Profile URL'|@translate}</b> : <a href="{$OAUTH_PROFILE_URL}">{$OAUTH_PROFILE_URL|truncate:40:' ... ':true:true}</a>{/if}
    3232</div>
Note: See TracChangeset for help on using the changeset viewer.