ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:SSL How To? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:SSL How To?
#5465
admin (Admin)
Admin
Posts: 1570
graphgraph
User Online Now Click here to see the profile of this user
Re:SSL How To? 4 Months, 3 Weeks ago Karma: 22  
Hi,

This piece of code was done to get all Docman component pages into SSL and then convert to normal HTTP once the docman page is left, change it as you need but I'm SURE it should work because I tested it before:
Code:

<?php if ( ($option == 'com_docman' ) && ( strpos("x".$mosConfig_live_site,"http://" ) ) && ( $_SERVER["SERVER_PORT"] != "443" ) ) { $mosConfig_live_site2 = str_replace("http://", "https://", $mosConfig_live_site); mosRedirect($mosConfig_live_site2.'/index.php'.'?'.$_SERVER['QUERY_STRING']); } elseif ( ( $option != 'com_docman' ) && ( $_SERVER["SERVER_PORT"] == "443" ) ) { $mosConfig_live_site2 = str_replace("https://", "http://", $mosConfig_live_site); mosRedirect($mosConfig_live_site2.'/index.php'.'?'.$_SERVER['QUERY_STRING']); } ?>
Cheers, Max Edited to parse the code a little for clarity.<br><br>Post edited by: GreyHead, at: 2008/02/09 20:19
 
Report to moderator   Logged Logged  
 
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
  The administrator has disabled public write access.
#5816
PlayGod (User)
Junior Boarder
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
Re:SSL How To? 4 Months, 2 Weeks ago Karma: 0  
Max, that did the trick. Thank you so much!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8480
deafbiz (User)
Junior Boarder
Posts: 36
graphgraph
User Offline Click here to see the profile of this user
Re:SSL How To? 1 Month, 2 Weeks ago Karma: 0  
Sorry but didn't do the trick for me. I have some questions.

1) On this website I'm already using Choronoform but https is not necessary. My request was for just ONE Form that requires https and leave the other forms untouched. Can this be done? I would logically guess that I have to put in a specific URL that I want it to be https, right?

2) Exactly what file name and where to put the code? Just saying put on the top didn't really help me.

Is this the right code (taken from docman above):
Code:

&lt;?php if ( ($option == 'com_chronocontact' ) && ( strpos("x".$mosConfig_live_site,"http://" ) ) && ( $_SERVER["SERVER_PORT"] != "443" ) ) { $mosConfig_live_site2 = str_replace("http://", "https://", $mosConfig_live_site); mosRedirect($mosConfig_live_site2.'/index.php'.'?'.$_SERVER['QUERY_STRING']); } elseif ( ( $option != 'com_chronocontact' ) && ( $_SERVER["SERVER_PORT"] == "443" ) ) { $mosConfig_live_site2 = str_replace("https://", "http://", $mosConfig_live_site); mosRedirect($mosConfig_live_site2.'/index.php'.'?'.$_SERVER['QUERY_STRING']); } ?>
Many thanks!
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/16 09:24 By GreyHead.
  The administrator has disabled public write access.
#8484
deafbiz (User)
Junior Boarder
Posts: 36
graphgraph
User Offline Click here to see the profile of this user
Re:SSL How To? 1 Month, 2 Weeks ago Karma: 0  
This is a message for PlayGod:

I visited your website and wanted to send you PM but no luck. You have a very lovely website and I'm assuming that all the chronoforms that are on the websites are SSL. How did you manage to solve the SSL? Thank you.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/16 09:28 By deafbiz.
  The administrator has disabled public write access.
#8485
GreyHead (Admin)
Admin
Posts: 2801
graph
User Offline Click here to see the profile of this user
Re:SSL How To? 1 Month, 2 Weeks ago Karma: 59  
Hi deafbiz,

I think if you put the code into the front end of your form html it will only redirect when that form is displayed. Try it and see if it works OK.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8487
deafbiz (User)
Junior Boarder
Posts: 36
graphgraph
User Offline Click here to see the profile of this user
Re:SSL How To? 1 Month, 2 Weeks ago Karma: 0  
No luck. I'm using the test form.

Tried this way (of course I changed to my domain):
Code:

if($option == 'com_chronocontact' ){ $mosConfig_live_site = 'https://www.yourdomain.com'; }else{ $mosConfig_live_site = 'http://www.yourdomain.com'; } Name: &lt;input name="name" value="" type="text">&lt;br /> E-mail: &lt;input name="email" value="" type="text">&lt;br /> input name="submit" value="Submit" type="submit"
and this way:
Code:

&lt;?php if ( ($option == 'com_chronocontact' ) && ( strpos("x".$mosConfig_live_site,"http://" ) ) && ( $_SERVER["SERVER_PORT"] != "443" ) ) { $mosConfig_live_site2 = str_replace("http://", "https://", $mosConfig_live_site); mosRedirect($mosConfig_live_site2.'/index.php'.'?'.$_SERVER['QUERY_STRING']); } elseif ( ( $option != 'com_chronocontact' ) && ( $_SERVER["SERVER_PORT"] == "443" ) ) { $mosConfig_live_site2 = str_replace("https://", "http://", $mosConfig_live_site); mosRedirect($mosConfig_live_site2.'/index.php'.'?'.$_SERVER['QUERY_STRING']); } ?> Name: &lt;input name="name" value="" type="text">&lt;br /> E-mail: &lt;input name="email" value="" type="text">&lt;br /> input name="submit" value="Submit" type="submit"
Am I missing something?
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/18 00:44 By GreyHead.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials