TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 02, 2024, 12:25:41 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,176
  • Total Topics: 21,220
  • Online today: 113
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 98
  • Total: 98

A working gmail login block code!!!

Started by zooner, March 04, 2006, 02:15:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zooner

I have come across scripts for other email addresses (yahoo, hotmail, etc).

it was the gmail one that I could find, also the one I needed.

RoarinRow

Quote from: humanporkrind on March 05, 2006, 10:40:52 AM
What would be cool if it can be done is to make it an all access to all email accounts by order of a dropdown box... Ie put in your name and pass then select from a drop down and select your email(yahoo, gmail, hotmail, etc)

That would be cool.   O0

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

alan s

love this script. thanks for all the hard work that went into it

Hawkes

Just a thought, but it would be great if this checked the member's profile to see if they have a GMail account populated (using the gmail field mod of course).  That way if you don't have gmail, you don't see it.

firefly

First, thanks for this code: it works a treat.
The proposal by Hawkes is good, both specifically and in general, for I am keen to see more cross-referencing of user information (e.g. with user articles and mods such as arcade results and coppermine 'my gallery').

zooner

it'd be very interesting to use the script and pair it with this:

https://www.google.com/hosted/Home


firefly

Quote from: zooner on March 06, 2006, 10:25:59 AM
it'd be very interesting to use the script and pair it with this:

https://www.google.com/hosted/Home
A good link - I've just gone there and applied for my site to join. Thanks.

RoarinRow

I put this gmail code in my left block and noticed a yellow warning triangle in the bottom left of my broswer window.

See attached error.  When I Googled the error message I find this - http://www.gmailforums.com/lofiversion/index.php/t14844.html

When I disabled the Gmail block the yellow triangle error goes away.

[attachment deleted by admin]

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Mitch

Hope you dont mind but I centered everything and just added a link to gmail and a gmail image just to make it look better.

<center>
<a href="https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%3Fui%3Dhtml%26zy%3Dl&ltmpl=yj_wsad&ltmplcache=2&hl=en">
<img src="http://mail.google.com/mail/help/images/logo1.gif"></a>

<script type="text/javascript">
<!--

function gaia_setFocus() {
  var f = null;
  if (document.getElementById) {
    f = document.getElementById("gaia_loginform");
  } else if (window.gaia_loginform) {
    f = window.gaia_loginform;
  }
  if (f) {
    if (f.Email.value == null || f.Email.value == "") {
      f.Email.focus();
    } else {
      f.Passwd.focus();
    }
  }
}

// -->
</script>
<script type="text/javascript">
<!--

if (is_browser_supported) {
  var form = el("gaia_loginform");
  var url = form["continue"].value;
  url = StripParam(url, "ui=html");
  url = StripParam(url, "zy=l");
  form["continue"].value = url;
}
// -->
</script>

<div style= id="gaia_loginbox" class="body">
<form action="https://www.google.com/accounts/ServiceLoginAuth" id="gaia_loginform" method="post" target="new">       
<input type="hidden" name="continue" value="http://gmail.google.com/gmail?ui=html&zy=l">
<input type="hidden" name="service" value="mail">

<table cellpadding="1" cellspacing="0" border="0" id="gaia_table"><tr>
<td class="alt1" style="font-family: arial,sans-serif">
<font color="#aa1002" style="font-family: arial,sans-serif"> <div class="errorbox-good">  </div> </font> </td> </tr> <tr>
<td class="alt1" nowrap style="font-family: arial,sans-serif" align="center">
<font size="-1" face="Arial, sans-serif" style="font-family: arial,sans-serif">Username</font></td>
</tr> <tr>
<td class="alt1" style="font-family: arial,sans-serif" align="center">
<div align="left" style="font-family: arial,sans-serif"> <input type="text" name="Email" value="" size="18"></div> </td>
</tr> <tr>
<td class="alt1" style="font-family: arial,sans-serif" align="center">
<font size="-1">Password</font></td>
</tr> <tr>
<td class="alt1" style="font-family: arial,sans-serif" align="center">
<div class="alt1" align="left" style="font-family: arial,sans-serif"> <input type="password" name="Passwd" autocomplete="off" size="18"></div> </td>
</tr><tr>
<td class="alt1" style="font-family: arial,sans-serif" align="center">
<div class="alt1" style="font-family: arial,sans-serif"> <input type="submit" name="null" value="Sign in"> </div> </td> </tr> </table>  </form> </div>
</div>
</center>

crip

Still throws out the same error in IE..