popup window with site policy acceptance

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

popup window with site policy acceptance

Post 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
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post 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
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Post 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 ...
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
Mr.Flash
Posts: 50
Joined: Thu 3. May 2007, 19:17
Contact:

Post 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
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Re: popup window with site policy acceptance

Post 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
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
Post Reply