Support » Plugin: Wired Impact Volunteer Management » Disable contact form for logged in users with Ultimate Member

  • Hi, I am using Ultimate Member on my website as I want only one registered members to be able to volunteer.

    Once logged in, is there a way to remove the contact form in the opportunity pages? As I think it’s redundant for a logged-in user to key in their details again to sign-up or express interest in an opportunity. Is there a way to replace the contact form with a button instead?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonathan Goldford

    (@jg-visual)

    Thanks for reaching out @cubatrytest. As long as you’re comfortable with some basic PHP coding, you can use the templating system built into the plugin. This system allows you to modify parts of the plugin, such as the form, while still allowing you to update it when we roll out new releases. Here are the basic steps you would need to take:

    1. Copy the plugin’s file at \wp-content\plugins\wired-impact-volunteer-management\templates\opp-single-form.php to a folder within the current theme called “wivm”.
    2. Modify it so the form is only displayed when the is_user_logged_in() function returns false.
    3. Add an else statement that shows a button when the user is logged in, or avoid the else statement and simply add the button directly to each volunteer opportunity’s content within the admin.

    Hopefully that gets you where you need to go. If you have any questions don’t hesitate to reach out.

    Thank you for the response, I might need some help on PHP coding for the else statement, and I couldn’t find the ‘wivm’ folder inside my current theme folder, or do I have to create one?

    Plugin Author Jonathan Goldford

    (@jg-visual)

    Sorry if I wasn’t clear @cubatrytest. You’ll need to create a folder within your current theme called wivm.

    We can’t provide custom coding support for plugin users, but I’m happy to answer questions as you work through it. Good luck as you hop in there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.