PDA


View Full Version : Google GMail Login Block


Boosted MR-S
03-04-2005, 05:51 AM
<table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet]
GMail Login</b></span></td>
</tr>
<tr>
<td class="alt1" style="text-align:center; font-family:arial,sans-serif" nowrap=nowrap>



<div id=login style="font-family: arial,sans-serif">
<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> <div style= id="gaia_loginbox" class="body"> <form action="https://www.google.com/accounts/ServiceLoginAuth" id="gaia_loginform" method="post"> <input type="hidden" name="continue" value="http://gmail.google.com/gmail?ui=html&amp;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">
&nbsp;<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">
&nbsp;<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>

<script>
<!--
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>



</tr>
</table>
<br/>


There is probly a lot of excessive coding in here, but basically it works perfectly and it is formatted correctly. If you want to get creative with the coloring change the Class from Alt2 to Alt1 and make the tables alternate colors.

Enjoy!

xGNews
03-04-2005, 06:49 AM
Screenshots?

MaTtY PiMpZ
03-04-2005, 08:09 AM
where do u put the code, and do u add a module, if so what do u call all the steps

Boosted MR-S
03-04-2005, 02:12 PM
This works exactly like my Webmail Module same look and everything. Install instructions:

Create a new template: Name adv_portal_ gmail
Add new module: Module Name = Gmail Login Temple = gmail active = yes

MaTtY PiMpZ
03-04-2005, 04:33 PM
thanks

Boosted MR-S
03-04-2005, 08:03 PM
Your welcome. I tried the AOL module, but I still need to do some work on it. I am stumped on the Yahoo one though, I had it working psoted the code, then it stopped working.

MaTtY PiMpZ
03-04-2005, 08:26 PM
MR-2ZZ if u have time hit me up on aim bkzjester69

TTG
03-05-2005, 07:18 PM
Thanks .. very useful.

BTW, if anyone copies and pastes the "adv_portal_ gmail" provided in post #4 .. remove the space between "_ gmail" or it won't work .. I know, I was that idiot :)

MaTtY PiMpZ
03-06-2005, 09:00 PM
thanks!

yinyang
03-12-2005, 04:09 PM
does anyone have this installed and working so i can see what it looks like?

TTG
03-12-2005, 04:39 PM
Take a look at my cmps .. works well

kanyewest69
03-12-2005, 06:30 PM
nice will you when i get homepage up ;)

kazay
05-16-2005, 06:28 AM
How come after I install it didnt show up? I've done every single instruction given.

PGZ
05-19-2005, 03:21 PM
How can you make it open in a new window ??

PGZ

xtreme-mobile
06-13-2005, 05:43 PM
how do i install the new module it says bb code, template and php file or something

which one do i use?

LEAD_WEIGHT
06-13-2005, 08:59 PM
how do i install the new module it says bb code, template and php file or something

which one do i use?
Are u inquiring to use it in CMP 2.0 then the template file but if u going to wrap it then u need to follow the instructions in how to do that .

A hint.
http://www.vbadvanced.com/forum/showthread.php?t=8654
http://www.vbadvanced.com/forum/showthread.php?t=8654

djnth
04-04-2006, 07:20 PM
I'm using a Beta version of Google's new Gmail hosted email for my domain azdancemusic.com but I would like to put a login box on my front page. Do you think I can just change the URL in the above code?

infested
04-12-2006, 12:22 PM
I adjusted the code to try and make it work for gmail hosted, but for now it just forwards to the login page. Unless of course your logged in prior then it will go to the inbox. Anyone have a solution for this?


-Jon

djnth
04-13-2006, 12:44 AM
http://mail.google.com/hosted/azdancemusic.com is the URL to my hosted login page, could I just put it in the code above somewhere? I emailed google about getting some code to use to have a login on my site but they replied and didn't answer my question so I sent it again.

djnth
04-19-2006, 04:43 AM
They sent me an email saying it can't be done yet.