Hi,
Thank you veeery much for kind help.
I did as you explanied and placed <div id="page">
<div id="google-button"><?php include('gouth.php')?>
</div>
<div id="graphicwrap">
I added css code to custom css page of Aardvark Post-it setting, tried putting the css code manualy in files as well, but to no avail.
Of course, just as you suggested it helped a bit but I cannot position it so the authentication buttons are over loging fields.
Actually the buttons seem not to repond to css changes.
Could you please take a look: http://e.poznajsiebie.org and tell me what I am doing wrong.
please, find gouth.php attached
Regards,
Marcin
<?php //get previous auth provider $allauthproviders = optional_param('allauthproviders', false, PARAM_BOOL); $cookiename = 'MOODLEGOOGLEOAUTH2_'.$CFG->sessioncookie; if (empty($_COOKIE[$cookiename])) { $authprovider = ''; } else { $authprovider = $_COOKIE[$cookiename]; } ?> <center> <br/><br/><br/> <?php echo get_string('signinwithanaccount','auth_googleoauth2'); ?> <br/><br/> <div style="width:'1%'"> <?php $displayprovider = ((empty($authprovider) || $authprovider == 'google' || $allauthproviders) && get_config('auth/googleoauth2', 'googleclientid')); $providerdisplaystyle = $displayprovider?'display:inline-block;':'display:none;'; ?> <div class="singinprovider" style="<?php echo $providerdisplaystyle; ?>"> <a href="https://accounts.google.com/o/oauth2/auth?client_id=<?php echo get_config('auth/googleoauth2', 'googleclientid'); ?>&redirect_uri=<?php echo $CFG->wwwroot; ?>/auth/googleoauth2/google_redirect.php&scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email&response_type=code"> <img src="<?php echo $CFG->wwwroot ?>/theme/YOURTHEME/pix/GOOGLELOGO.jpg" /> </a> </div> <?php $displayprovider = ((empty($authprovider) || $authprovider == 'facebook' || $allauthproviders) && get_config('auth/googleoauth2', 'facebookclientid')); $providerdisplaystyle = $displayprovider?'display:inline-block;':'display:none;'; ?> <div class="singinprovider" style="<?php echo $providerdisplaystyle; ?> padding-left: 20px;"> <a href="https://www.facebook.com/dialog/oauth?client_id=<?php echo get_config('auth/googleoauth2', 'facebookclientid'); ?>&redirect_uri=<?php echo $CFG->wwwroot; ?>/auth/googleoauth2/facebook_redirect.php&scope=email&response_type=code"> <img src="<?php echo $CFG->wwwroot ?>/theme/YOURTHEME/pix/FACEBOOKLOGO.png" /> </a> </div> <?php $displayprovider = ((empty($authprovider) || $authprovider == 'messenger' || $allauthproviders) && get_config('auth/googleoauth2', 'messengerclientid')); $providerdisplaystyle = $displayprovider?'display:inline-block;':'display:none;'; ?> <div class="singinprovider" style="<?php echo $providerdisplaystyle; ?>"> <a href="https://oauth.live.com/authorize?client_id=<?php echo get_config('auth/googleoauth2', 'messengerclientid'); ?>&redirect_uri=<?php echo $CFG->wwwroot; ?>/auth/googleoauth2/messenger_redirect.php&scope=wl.basic wl.emails wl.signin&response_type=code"> <img src="<?php echo $CFG->wwwroot ?>/theme/YOURTHEME/pix/MESSENGERLOGO.jpg" /> </a> </div> </div> <?php if (!empty($authprovider)) { ?> <br/><br/> <div class="moreproviderlink"> <a href='<?php echo $CFG->wwwroot . (isset($CFG->alternateloginurl) ? $CFG->alternateloginurl : '/login/index.php') . '?allauthproviders=true'; ?>' onclick="changecss('singinprovider','display','inline-block');"> <?php echo get_string('moreproviderlink', 'auth_googleoauth2');?> </a> </div> <?php } ?>