Elxis CMS Forum
Support => General => Topic started by: ahmet on April 26, 2011, 14:49:21
-
Hello,
How can we add a a splash html page on entrace only ?
tnx..
-
By saying "on entrance" what exactly do you mean:
1. On user's first visit to frontpage?
2. On user's every visit to frontpage?
3. On user's first visit to the site (regardless which page he visits).
4. Something else?
-
would like to know both of them????
-
If you want to display that screen only once per user sesson you have to save that information in session.
Create a layer (with absolute positioning and with a high z-index css value) in your template's index.php file containing the text you when to display and make it hidden by default. When you need to display that screen make it visible.
An alternative solution is to use a redirection to an other page containing your message.
I attached you the code I used to have on elxis.org (you should place this inside elxis' index.php before loading the sef.php and frontend.php files).
[attachment deleted by admin]
-
ı appreciate..
tnx tnx...