rejetto forum

maybe someone else could use this idea or improve it....

ledufe · 7 · 5652

0 Members and 1 Guest are viewing this topic.

Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
Simple FORM to Register using the default mail software from client machine, snce hfs does not support any server side code....

this is the code used

locate the head of your template and insert this code between the tag:

Code: [Select]
...
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>HFS %folder%</title>
<style type="text/css">
%style%
</style>
<link rel="shortcut icon" href="favicon.ico" />
<script language="javascript">
function popUpRegistration(){
win =  window.open('HFS-Registration','Registration', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=400,left = 0,top = 0');
win.document.write("<div id='heading'>");
win.document.write("<h1>");
win.document.write("<img src='/~img_folder'>");
win.document.write("%host%");
win.document.write("</h1>");
win.document.write("</div>");
win.document.write("<div class='grid'>");
win.document.write("<strong>Email Registration");
win.document.write("</strong>");
win.document.write("<FORM NAME='HFS-RegForm' Enctype='text/plain' action='mailto:YOUREMAIL@SOMESERVER?Subject=HFS-Registration' method='post'>");
win.document.write("<span class='style3'>Register to acess the protected area </span><br>");
win.document.write("<br>");
win.document.write("<b>");
win.document.write("Real Name: <input name='field_name' type='text' size='80'><br>");
win.document.write("Desired Password: <input name='field_password' type='text' size='10'> 10 chars max. <br>");
win.document.write("Connection Speed: <input type='text' name='field_speed'> Kbps. <br>");
win.document.write("E-mail: <input type='text' name='field_email'><br>");
win.document.write("Login Name: <input type='text' name='field_login'> if different from Real NAME <br>");
win.document.write("<input type='submit' value='Send'></b>");
win.document.write("</FORM>");
win.document.write("<p class='style1'>the info above will be sended to this HFS admin e-mail. and will be checked before the registration be accepted, you will recieve a e-mail confirmation from");
win.document.write("<a href='mailto:YOUREMAIL@SOMESERVER' class='style2'>");
win.document.write("Administrator</a>");
win.document.write(".");
win.document.write("</p>");
win.document.write("</div>");
}
</script>
</head>
...

dont forget to edit where is writed "YOUREMAIL@SOMESERVER"

and to call this form
use this code in ANY part of your template

Code: [Select]
<a href="javascript:popUpRegistration();" class=register><img src="/~img20" /> Register</a>
you can change and share here your tests....

here some sample....
sample 1

sample 2


and yeah!, it is javascript, but only to do the pop-up, and it use the default client mail, work on all browsers...



[attachment deleted by admin]
<<LeDuFe>>


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
Doesn't seem to work with Opera.  The registration input values aren't passed on to the email compose page.
maverick


Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
Doesn't seem to work with Opera.  The registration input values aren't passed on to the email compose page.
on my new opera, it works, what is your version?

look at this:


and here another cool test

« Last Edit: November 12, 2006, 05:45:09 PM by ledufe »
<<LeDuFe>>


Offline TCube

  • Tireless poster
  • ****
    • Posts: 440
    • View Profile
Hello l'ami Ledufe !

I was surprised when I saw this (att. N°1) after embbeding one video on HFS  I've no clue how it's done but it's quite clever !

So there it is : the same registration pop-up form (bit modified) unto a "SHARE" button on HFS menu. (att.N°2)
It's applied only for users within diff templates when access is "public". 

As for my use :  just to forward from time to time a new things to groups by outlookmail.
Keep up Ledufe !

TCube


Note : IE/FF/Opera all fine / impossible to drag and drop a link when pop-up overlaps the browser windows (ok in Opera att. N°3)  ???

Edit : Original video dedicated to TSG, specialist in University life http://www.collegehumor.com/video:1781938    ;D
« Last Edit: October 26, 2007, 03:47:55 PM by TCube »
Make it idiot-proof and I will make a better idiot


Offline ELEVENNNN

  • Tireless poster
  • ****
    • Posts: 257
  • havent been here lately, still wont be here?
    • View Profile
Very good find LeDuFe. Here is a more correct way of phrasing the registration page so it's more professional:

"The info above will be sent to the HFS adminstrator's e-mail and will be verified before your registration is accepted.  You will recieve a e-mail confirmation from the Administrator"

Awesome idea LeDuFe, I will be playing with this shortly although I might pretty up the boxes a little :) Great work

EDIT: I will try this when I get off work and let you know the outcome on IE6/7. (Did you test on both?)
« Last Edit: October 26, 2007, 09:47:00 PM by ELEVENNNN »
This is going to take a long time
.................+...........................................
...................+.............+.................+.........
......................................


Offline TCube

  • Tireless poster
  • ****
    • Posts: 440
    • View Profile
My misktake, did not take the time to monitor browser behavior  :P
Indeed when under IE and FF the pop up form collaps into the task bar, all U have to do is drag & drop unto the task bar, hold  right click, wait a second, it will automatically open and then U can slip in the link into the form.
@11 _ I use both "registration" & "share" works IE6-7 ... let us see later the new box ok ?

TCube
« Last Edit: October 27, 2007, 07:57:16 PM by TCube »
Make it idiot-proof and I will make a better idiot


Offline ELEVENNNN

  • Tireless poster
  • ****
    • Posts: 257
  • havent been here lately, still wont be here?
    • View Profile
Definitely has potential, works in IE, thanks ledufe.. if i was remotely decent at coding (i'm not) i would expand its use.

thanks regardless.
This is going to take a long time
.................+...........................................
...................+.............+.................+.........
......................................