|
Pages: [1]
|
 |
|
Author
|
Topic: Templates (Read 2669 times)
|
|
apollo
Posts: 6
|
I have created a new login template to integrate the login into my client control panel area, however the template is being corrupted when going to the index.php, running SnippetPro?. I have verified the template is correct on the server and that it is correct if I link to .../templates/login.html?
|
|
|
|
|
admin
Forum Administrator

Posts: 3070
SnippetMaster Author
|
[-] |
Templates
« Reply #1 on: May 05, 2003, 05:59:46 PM » |
|
To login, you should go to index.php. I've never tried to integrate the login with another program so I'm not certain if this is possible. Mostly because the login uses routines found in the index.html page. I suppose if you were able to copy the routines used you might get it working. 
|
|
|
|
|
|
apollo
Posts: 6
|
[-] |
Templates
« Reply #2 on: May 05, 2003, 10:44:45 PM » |
|
The template just replaces the original and does contain all of the original code, but for some reason it seems to be re-writing the html code or altering it in some way. Should it not just wait for the form to be submitted and take action then? In other words the new template has all the attributes of the original, but appears to modify it? Basically I am altering the CSS traits and size of the HTML page. I am also using JAVA popups to display help about items (like tool tips). The funny thing is that the original code imy template is drastically re-written when the progarm runs? Missing the input text boxes, changing the fonts, etc. I would say that about 25% of the code is missing or altered when run.
Here is a section of the code as it resides on the server in the .../templates Folder... <!-- Edit Login Form --> <fieldset align=center style="font-family: Verdana; font-size: 8pt; color: #000000; width: 96%; border: 1px solid #F4B800; padding: 2"> <legend align="left"> <p align="left"><font size="1" color="#F4B800">Editor Login</font></p></legend> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="96%" id="AutoNumber5"> <tr> <td width="100%"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber6"> <form action="index.php" method="post"> <?php if($error == 1){ ?> <tr class=form> <td width="87%" align="right" colspan="5"> <p align="center"><A HREF="javascript:void(0);" onMouseOver="overlib('If Enabled For Your Account You May Login Here To Edit Your Web Site Pages.', CAPTION, 'Web Site Editor')" onMouseOut="nd()">Client Web Page/Site Editor</A></td> </tr> <tr class=form> <td width="18%" align="right"> <td width="24%" align="center"> <p align="center"> <input class=inptxt type="text" name="user" value="" align="right" size="20"><A HREF="javascript:void(0);" onMouseOver="overlib('Please Enter The Username Assigned To Your Account. This Option Must Be Enabled In Order For You To Edit Your Web Pages.', CAPTION, 'Enter Your Username - Required')" onMouseOut="nd()"><?php echo $text['username']; ?></A>:</td> <td width="25%" size="15"></td> <td width="18%" size="15"> <td width="24%" align="right"> <p align="center"> <input class=inptxt type="password" name="pass" size="20" value=""><A HREF="javascript:void(0);" onMouseOver="overlib('Please Enter The Password Assigned To Your Account. This Option Must Be Enabled In Order For You To Edit Your Web Pages', CAPTION, 'Enter Your Password - Required')" onMouseOut="nd()"><?php echo $text['password']; ?></A>:</td> <td width="25%" size="15"></td> <td width="3%" align="right"> <p align="center"> </td> </tr> <tr class=form> <td width="87%" align="right" colspan="5"> <p align="center"> </td> </tr> <tr class=form> <td width="18%" align="right"><A HREF="javascript:void(0);" onMouseOver="overlib('Please Select You Language To Use While Editing Your Web Site.', CAPTION, 'Language')" onMouseOut="nd()"><?php echo $text['language']; ?></A>:</td> <td width="42%" align="center" colspan="2"> <SELECT CLASS="dropdown" name="language" style="width: 184" onchange="window.location='index.php' + '?language=' + this.options[this.selectedIndex].value;"> <?php echo $language_options_HTML; ?> </SELECT></td> <td width="24%" align="center"> </td> <td width="3%" align="center"> </td> </tr> <tr class=form> <td width="87%" align="right" colspan="5"> <p align="center"><?php echo $text['error_login']; ?></td> </tr> <?php } ?> <tr> <td width="18%" align="right"><A HREF="javascript:void(0);" onMouseOver="overlib('Please Enter The Username Assigned To Your Account. This Option Must Be Enabled In Order For You To Edit Your Web Pages.', CAPTION, 'Enter Your Username - Required')" onMouseOut="nd()"><?php echo $text['username']; ?></A></td> <td width="66%" align="center" colspan="3"> <p align="left"> <input type="checkbox" name="remember" value="y" <?php if($remember == "Y") print "checked"; ?>><A HREF="javascript:void(0);" onMouseOver="overlib('Allows You To Automatically Login Without Typing Your Username And Password Each Time - Do Not Use On Public Computers.', CAPTION, 'Remember Me - Optional')" onMouseOut="nd()"><font size="1"><?php echo $text['auto_login']; ?></TD></A><font size="1"> </td> <td width="25%" size="15" name="pass" value=""></td> <td width="3%" align="right"> <p align="center"> </td> </tr> <tr class=form> <td width="87%" align="right" colspan="5"> </td> </tr> <tr class=form> <td width="87%" align="right" colspan="5"> <p align="center"><?php echo $text['error_login']; ?></td> </tr> <tr class=form> <td width="87%" align="right" colspan="5"> <p align="center"> <input class=inpbut type="button" value="<?php echo $text['login_button']; ?>" name="submit" style="color: #800000; font-weight:normal""><input type="hidden" name="action" value="view"> </td> </tr> </form> <tr class=form> <td width="87%" align="right" colspan="5"> <p align="center"> </td> </tr> </table> </td> </tr> </table> </center> </div> </fieldset> <!-- End Edit Login Form -->
Here Is The Same Section AFTER running (Viewed AS Source).... <!-- Edit Login Form --> <fieldset align=center style="font-family: Verdana; font-size: 8pt; color: #000000; width: 96%; border: 1px solid #F4B800; padding: 2"> <legend align="left"> <p align="left"><font size="1" color="#F4B800">Editor Login</font></p></legend> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="96%" id="AutoNumber5"> <tr> <td width="100%"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber6"> <form action="index.php" method="post"> <tr> <td width="18%" align="right"><A HREF="javascript:void(0);" onMouseOver="overlib('Please Enter The Username Assigned To Your Account. This Option Must Be Enabled In Order For You To Edit Your Web Pages.', CAPTION, 'Enter Your Username - Required')" onMouseOut="nd()">Username</A></td> <td width="66%" align="center" colspan="3"> <p align="left"> <input type="checkbox" name="remember" value="y" ><A HREF="javascript:void(0);" onMouseOver="overlib('Allows You To Automatically Login Without Typing Your Username And Password Each Time - Do Not Use On Public Computers.', CAPTION, 'Remember Me - Optional')" onMouseOut="nd()"><font size="1">Login automatically each visit</TD></A><font size="1"> </td> <td width="25%" size="15" name="pass" value=""></td> <td width="3%" align="right"> <p align="center"> </td> </tr> <tr class=form> <td width="87%" align="right" colspan="5"> </td> </tr> <tr class=form> <td width="87%" align="right" colspan="5"> <p align="center">*** Invalid username and/or password! ***</td> </tr> <tr class=form> <td width="87%" align="right" colspan="5"> <p align="center"> <input class=inpbut type="button" value="Login" name="submit" style="color: #800000; font-weight:normal""><input type="hidden" name="action" value="view"> </td> </tr> </form> <tr class=form> <td width="87%" align="right" colspan="5"> <p align="center"> </td> </tr> </table> </td> </tr> </table> </center> </div> </fieldset> <!-- End Edit Login Form -->
|
|
|
|
|
admin
Forum Administrator

