Fallon_Mac
Forum Replies Created
-
Forum: Plugins
In reply to: [Cimy User Extra Fields] Ability to Add Popup from linkNevermind! I had help from someone else! 🙂
Forum: Plugins
In reply to: [Cimy User Extra Fields] Ability to Add Popup from linkSorry – the code I added created a hyperlink – I added some asterisks to the code below
Forum: Plugins
In reply to: [Private Only] More than one public page?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
In reply to: [Private Only] More than one public page?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 ConditionsHere’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=1but I’m not sure why…
Forum: Plugins
In reply to: [Private Only] More than one public page?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