Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: [SOLVED] https and http

[SOLVED] https and http 16 years 10 months ago #337

  • npt
  • npt's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hello: I am looking for a solution to a problem. I want to (of course) use ssl & https with DTRegister & authorize.net-- so when linking to the registration of the event I use [url=https://(link]https://(link[/url]) so that the credit card transaction is secure. The trouble is, from there, how do I get out of https? I don't want the rest of the user's experience on the site to be through port 443 and not port 80. Is anyone using this component in a practical way in production that has addressed this issue? I'll most likely hunt through the DT_Register code and change a relative link to an absolute one but i'd like to avoid that. Am I missing something? Thank you

Please Log in or Create an account to join the conversation.

[SOLVED] https and http 16 years 10 months ago #338

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
This is not a DT Register issue... it is a JOOMLA issue. Check out the joomla forums and you'll find that. Joomla is not setup to handle switching back and forth very well. As you said, the only way to get out is to have a hard-coded NON-SSL url... problem is that from your SSL area, a user can click on any menu item in your site and they are not all going to be absolute links. You can hard-code something in DT Register all you want, but it will not solve the problem since you can't control what the user clicks on during or after your registration process. If you can fix Joomla to be able to go back and forth, be sure to let us know :)

Please Log in or Create an account to join the conversation.

[SOLVED] https and http 16 years 10 months ago #339

  • npt
  • npt's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Please don't be so defensive-- I never said it was a DT Register issue. However, if anyone is actually using your component in production I would think this is something they or you had to address at some point. My idea is to hard-code a redirect in DT Register to go to a "thank you" page after registering (port 80). I'll let you know if I can do it. "You can hard-code something in DT Register all you want....": This isn't very helpful. Robert

Please Log in or Create an account to join the conversation.

[SOLVED] https and http 16 years 10 months ago #340

  • npt
  • npt's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Heres a temporary hack-- I'm doing this in the header of every template file. global $mosConfig_live_site; if (strpos($_SERVER["REQUEST_URI"], "com_dtregister") === false) { $mosConfig_live_site = str_replace("https://

Please Log in or Create an account to join the conversation.

[SOLVED] https and http 16 years 10 months ago #341

  • npt
  • npt's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Here's my latest. It does a redirect which is cleaner I think: again, not completely tested yet though. The idea is that if you're out of the com_dtregister component area, you no longer want to be in https. Thanks This goes in the header of your template(s).
if  (strpos($_SERVER["REQUEST_URI"], "com_dtregister") === false)     {  	   if ($_SERVER['SERVER_PORT'] == 443)  	   {  	     	   	header( 'Location: http://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);    	   }   }

Please Log in or Create an account to join the conversation.

[SOLVED] https and http 16 years 10 months ago #342

  • dlamparty
  • dlamparty's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
This is what I used to fix the SSL Switching on my sites: http://forum.virtuemart.net/index.php?topic=24978.0 Obviously, this was written for Virtuemart, however, you will have to replace:
if(@strstr($page, "account.") || @strstr($page, "checkout.") || @strstr($page, "shop.registration"))
With:
if(@strstr($option, "com_dtregister"))
If you have more than one app that uses or forces ssl, you will have to add a search string function for each and include the
||
between them. Woyzeck

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.195 seconds