Submitted by muneer on
Below is a simple guide to develop a Drupal module for presenting a splash page for your website. For further information on how to install the modules and basic guides, follow the below link
splash_screen.info file
;$Id$ name = Splash Screen description = Present a splash screen version = 1.0 core = 6.x
splash_screen.module
<?php function splash_screen_preprocess(&$vars, $hook) { $HOST = $_SERVER['HTTP_HOST']; $REF = $_SERVER['HTTP_REFERER']; $pos = strpos($REF, $HOST); if(empty($REF) || !($pos > 0)) { if($vars['is_front']) drupal_goto('splash.html'); } }
Place the splash.html page and any of your files (.swf, .jpg) related to the intro page in the root of the directory structure. Or put them in your theme directory and apply the proper URLs.


Add new comment