Support Forum

 
Current User: Guest
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

No Terms page on login

Information/How to
UserPost

10:11 am
November 10, 2009


Rose

 
1

Hello,
What a great idea for a plug-in. This is exactly what I desperately need, but it doesn't seem to work. I've installed and customized but when a non-admin user logs-in there is no request to agree to the terms of use or welcome message. That was my understanding about how it functions: That a request to agree would pop up on their next log-in? Am I wrong? Any help would be greatly appreciated. Thank you.

10:18 am
November 10, 2009


Steph

 
2

There are a few reasons why this may be happening:

1. Users don't have permission to view the parent admin menu item you have selected for the terms page. ("Terms Page Admin Menu" setting)

2. You don't have the "All Admin pages" option selected for the "admin pages" drop-down under the "Require Term Agreement to Access" option.

3. If you're using WPMU, make sure it's activated sitewide.

What are your settings for these two options?

11:39 am
November 11, 2009


Rose

 
3

Ok, I changed things to the settings you recommend above and it seems to work now!! Yippy!

I'm wondering if there is a way to get them to see the tou agreement without going to the backend? I see there is a front-end drop down for assigning a page, but I don't see the agreement when I go to the page that has been selected. Can you help me understand this feature better and let me know if they can use a sidebar log-in on the front in and still see the terms of use agreement?

Thanks!

11:40 am
November 12, 2009


Steph

 
4

The drop down for selecting a front-end page is for requiring the terms agreement. In order to display the terms in the front-end, you need to use the shortcode [terms-of-use] in the page you would like to display your terms. Does that help?

11:53 am
November 12, 2009


Steph

 
5

I just re-read your question, and realized I didn't really answer it. In order to require terms agreement in the front end, you need to specify the page and fill in the full url (including http://) for the page with the [terms-of-use] shortcode in it.

10:10 pm
November 28, 2009


Justin

 
6

How do you force a user to agree to terms on a front-end page though?  My Facebook Connect users are only being prompted to 'Agree' if they try to go into their profile.  If they're just browsing through the front end pages, they never get prompted.  Any help would be great.  Thanks.

Justin Donnell

faceplantgames.com

10:56 pm
November 28, 2009


Justin

 
7

Well, I got it working with a little hackery.  The Facebook users are never forced into their profile page on first login, they go straight to the home page.  Hence they're not forced to "Agree to Terms".  So I made some minor changes to the plugin.  If there's a better more elegant solution, please let me know.  :)

In the terms-of-use.php I made a few changes:

I added this line:

add_action('get_header', 'tou_check');

In the tou_check function, I changed this line a little:

FROM THIS - die("<script type='text/javascript'>window.location='". TOU_ADMIN_PAGE ."?page=". TOU_PLUGIN_NAME ."/terms-and-conditions.php' </script>");

TO THIS - die("<script type='text/javascript'>window.location='/develop/wp-admin/?page=". TOU_PLUGIN_NAME ."/terms-and-conditions.php' </script>");

So it forces them to the profile page.  I tested both normal WP users and Facebook users and everything appears to be working as desired.  

Again, if there's a better way, please let me know.

Thanks!

Justin Donnell

justin@faceplantgames.com

8:51 am
November 29, 2009


Steph

 
8

I'm glad you found a way to get it working. However, did you try using the options or a front-end agreement? If a user is not logged in, it will save to a cookie, but if they are, it will save to the database the same way the admin agreement page does.

To get this working follow these steps:

1. Select your home page in the Require Term Agreement to Access Front-end page drop-down.

2. Insert the shortcode [terms-of-use] into a WordPress page.

3. Use the full url for that page on the Terms Page URL option.

Let me know if that does what you want it to do or not.

Thanks!

7:34 pm
November 29, 2009


Justin

 
9

Thanks for the reply.  The theme I'm using handles the front page functionality slightly different than a typical WP theme.  So it doesn't show up in the "Front-end Page" dropdown list.  No worries though, since I found a workaround.  

Thanks again, it's a great plugin!   I was going to add the functionality myself (and I've never written a plugin), so I was very happy to come across this.

9:51 am
November 30, 2009


Justin

 
10

Thought I'd post again in case anyone else uses my posted solution.  There was a minor oversight on my part.

Simply adding the line:

add_action('get_header', 'tou_check');

Will also cause NON-Logged in users to agree to terms.  But since they're not logged in, they get redirected to the login page.  End result being people cannot browse your page unless they log in.  Not desirable, at least in my case.

To fix it, I added a $user_ID check in the tou_check() function:

if($user_ID) {

*Do the stuff in this function*

}

oops on my part  :)

Information/How to

Reply to Topic:
No Terms page on login

Guest Name (Required):

Guest Email (Required):

Smileys
Cool Surprised Smile Wink Laugh Confused Cry Embarassed Frown
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 5
   


Information/How to