Elxis CMS Forum

Extensions => Components => Topic started by: e-isodos on February 08, 2011, 05:42:41

Title: [SOLVED]SSL enabled template
Post by: e-isodos on February 08, 2011, 05:42:41
Hi,
I am using IOS RES for a hotel. The problem is that at the reservation page (SSL) there is the message that some items are not secure. I have checked the images, and I realized that some images located at images folder of my template are still under http. These images are declared at layout.css file of my template and they are declared on relative path form.
I guess my template is not ssl enabled. How I will make it SSL enabled?
 
Title: Re: SSL enabled template
Post by: webgift on February 08, 2011, 09:41:13
Hi ,
What template do you use ? Is that functional or not ( Like : IOS Clean , IOS Philoxenia , Imagination Webgift ) ?
Title: Re: SSL enabled template
Post by: ks-net on February 08, 2011, 11:54:14
this is easy...
open your tpl index.php with a text editor

find any line that contains-> $mosConfig_live_site;
Quote
<link href="<?php echo $mosConfig_live_site; ?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css<?php echo (_GEM_RTL) ? '-rtl' : ''; ?>.css" rel="stylesheet" type="text/css" media="all" />

and fix like this
Quote
<link href="<?php echo $mainframe->getCfg('ssl_live_site'); ?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css<?php echo (_GEM_RTL) ? '-rtl' : ''; ?>.css" rel="stylesheet" type="text/css" media="all" />

is all here:
http://wiki.elxis.org/wiki/Secure_URLs#SSL_Live_Site_URL

******
next save index.php in utf-8
Title: Re: SSL enabled template
Post by: e-isodos on February 08, 2011, 22:22:25
THANKS AGAIN!!!
SOLVED!!
Title: Re: [SOLVED]SSL enabled template
Post by: herve34000 on March 15, 2011, 17:06:13
Hi,

i need some little help about SSL. I use a philoxenia template with IOS reservqtion 3.5. I get already my SSL Certificate and also i activate the module on IOS Reservation + SSL module login. I put my URL on login and logout in the parametre, but i think, i forget something.

Some idea ?

Thank's Herve
Title: Re: [SOLVED]SSL enabled template
Post by: ks-net on March 15, 2011, 17:46:44
ios res will switch automatically in ssl mode  when you visit reserve page ccard-pages reservation-status etc.... only in pages with sensitive data!
ios-res also uses secure connections for hoteliers control panel.
 
AND ONLY  IF ssl-mode  is enabled in control panel of ios-res!

ssl functions are not available in older versions of elxis...   ONLy in elxis version 2009.2+


****
Quote
IOS Reservation + SSL module login
if you try to login in secure(ssl) environment... you must first be sure...
that exept ssl-capable tpl you have all
1- your modules also capable to provide secure connection ... older mods are not ssl capable
2- all content incoming links images etc.. with relative urls rather than absolute urls... in order not to result with an invalid ssl certificate!

***
Thats  in general...
for more specific instructions you have to be more specific about your problem

Title: Re: [SOLVED]SSL enabled template
Post by: herve34000 on March 15, 2011, 18:40:16
Hi Ks-net

Thank's for you answer. Ok i try to explain step by step.

i receive my SSL certificate with my URL : https://www.mydomain.com:xxx/reservations/personal-info.html
this url i need to put on my administration/ module / and activate "mod_login_ssl"

i open mod_login_ssl and go to the parameter:

see two case and i put my url:

Login Redirection URL : https://www.mydomain.com:xxx/reservations/personal-info.html
Logout Redirection URL: https://www.mydomain.com:xxx/logout.html

xxx = our port number

but i think, i need also to give some CHMOD on some files and also modified my index.php template (Philoxenia). but for this, i don't know what i can do.

When everything it's ok, nothing work ???

Thank's for your answer.
Cordially Herve






Title: Re: [SOLVED]SSL enabled template
Post by: ks-net on March 16, 2011, 04:30:23
you have nothing to do....

nor here either there....


ios-res will switch automatically to https when you  reach this url and some other urls!

philoxenia is full compatible with ssl out of the box.


only have to enable ssl-switch through iosres-control-panel


****
 mod_login_ssl has nothing to do with ios-res , this  is for elxis .
your port is not required by elxis...
your port is not necessary to be visible ... server can (or better must) use the proper port  without users to be able to see it!
you can not add the port  in any url of elxis .. unless this port is included in "live_site" parameter in elxis  configuration.php and is the same for both https and http ---> but then server will not except... so-> no port in urls
Title: Re: [SOLVED]SSL enabled template
Post by: ks-net on March 16, 2011, 04:38:55
Quote
Login Redirection URL : https://www.mydomain.com:xxx/reservations/personal-info.html
if your "live_site" parameter is the url without the port ...
then you get errors.... by elxis

if your live_site parameter is with port...  the you get errors from server
you can not have the same port in both ssl and non ssl connection

"live_site" parameter will be the same  for ssl and nonssl connection... only the http->https changes and this done on the fly by elxis...
your live_site in configuration.php  must  be always one single url  ... this-> http://www.mysite.com .. nothing else!
Title: Re: [SOLVED]SSL enabled template
Post by: webgift on March 16, 2011, 15:03:43
Relative Bot : SSL Detect Bot (http://www.elxis-downloads.com/downloads/content/311.html) created by Ks-Net ;)
Title: Re: [SOLVED]SSL enabled template
Post by: ks-net on March 16, 2011, 16:15:35
no.. this bot has nothing to do with what we talk here!

yes..  has a relation with ssl pages and can be used in various ways ... but not solving any of user's problems discussed in this post
Title: Re: [SOLVED]SSL enabled template
Post by: webgift on March 16, 2011, 16:41:16
yes..  has a relation with ssl pages and can be used in various ways .

That's why. I know! ;)
Title: Re: [SOLVED]SSL enabled template
Post by: ks-net on March 16, 2011, 17:51:10
who mark this as SOLVED?

it is solved? what was really  the problem?
Title: Re: [SOLVED]SSL enabled template
Post by: herve34000 on March 21, 2011, 08:19:50
Hi ,

Thank's a lot for all to answer about our question. Actually the problem is not solve yet. we can access now to the SSL, but the template is modified. i think to change some lign on philoxenia, but i read all topic about this template and normaly, when don't need to change everything. i try to find a solution for this moment and i waiting the answer. ;).
i will let you know when is solved.

Thank's again.
Cordially Herve