Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    That might be possible. I guess it would depend upon how the content itself is displayed.

    You could conceivably use the logged in/logged out shortcodes:

    [wpmem_logged_in]This is content that is viewable when logged in[/wpmem_logged_in]

    [wpmem_logged_out]This is content that is viewable when not logged in[/wpmem_logged_out]

    These shortcodes can also be coupled with some of the other shortcodes so you could work in a login form and other things by nesting those shortcodes inside the others.

    Thread Starter pherank

    (@pherank)

    Thanks Chad – I will give this a test sometime soon (once we’ve settled on a theme to use).

    Thread Starter pherank

    (@pherank)

    FYI:

    I created a section on the homepage with the following code (which includes a bunch of Apppointments+ plugin shortcode):

    <div id="section_services">
      <h2>Services</h2>
    <p>Please register with our site to book appointments. If you are an existing user, please log in. New users may register below.</p>
    [wp-members page=login ?redirect_to="https://localhost:8888/index.php#section_services"]
    [wp-members page=register]
    [wpmem_logged_in]
      <table><tbody><tr><td colspan="2"><h2>Schedule an Appointment with Us</h2><p class="brand-red">Note: same day appointments must be scheduled by telephone at (541) 479-2411.</p><ol><li>Select a staff member from the service provider dropdown menu to refresh available calendar dates.</li><li>Click on any free calendar date (displayed in green) to see available times.</li><li>Click on a free time slot and then enter your contact details.</li></ol></td></tr><tr><td colspan="2">[app_my_appointments allow_cancel="1"]</td></tr><tr><td colspan="2">[app_service_providers autorefresh="1"]</td></tr><tr><td colspan="2">[app_monthly_schedule]</td></tr><td colspan="2">[app_monthly_schedule add="1"]</td></tr><tr><td colspan="2">[app_pagination step="2" month="1"]</td></tr><tr><td colspan="2">[app_login]</td></tr><tr><td colspan="2">[app_confirmation name="Full name:" email="Email:" phone="Telephone:" address="Street address:" confirm_text="Thank you for requesting an appointment. After the appointment is confirmed, you will receive an e-mail receipt."]</td></tr><tr><td colspan="2">[app_paypal]</td></tr></tbody></table>
    [/wpmem_logged_in]
      <p><a href="#Top" rel="m_PageScroll2id">Back to Top</a></p>
    </div>

    It partially works. ??
    But the [wp-members page=login] redirect URL never seems to function (I’ve tried “https://localhost:8888/#section_services&#8221; as well), and the [wp-members page=register] shortcode doesn’t have a redirect option at all. So users just see a refresh of the homepage and lose their place on the page. Also, using the shortcodes to add the login/registration results in a duplication of links:

    You are logged in as JohnDoe
    Click to log out

    You are logged in as JohnDoe
    Click to log out.
    Begin using the site.

    So there are definite problems getting this to work with a single-page WP theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it possible to block content in a section of single-page website?’ is closed to new replies.