Title: Fallon_Mac's Replies | WordPress.org

---

# Fallon_Mac

  [  ](https://wordpress.org/support/users/fallon_mac/)

 *   [Profile](https://wordpress.org/support/users/fallon_mac/)
 *   [Topics Started](https://wordpress.org/support/users/fallon_mac/topics/)
 *   [Replies Created](https://wordpress.org/support/users/fallon_mac/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/fallon_mac/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/fallon_mac/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/fallon_mac/engagements/)
 *   [Favorites](https://wordpress.org/support/users/fallon_mac/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cimy User Extra Fields] Ability to Add Popup from link](https://wordpress.org/support/topic/ability-to-add-popup-from-link/)
 *  Thread Starter [Fallon_Mac](https://wordpress.org/support/users/fallon_mac/)
 * (@fallon_mac)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/ability-to-add-popup-from-link/#post-4328750)
 * Nevermind! I had help from someone else! 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cimy User Extra Fields] Ability to Add Popup from link](https://wordpress.org/support/topic/ability-to-add-popup-from-link/)
 *  Thread Starter [Fallon_Mac](https://wordpress.org/support/users/fallon_mac/)
 * (@fallon_mac)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/ability-to-add-popup-from-link/#post-4328749)
 * Sorry – the code I added created a hyperlink – I added some asterisks to the 
   code below
 * [Click to View Terms and Conditions](https://wordpress.org/support/users/fallon_mac/replies/www.ombudsboard.com/?page_id=269)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Private Only] More than one public page?](https://wordpress.org/support/topic/more-than-one-public-page/)
 *  [Fallon_Mac](https://wordpress.org/support/users/fallon_mac/)
 * (@fallon_mac)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/more-than-one-public-page/#post-3775213)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Private Only] More than one public page?](https://wordpress.org/support/topic/more-than-one-public-page/)
 *  [Fallon_Mac](https://wordpress.org/support/users/fallon_mac/)
 * (@fallon_mac)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/more-than-one-public-page/#post-3775210)
 * 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](http://ombudsboard.com/?page_id=269)
 * 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](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…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Private Only] More than one public page?](https://wordpress.org/support/topic/more-than-one-public-page/)
 *  [Fallon_Mac](https://wordpress.org/support/users/fallon_mac/)
 * (@fallon_mac)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/more-than-one-public-page/#post-3775208)
 * 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)