anukagni Posted May 27, 2006 Share Posted May 27, 2006 hi, all iam new to this forum and i want to get some clarification for the great guys like u ,, my issue is iam now working with linux webserver in this iam using the mail option as Squrriel mail the opening page of SM is so simply so my boss told me to change the openning page i.e. Log in page . for that i have created an opening page using HTML becoz iam not aware of PHP .. now what i need is i wnat to get the HTML to PHP and i want to make it as Opening page instead of SM's opening logon page .. Guy's pls help me in this issue... Thanks in advancebyepaps Link to comment Share on other sites More sharing options...
SFB Posted May 27, 2006 Share Posted May 27, 2006 I am a little confused on what you are doing. do you want to create an index.php page that you go to before the SM page? Just so you know php writes html for the browser to read. Link to comment Share on other sites More sharing options...
justsomeguy Posted May 27, 2006 Share Posted May 27, 2006 His web server has the SquirrelMail (webmail for nuts) program installed, and he wants to skin the login page.Anukagni - I'm sure the easiest thing to do is just to make your own page. Make your own login page, however you want it to look. When you have your page and it looks all pimp, take a look at this:http://www.squirrelmail.org/wiki/EmbeddedSquirrelMailLoginThey give you the javascript, HTML, and PHP that you need to add to your own file to get it to work. Link to comment Share on other sites More sharing options...
reportingsjr Posted May 27, 2006 Share Posted May 27, 2006 or, you could just make the form on a seperate webpage just like the squirrel mail login screen? I use squirrel mail.. ☺ Link to comment Share on other sites More sharing options...
anukagni Posted May 30, 2006 Author Share Posted May 30, 2006 or, you could just make the form on a seperate webpage just like the squirrel mail login screen? I use squirrel mail.. ☺<{POST_SNAPBACK}> Hi, pls be clear that i dont know PHP i know HTML and i have Designed HTML page but how can i convert into php file....pls Link to comment Share on other sites More sharing options...
justsomeguy Posted May 30, 2006 Share Posted May 30, 2006 Did you read the page I linked to? They tell you exactly how to do it, there's not much use in copying and pasting everything here. Link to comment Share on other sites More sharing options...
anukagni Posted May 30, 2006 Author Share Posted May 30, 2006 Did you read the page I linked to? They tell you exactly how to do it, there's not much use in copying and pasting everything here.<{POST_SNAPBACK}> I did and i got the think but what i want is i am now using Squirrle Mail Versioned 1.2.7-4 and the concept u said will works on Version 1.5.1.. & my server as version Red Hat 8 .. i want to know weather SM 1.5.1 will support this Red hat .... pls reply me .. i use the code as follow<html><body background="c:\Documents and Settings\ADMIN\Desktop\index.gif"></body><p><head><center><img src="c:\Documents and Settings\ADMIN\Desktop\building.jpg"width="500" height="200"></center></head><script language="JavaScript" type="text/javascript"><!--function squirrelmail_loginpage_onload() { document.forms[0].js_autodetect_results.value = '1'; for (i = 0; i < document.forms[0].elements.length; i++) { if (document.forms[0].elements.type == "text" || document.forms[0].elements.type == "password") { document.forms[0].elements.focus(); break; } }}// --></script></head><body onload="squirrelmail_loginpage_onload()"><Center><form method="post" action="http://linux.ciba.com/src/redirect.php"> <input type="hidden" name="js_autodetect_results" value="0"> <input type="hidden" name="just_logged_in" value="1"><table COLS="1" WIDTH="350"> <tr> <td WIDTH="30%" ALIGN=right>Username:</td> <td WIDTH="*" ALIGN=left> <input type="text" name="login_username" size="20"> </td> </tr> <tr> <td WIDTH="30%" ALIGN=right>Password:</td> <td WIDTH="*" ALIGN=left> <input type="password" name="secretkey" size="20"> </td> </tr></table></td></tr><table> <tr><td> <input type="submit" value="Login"> </tr></td></table></td></tr></form><Center> </body></html> My problem is when enterd the Username & password correctlly it redirecting to the Setup but when i entered wronglly i does not redirecting to my page it goes to default SM pagepls help mebyepaps Link to comment Share on other sites More sharing options...
justsomeguy Posted May 30, 2006 Share Posted May 30, 2006 i want to know weather SM 1.5.1 will support this Red hatI don't know, I'm not on the SquirrelMail team. You can find out at the SquirrelMail site I'm sure, but I assume it would.My problem is when enterd the Username & password correctlly it redirecting to the Setupbut when i entered wronglly i does not redirecting to my page it goes to default SM pageRight now your login form gets submitted to this page:http://linux.ciba.com/src/redirect.phpYou need to do one of three things. Either edit that page to get it to redirect to your own page, make a duplicate of that page and point it to yours and change where your form submits to, or replace the current SquirrelMail login with yours. Link to comment Share on other sites More sharing options...
anukagni Posted May 31, 2006 Author Share Posted May 31, 2006 I don't know, I'm not on the SquirrelMail team. You can find out at the SquirrelMail site I'm sure, but I assume it would.Right now your login form gets submitted to this page:http://linux.ciba.com/src/redirect.phpYou need to do one of three things. Either edit that page to get it to redirect to your own page, make a duplicate of that page and point it to yours and change where your form submits to, or replace the current SquirrelMail login with yours.<{POST_SNAPBACK}> I did in the Linux server by converting this HTML file into PHP file and its working in SM ... Any body tell this SM Version 1.5.1 is on development & when it complete in2 full version weather it makes any problem for my server ...pls give my any advice becoz via my sever lotz for mails is being transfer and it uses internationally...if u have any doubt pld reply me... byepaps Link to comment Share on other sites More sharing options...
justsomeguy Posted May 31, 2006 Share Posted May 31, 2006 As a general rule, people writing software generally don't make wide changes right before release that breaks what the software is running on, so I think your server is probably safe. If you have concerns, the place to ask is at the SquirrelMail site. But since SquirrelMail is a PHP application, and you probably aren't going to make any changes to PHP, I doubt that the software would have any effect on the server at all. But like I said, if you have questions, the place to ask is at the SquirrelMail site. Link to comment Share on other sites More sharing options...
anukagni Posted June 1, 2006 Author Share Posted June 1, 2006 HI , Thanks for ur help i ill take a look at the SM team and i ill backbyepaps Link to comment Share on other sites More sharing options...
anukagni Posted June 9, 2006 Author Share Posted June 9, 2006 Hi i have try the through i didnt get any answers i played an backgrond colour for the web page and i convert but back ground is not appearing..pls give me some idea..pap Link to comment Share on other sites More sharing options...
justsomeguy Posted June 9, 2006 Share Posted June 9, 2006 Show me how you're specifying the background color. Link to comment Share on other sites More sharing options...
anukagni Posted June 12, 2006 Author Share Posted June 12, 2006 Show me how you're specifying the background color.<{POST_SNAPBACK}> Hi, I have created an jpg background using Photoshop. i did the below html code<body background="file/root/mail/background.jpg"></body>I added <?php> in the very top & <?> in the end and also give an logo as below<center><img src="file/root/mail/logo.jpg"width="500" height="200"></center>when i tried as php file in an linux web sever the logo appeares but the backgroun color is not appear..pls help me Link to comment Share on other sites More sharing options...
justsomeguy Posted June 12, 2006 Share Posted June 12, 2006 Specify the background image with CSS instead:<body style="background-image: URL(file/root/mail/background.jpg)">Also, it doesn't do anything to add <?php> at the top and <?> at the end. If you want to use PHP code, you need to surround it with <?php and ?>, but if you don't have any PHP code it doesn't do anything to just put those tags around. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now