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
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 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
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://
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"]); } }