Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Fallon_Mac

    (@fallon_mac)

    Nevermind! I had help from someone else! 🙂

    Thread Starter Fallon_Mac

    (@fallon_mac)

    Sorry – the code I added created a hyperlink – I added some asterisks to the code below

    Click to View Terms and Conditions

    Oh my gosh, Joshua, thank you. I was overlooking the scripting. Such a simple error. I cannot thank you enough for this. I’ll check now to make sure the two plugins seem to be working seamlessly together and address the Cimy plugin, if necessary.

    Hi Joshua,

    I’ve tried both the page_id and the slug from default and custom permalinks. I’m adding in a java popup window to the Cimy User Extra Fields plugin, which is correctly linking to the Terms and Conditions (tried T&C as both main page and sub page).

    At this point, I’ve fixed the syntax and everything looks fine, but the page I’m trying to define as public is still being blocked by the Private Only plugin. Users are being asked to login and it’s kicking back to the login/registration page each time.

    Here’s the code I used for the T&C popup:
    Click to View Terms and Conditions

    Here’s the code in the Private Only main function (which seems to match the code you pasted above, as far as I can tell unless I’m overlooking a misplaced hyphen or something):

    //Main Private Only features
    function private_only () {
    	$settings = get_option( 'po_login_settings' );
    	$pagelink = get_permalink($settings['public_pages']);
    	/* New Feature, code added by Ivan Ricotti. Thanks */
    	if (!is_user_logged_in() && !is_feed() && isset($settings['public_pages']) && $settings['public_pages'] && is_page($settings['public_pages'])) {
    		return;
    	} elseif (!is_user_logged_in() && !is_feed() && is_page('ombudsboard.com/?page_id=269')  ) {
    		return;
    }
    	if (!is_user_logged_in() && !is_feed() && (!is_page($settings['public_pages']) || empty($settings['public_pages']) || $settings['public_pages'] == '')) {
    		auth_redirect();
      }
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    So now I’m stuck. When users click on the link to register, then click on the link to the Terms and Conditions, it looks like it’s redirecting to:
    http://ombudsboard.com/wp-login.php?redirect_to=http%3A%2F%2Fombudsboard.com%2F%3Fpage_id%3D269&reauth=1

    but I’m not sure why…

    Hi Joshua,

    I tried the code string you indicated above to define a second public access page, but it seems to have caused a fatal syntax error and deactivated the plugin until I removed it. Can anyone assist with this? I need to define one additional public page simply to load in the terms and conditions needed for the registration. To make it more complicated, I’m combining this plugin with Cimy User Extra Fields for organization requirements.

    Thanks!

    Fallon McCullough

Viewing 5 replies - 1 through 5 (of 5 total)