Page 1 of 1
popup window with site policy acceptance
Posted: Wed 19. Dec 2007, 14:13
by macangelo
Hi all,
I have parts of a site that I want only to be accessible after accepting the site policy.
So what I want is this:
when clicking on a link a popup window appears with the site policy, after scrolling down there is an accept button, if accepted, the next pages will be available, if not accepted, the pages will not be displayed.
How can I do that with phpwcms?
thanks all
macangelo
Posted: Wed 19. Dec 2007, 19:37
by Jensensen
Hi macangelo,
guess that's not easy to handle with phpwcms' core scripts scope of work.
but perhaps snippets of JScript, usually used with forms to prevent missing data (required fields) can handle that --> redirect somehow...
greetz
Posted: Fri 21. Dec 2007, 06:23
by macangelo
Actually, it's not so different from how the frontend user restriction works. Here I also mark those pages that are restricted, I also have to respond to a form before I get access to those pages ...
Posted: Fri 21. Dec 2007, 10:27
by Mr.Flash
thats about what i would suggest too..
- make a new phpwcms frontend user
- use the frontend login and modify the template, so that the feLogin and fePassword fields are hidden but already contain the username and password
- add the site policy to the template and change the value of the feSubmit button to "accept site policy" or whatever
- upload new template and choose as template in contentpart frontend login
- search for frontend login in the forum, if you don't know how to set the restrictions.
should work...
greetz
Mr. Flash
Re: popup window with site policy acceptance
Posted: Tue 25. Dec 2007, 11:16
by macangelo
Ok, so far so good - but I don't want the accept-page to be a complete new page to be loaded, but I want it to just appear in front of the page from where I click the link (with div-tag, ajax or whatever - not as a normal popup which might be blocked).
How do I do that with phpwcms?
Thanks a lot