Posts: 3070
SnippetMaster Author
|
[-] |
Templates
« Reply #3 on: May 05, 2003, 11:04:07 PM » |
|
I'm not certain how best to help you, as I typically don't do customizations for free.  I'm sure you understand... (I do have to work and try to make a living, etc..) The only thing I suggest is to keep "playing" with the templates and eventually you'll figure out how to get it to display without losing any code. Sorry! 
|
|
|
|
|
|
apollo
Posts: 6
|
[-] |
Templates
« Reply #4 on: May 05, 2003, 11:55:34 PM » |
|
Thanks,
I absolutely understand... I'll try building off a copy of the original template step by step until it fails.
|
|
|
|
|
admin
Forum Administrator

Posts: 3070
SnippetMaster Author
|
[-] |
Templates
« Reply #5 on: May 06, 2003, 07:15:16 AM » |
|
Good luck! Let me know how things go... 
|
|
|
|
|
|
apollo
Posts: 6
|
It's working now... For some reason the tags "<?php echo $text['username']; ?>" etc. were causing the problem?? Thanks... 
|
|
|
|
|
|
apollo
Posts: 6
|
[-] |
Ooops...
« Reply #7 on: May 07, 2003, 10:58:27 PM » |
|
 A retraction is in order here! After re-evaluating the code... it appears that the problem was in MY code, a miss-placed " " " (quote) and a missing " > ", sorry about that!! Everything works fine using the original TAGS. Now on to... getting the images to show correctly, associating logged in user with only their directories and locking font to original font of edited page. Thanks Again!
|
|
|
|
|
|
|
Pages: [1]
|
|
|
 |