Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Can I see the site?

    Thread Starter cjohnson26

    (@cjohnson26)

    Thanks for the reply Takayuki. It’s https://condensus.com/

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try deactivating all other plugins and switching to the default theme.

    Thread Starter cjohnson26

    (@cjohnson26)

    Do you want me to deactivate all plugins, switch to the default theme, then activate all plugins again and move back to the theme I’m using?

    I’m not going to deactivate all plugins and switch to the default theme indefinitely.

    What about a coding alteration or a new location of the code that you provided the user 2 years ago?

    @cjohnson26 – Takayuki is asking to do this TEMPORARILY. It’s a very common way of finding what might be causing a problem in WordPress.

    If your problem disappears you can then add back items 1 by 1 to see where the problem reappears.

    Thread Starter cjohnson26

    (@cjohnson26)

    Hey guys,

    Thanks for the feedback and clarification. I’ve switched to the WP default theme and removed all plugins except Contact Form 7.

    Corey

    Thread Starter cjohnson26

    (@cjohnson26)

    Okay, I had the WP default theme back on (Twenty Fifteen) and I deactivated all plugins. I added this code to the contact-form-7/includes/contact-form-template.php file and it didn’t work – same error:

    <?php

    if ( is_user_logged_in() )
    echo do_shortcode( ‘[contact-form-7 id=”1234″ title=”Contact form 1″]’ );

    ?>

    I’m curious… on the plugin editor page, the template file shows this: “Editing contact-form-7/includes/contact-form-template.php (inactive)” I wonder if it being “inactive” is an issue.

    Thank you so much for the help.

    Corey

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    I added this code to the contact-form-7/includes/contact-form-template.php file

    It obviously won’t work. The code should go into theme’s template file.

    I am too having the same problem, I have tried to add it to many .php files within my theme, can you please tell me which in perticular it is? thanks.

    Thread Starter cjohnson26

    (@cjohnson26)

    @takayuki – I understand now. I thought it was the plugin’s file.

    I also played around and completely understand how it works.

    Is there a way to make the contact form give a response on the submit button to login or create an account? Perhaps in the additional settings text area at the bottom of the form creation window…?

    I would like to form to show to all users, but give a response when a user is not loggin in. Thanks for your help!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Show Form Only to Logged-In Users’ is closed to new replies.