Elxis CMS Forum

Support => General => Topic started by: ahmet on April 26, 2011, 14:49:21

Title: a splash html page on entrace only
Post by: ahmet on April 26, 2011, 14:49:21
Hello,
How can we add a  a splash html page on entrace only ?
tnx..
Title: Re: a splash html page on entrace only
Post by: datahell on April 26, 2011, 15:18:43
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?
Title: Re: a splash html page on entrace only
Post by: ahmet on April 26, 2011, 15:24:07
would like to know both of them????
Title: Re: a splash html page on entrace only
Post by: datahell on April 26, 2011, 21:19:17
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]
Title: Re: a splash html page on entrace only
Post by: ahmet on April 27, 2011, 10:27:48
ı appreciate..
tnx tnx...