Login Page Template for Community Events – Followup

Home Forums Calendar Products Community Events Login Page Template for Community Events – Followup

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1007231
    journal multimedia
    Participant

    It seems I closed this topic prematurely:

    Login Page Template for Community Events

    Brian suggested I add a conditional check at the top of the “community template” to add a custom login page, which makes sense, but which template is the “community template”?

    I tried doing this in event-list.php and edit-event.php, and neither seems to load before the call to wp_login_form(). I’m sure I could make the change in the plugin itself, but I want to avoid that for obvious reasons.

    Additional guidance is much appreciated!

    #1007411
    George
    Participant

    Hey @journal multimedia,

    I’d be glad to try and help here and appreciate you opening a new thread to ask about this!

    I’m a bit confused about exactly where you want this login form to appear on your site – can you please clarify this? Is it on the /events/community/add URL page of your site?

    Also, can you clarify what this sentence means exactly:

    and neither seems to load before the call to wp_login_form().

    I’m just not 100% certain what you mean there and it might be important for providing further help.

    We don’t offer any support for custom code on the forums here but I’m glad to at least try help – let me know some more details about your customization here and we can go from there! 🙂

    Cheers,
    George

    #1007489
    journal multimedia
    Participant

    Yes this is on the /events/community/add url.

    When I said, “and neither seems to load before the call to wp_login_form()”, I’m referring to that function being called by the plugin to load the default login form. I’d like to execute code before it gets called so that I can display a custom login page (as suggested in the previous thread.

    I tried adding a conditional statement that checks if the user is logged in to the beginning of the templates event-list.php and edit-event.php, but wp_login_form() still appears to be loading before the conditional statements load.

    I guess my real question is, how can I set up something like Brian suggested in the previous thread?

    Also, you said “We don’t offer any support for custom code on the forums”. Is there another support channel that I have access to as a part of purchasing Events Calendar Pro & Community Events?

    Thanks,
    Joe

    #1007867
    George
    Participant

    Thanks for clarifying a bit, Joe – to address your questions in reverse order, no, there are unfortunately no other support channels than the forums at this time. We do not offer support for custom code regardless of the channel, which does limit how much I can help with specific code here, but for the most part it sounds like everything you’re trying should produce what you want.

    The community events submission form itself is the edit-event.php file you mentioned trying – if you haven’t already, please be sure to use the steps described in our Themer’s Guide so that you are using a version of this template in your theme. This way, if you update the Community Events plugin, your file changes will not be lost.

    Also, please note that the Community Events form has an action at the very top of the form. You might find it easier to just use this action as a way to add code to the page.

    The action is called tribe_community_before_event_page, and for a quick example, let’s say you wanted to add a simple H2 header tag before the login form and everything like that on the events/community/add page. You’d do that using this action by adding some code like the following to your theme’s functions.php file:


    add_action( 'tribe_community_before_event_page', 'tribe_support_example_1007231' );

    function tribe_support_example_1007231() {
    echo '<h2>This is the h2 above the community submission form</h2>';
    }

    I hope this all helps! If you continue to need code-level assistance with customizing your website, you may find it best to hire a developer to help out. We have a list of well-reviewed developers here if you’re interested → https://theeventscalendar.com/find-a-customizer

    Cheers!
    George

    #1012668
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Login Page Template for Community Events – Followup’ is closed to new replies.