To make a SECURE DT Donate page, create a Link-URL menu item that links to this URL:
https://www.YourDomain.com/index.php?op ... m_dtdonate
This will cause users to enter a secure HTTPS area of your site when clicking the link to enter DT Donate.
Now, it is a common issue in Joomla 1.0.x of not being able to switch back and forth within your site going from secure pages to non-secure pages. To solve this for your use of DT Donate, copy and paste the following code into the <HEAD> area of your template\'s index.php file. It will cause a user to be redirected back to a non-secure HTTP url when leaving DT Donate:
<?php
// toggle in and out of SSL
// check the URL for modules that need SSL
if ((strpos($_SERVER["REQUEST_URI"], "com_dtregister") > 0) || (strpos($_SERVER["REQUEST_URI"], "com_dtdonate") > 0 )|| $_REQUEST['option']=='com_dtdonate' || $_REQUEST['option']=='com_dtregister')
{
// only rewrite the URL once, if you are not in https: mode
if ($_SERVER['SERVER_PORT'] == 80)
{
if($_SERVER['REQUEST_METHOD']=='POST'){
}else{
header( 'Location: https://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
}
}
}
// check to see if https: is not required
if ((strpos($_SERVER["REQUEST_URI"], "com_dtregister") === false) && (strpos($_SERVER["REQUEST_URI"], "com_dtdonate") === false) && $_REQUEST['option']!='com_dtdonate' && $_REQUEST['option']!='com_dtregister')
{
// only rewrite the URL once, if you are already in https: mode
if ($_SERVER['SERVER_PORT'] == 443)
{
if($_SERVER['REQUEST_METHOD']=='POST'){
}else{
header( 'Location: http://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
}
}
}
?>
This code will work for both DT Register and DT Donate. If you do not have both, it is fine.