index.php splash page - Joomla! Forum - community, help and support
is there out there can share me proper way/code create page users have go through before entering main site?  need put legal disclaimer site.  need make sure people coming site click have read , agree before continuing site itself.
any appreciated.
 any appreciated.
hi
here php redirect hacked together, starts on first line in templates:
it checks cookie "splashpage", if cookie set nothing. if cookie not set, redirects page "location: http://juan.theo3.com/index.php/create-an-account.html"
in example redirecting create-an-account page, , assign special template create-an-account page. can redirect page or off site.
also "time()+60*60*24*365" can removed cookie expires @ end of session.
if has incite code appreciate feedback,
thanks , hope helps
curt
here php redirect hacked together, starts on first line in templates:
code: select all
<?php
$value = 'yes2';
if (isset($_cookie['splashpage'])) {
    //echo "$name : $value <br />\n";
    }
   else {
   setcookie("splashpage", $value, time()+60*60*24*365);
   header("location: http://juan.theo3.com/index.php/create-an-account.html");
   }
?>
it checks cookie "splashpage", if cookie set nothing. if cookie not set, redirects page "location: http://juan.theo3.com/index.php/create-an-account.html"
in example redirecting create-an-account page, , assign special template create-an-account page. can redirect page or off site.
also "time()+60*60*24*365" can removed cookie expires @ end of session.
if has incite code appreciate feedback,
thanks , hope helps
curt
 
  
Comments
Post a Comment