View Single Post
  #8  
Old 18th March 2017, 21:51
artifici artifici is offline
Member
 
Join Date: Jan 2011
P2P
Posts: 9
Default
Quote:
Originally Posted by XGODY View Post
Yes mate this is what I looking for before I start to code it up.we are looking at the Signup takesignup and functions phps too and more files to endit so on
I don't know if there is a mod for this but it is really simple to do it:
1. create a method in functions.php like getSiteUrl() in which you will check for your user settings to see if he has SSL enabled/disabled and return the correct URL
2. replace in all files $site_config['SITEURL'] with getSiteUrl()
3. alter the SQL user table to add the SSL option
4. add in the user settings page a new option for enable/disable SSL

Good practices:
1. add in config.php $site_config['SITEURLSSL'] the HTTPS url and use it in getSiteUrl() <- this way you will have all your config options in one file
2. set SSL enabled by default
Reply With Quote