News and Announcements => General Discussion => Topic started by: kamalk on April 15, 2008, 03:38:16 PM
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: kamalk on April 15, 2008, 03:38:16 PM
I am a complete non-techie with basic web design skills and little HTML. Now I have created a static website and as luck would have it, my hosting provider bluehost offered an automated RC install. I have gone ahead & offered free email to all my website members. Now I need to do the following for which I need your help and would be highly obliged for any/all assistance:
1. How do I integrate RC login form box into a corner of my homepage, so that users can immediately login when they visit? 2. How can a logout bring them out automatically back to the homepage? 3. How can I add my website colors & logos to the webmail interface?
Pls help..I have gone mad looking for specific answers..
Title: Re: Integrate RC login form in a box within my homepage..static HTML website
Post by: sfreemanRCM on April 15, 2008, 06:53:51 PM
Quote from: kamalk I am a complete non-techie with basic web design skills and little HTML. Now I have created a static website and as luck would have it, my hosting provider bluehost offered an automated RC install. I have gone ahead & offered free email to all my website members. Now I need to do the following for which I need your help and would be highly obliged for any/all assistance:
1. How do I integrate RC login form box into a corner of my homepage, so that users can immediately login when they visit? 2. How can a logout bring them out automatically back to the homepage? 3. How can I add my website colors & logos to the webmail interface?
Pls help..I have gone mad looking for specific answers..
Yeah, what he said!!!
Same problem here - would like users in my phpBB web site to be able to jump straight to their RC email account and bypass login, and be able to jump back.
Can this be done??? Securely, of course!! ;)
Thanks for any help, much appreciated.
Title: Re: Integrate RC login form in a box within my homepage..static HTML website
Post by: Yann on April 15, 2008, 07:40:01 PM
Quote from: kamalk I am a complete non-techie with basic web design skills and little HTML. Now I have created a static website and as luck would have it, my hosting provider bluehost offered an automated RC install. I have gone ahead & offered free email to all my website members. Now I need to do the following for which I need your help and would be highly obliged for any/all assistance:
1. How do I integrate RC login form box into a corner of my homepage, so that users can immediately login when they visit? 2. How can a logout bring them out automatically back to the homepage? 3. How can I add my website colors & logos to the webmail interface?
Pls help..I have gone mad looking for specific answers..
#1)
#2) login.html in head section:
and/or
#3 answer should be somewhere in the forum ;D
Title: Re: Integrate RC login form in a box within my homepage..static HTML website
Post by: kamalk on April 16, 2008, 05:13:47 PM
thank you Yann! form integrated successfully!!!! 8) on point 2, which file do I need to edit..or add that line of code to? I have an index.php in my RC root folder..no login.html.. pls help!
Title: Re: Integrate RC login form in a box within my homepage..static HTML website
Post by: sfreemanRCM on April 16, 2008, 06:47:47 PM
Quote from: kamalk thank you Yann! form integrated successfully!!!! 8) on point 2, which file do I need to edit..or add that line of code to? I have an index.php in my RC root folder..no login.html.. pls help!
Title: Re: Integrate RC login form in a box within my homepage..static HTML website
Post by: Yann on April 17, 2008, 12:30:25 PM
Quote from: sfreemanRCM
Quote from: kamalk thank you Yann! form integrated successfully!!!! 8) on point 2, which file do I need to edit..or add that line of code to? I have an index.php in my RC root folder..no login.html.. pls help!
Yes, .../skins/default/templates/login.html. You can use the html code or the java code. I think the java code is much more quicker(for me, it redirected the page quicker). You can test both. Just insert one of the codes anywhere in the section of the login.html file.
Title: Re: Integrate RC login form in a box within my homepage..static HTML website
Post by: kamalk on April 18, 2008, 02:48:22 PM
Hey Yann thanks a lot...but, a bit of a trouble with this form. It does not accept the password when entered. I end up with the RC login page with a password error message. When I log in there, it works. kinda irritating. I have PM'd you a test email ID and the domain details. Could you check & help? thanks in advance!
Quote from: Yann #1) er should be somewhere in the forum ;D
Title: Re: Integrate RC login form in a box within my homepage..static HTML website
Post by: kamalk on April 19, 2008, 10:11:11 AM
The code that I am using:
do note that the host value has been changed as well. Is that correct?
Title: Re: Integrate RC login form in a box within my homepage..static HTML website
Post by: Yann on April 23, 2008, 04:51:38 PM
Quote from: kamalk The code that I am using:
do note that the host value has been changed as well. Is that correct?
this line should be
Title: still issues with password
Post by: sfreemanRCM on May 15, 2008, 03:35:31 PM
Yann/or anyone else...
The password apparently is not being passed to the email log in - the user name is being passed just fine, but I get a login error because no password is there--- login fails---
also, if you install #2 code, I notice that trying to return to the forum from RCM, this code only sends you back to the login page of the forum--- not the page you came from---
so, it goes something like this...
user visits forum site, and logs in--- user wants to check e-mail, so user fills in name and password into form, and is taken to RCM-- password fails - invalid login --- form immediately closes and sends user back to login page, not to the page that they cam from--- any ideas / any fix???
Thanks!
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: rosali on May 16, 2008, 12:48:42 AM
The form code was originally posted by me in another topic in this forum. It should work. I use it myself.
If you are on IIS maybe you have to use: action="http://path_to_rc/index.php?_task=mail".
Also put into index.php at the very top just after " print_r($_POST); exit;
[debugging code ... remove after tests again !!!]
This will show you what was posted.
-Roland
Title: thanks for trying, but still not working...
Post by: sfreemanRCM on May 16, 2008, 04:00:42 PM
Hi Roland, thanks for trying to help, but I still have a problem-- I did what you suggested- the debug outputs all of the variables as expected - username, password, and domain--
but when you run the code, no password is inputted into the password field - you can just type in the password and it works, but that kinda defeats the whole idea--
by the way, the variable "My Domain" means to insert my own forum domain ie "myforum/forums.com", right?
any ideas?? I hate to give up on this as it is really cool in design and function -- just need to get the password to take--
thanks again, Sam
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: rosali on May 17, 2008, 01:43:51 AM
Sorry, I did not read carefully ... Give me some details about the forum you use. Maybe there is a cookie to pick up and to pass into the password field as hidden value?
-Roland
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: sfreemanRCM on May 17, 2008, 01:27:10 PM
Quote from: rosali;12066Sorry, I did not read carefully ... Give me some details about the forum you use. Maybe there is a cookie to pick up and to pass into the password field as hidden value?
-Roland
Hey, Roland--- thanks for answering--
My forum is a pretty standard phpBB - using the prosilver style- not sure what else to tell you about it---
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: rosali on May 18, 2008, 05:08:28 AM
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: rosali on May 18, 2008, 05:18:47 AM
Forgott to mention:
#1- clean PHPBB cache folder. Otherwise you'll get the cached template stuff and it won't work. #2- PHPBB does not store the password in a way that it can be decrypted. So I had to do the modification by Javascript in the template code. It could be aswell done in the forum php code, if we modify the database and store the forum password in a way that it can be decrypted.
-Roland
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: sfreemanRCM on May 25, 2008, 05:06:10 PM
OK, I surrender, cannot get the password to input into the login page---
just doesn't make sense- the username passes just fine--- the password passes in the debug---
BUT it does NOT pass into the password field on the login form and the login fails-
Kamalk was apparenlty having the exact same problem-- thought for sure it was just a simple problem with the code---
frankly, I do not know this code, but I do not see where in the code the password is being passed--- thanks anyway-----
Title: one last try, please take a look
Post by: sfreemanRCM on May 26, 2008, 08:51:36 PM
Some pretty basic code--- from my forum, I would like to let the user login to our email---
When I add debug code to show outputs (see below), I get the expected results, i.e. Username, Password, and domain---
What actually HAPPENS is that the username passes to the user name field, BUT the password does NOT - and login fails--- at that point you can just type in the password and login succeeds---
Got to be something simple, right?? PS - Changing host to 'http://mydomain/Mail/' doesn't help---
Thanks for looking...
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: rosali on May 27, 2008, 12:49:55 AM
Remove '_host' input field or insert a valid hostname (localhost ... serverx ... or whatever FQND). Currently you have a URL there. Check what in main.inc.php is in $rcmail_config['default_host']. Same should be here.
-Roland
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: sidnei.weber on May 27, 2008, 01:52:01 PM
vEry Thanks
Title: Roland Rules!
Post by: sfreemanRCM on May 27, 2008, 02:43:15 PM
Roland!!!
You da man!!
I tried everything else and was about to give up--- many thanks to you-- works perfect---
now I just gotta go back and add back the code that brings you back to the forum---
anyway, I owe you one!!
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: techdude on June 10, 2008, 11:12:22 AM
THe password is not being transfered in mine either!
Title: regarding form name
Post by: smalek on August 23, 2008, 11:18:19 AM
Quote from: Yann;11560#1) .....
can someone please explain why the form name is "f", could i change it to something else if i want to?
thanks for the support.
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: rosali on August 24, 2008, 02:30:32 AM
Yes, you can name it whatever.
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: nhomauhoaphuong on October 11, 2008, 12:14:03 PM
QuoteOriginally Posted by Yann #1) .....
i put this into my main website page... people go to my site then login to their mail straight from my mainpage... but then if they put the wrong username and or password it will direct the login again page to http://www.domain.com/mail/?_task=mail --- is there anyway i can make it come back to the mainpage so user can try to putin there username and password to login again instead? also.... when they logout... it will go http://www.domain.com/mail/?_task=mail also... can i make it go straight to the website mainpage instead?
[please help me how. thanks
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: rosali on October 12, 2008, 02:20:50 AM
Posted via Mobile Device
your question already has been answered in this thread. modify ./skins/templates/login.html as adviced.
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: blackace on October 14, 2008, 11:40:43 PM
How can I change the text for the submit button?
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: rosali on October 16, 2008, 04:56:22 AM
<input type="submit" value="w h a t e v e r">
P.S.: Basic HTML/JS/CSS/PHP/MySQL coding skills are required to use RoundCube!
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: blackace on October 16, 2008, 01:00:41 PM
Thanks rosali!
I haven't written code in a long while and I forgot what the syntax was.
Title: You can embed your static site with forms which has database backend
Post by: MyTaskHelper on October 21, 2008, 08:26:17 AM
Hi
If you still need do embed your site with forms, but you don't want/can't do it, using php, or something like it, - you can use Managing your objects together (http://www.mytaskhelper.com) - this is free online database.
You can create any from you need, like Mailing List, make it public and add widget code to your site.
Please, let me know if you have any questions about it.
Title: Integrate RC login form in a box within my homepage..static HTML website
Post by: dbacon on October 21, 2008, 01:15:07 PM
I also had a problem where the Password "looked" like it wasn't being passed by the form. But it turned out I had misunderstood what should go in "myhost" in the following line of code of the original posted form.
The "myhost" value in the above code needs to be set to the "email" server. I had assumed that I needed to enter my RoundCube web server for that value. My email server is not the same device as my RoundCube web server. I hope this helps.