• Resolved startechmarketing

    (@startechmarketing)


    Hello I have custom configured the RSVP must be logged in, and I customized the account using the woocommerce account which is built in so it goes to https://beta.starpaintonline.com/my-account

    however when i click in the event to login it goes to a different login, we also use wps-login to secure logins – so without making a loop how do I get the user to the proper login screen ?

    Thank you

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hey there,

    Thank you for reaching out to us with your question.

    Let me check with my team and confirm this.

    Best,
    Deekshith

    Thread Starter startechmarketing

    (@startechmarketing)

    Thank you

    Hey @startechmarketing

    For this one, you’d need to do a Template Customization.

    Override this template?/plugins/event-tickets/src/views/v2/rsvp/messages/must-login.php
    in your own theme by creating a file at?[your-theme]/tribe/tickets/v2/rsvp/messages/must-login.php

    Alternatively, you can use the following custom code snippet:
    add_filter( 'tribe_tickets_ticket_login_url', 'tribe_tickets_ticket_login_url_cb' );
    function tribe_tickets_ticket_login_url_cb($url) {
    return "https://google.com";
    }


    Replace?google.com?with your custom login URL.

    Note: To be safe, we’d recommend testing the custom code on a Staging Server. Also, please keep a working backup of your website.

    I want to note here that as per our Support Policy, we cannot provide full support for Customization or third-party integrations, even if we have a guide on our Knowledge base. It is still up to you as the end-user to implement this.?

    Let me know if that helps.

    • This reply was modified 1 year, 8 months ago by Deekshith.
    Thread Starter startechmarketing

    (@startechmarketing)

    Thanks I tried solution 1 and copied the version of the must-login.php to my theme this did not work then I tried the snippet also does not take me there.

    Hi @startechmarketing ,

    Sorry for the confusion.

    Please do the following:
    Go to Appearances → Theme File Editor → Select Theme → functions.php and copy-paste the below code:
    add_filter( 'tribe_tickets_ticket_login_url', 'tribe_tickets_ticket_login_url_cb' );
    function tribe_tickets_ticket_login_url_cb($url) {
    return "https://google.com";
    }

    Replace?google.com?with your custom login URL.

    I checked the code on my test site and it is working: https://share.getcloudapp.com/04uvglnK

    Note: If you are trying to use any custom code, please create a staging site and then use it on that first so that we don’t create a new issue or make the site break.

    Let me know if that worked.

    Best,
    Deekshith

    Thread Starter startechmarketing

    (@startechmarketing)

    no problem this does not work either, maybe because for security we use the wps hide login plugin

    Thread Starter startechmarketing

    (@startechmarketing)

    I changed it in that plugin but still goes to the wordpress backend login

    Plugin Support Darian

    (@d0153)

    Hi @startechmarketing

    I tried to override this template?

    /plugins/event-tickets/src/views/v2/rsvp/messages/must-login.php
    in my theme by creating a file at?

    [your-theme]/tribe/tickets/v2/rsvp/messages/must-login.php

    and it’s working as expected.

    See- https://share.getcloudapp.com/nOuL8vng

    Could you double-check if the file was created on the correct path to your active theme folder?

    Looking forward to your reply.

    Thread Starter startechmarketing

    (@startechmarketing)

    Hello I tried your solution, I did not know about the login url or understand it until now

    my code is below, i placed the file in my themes as you suggested and it did not work, then i also replaced the one in the plugin folder but still takes you to main wordpress login –

    <?php
    /**
     * Block: RSVP
     * Messages Must Login
     *
     * Override this template in your own theme by creating a file at:
     * [your-theme]/tribe/tickets/v2/rsvp/messages/must-login.php
     *
     * See more documentation about our Blocks Editor templating system.
     *
     * @link https://evnt.is/1amp Help article for RSVP & Ticket template files.
     *
     * @var bool   $must_login Whether the user has to login to RSVP or not.
     * @var string $login_url The login URL.
     * @var Tribe__Tickets__Ticket_Object $rsvp The rsvp ticket object.
     *
     * @since 4.12.3
     *
     * @version 4.12.3
     */
    
    if ( ! $must_login ) {
    	return;
    }
    
    ?>
    <div class="tribe-tickets__rsvp-message tribe-tickets__rsvp-message--must-login tribe-common-b3">
    	<?php $this->template( 'v2/components/icons/error', [ 'classes' => [ 'tribe-tickets__rsvp-message--must-login-icon' ] ] ); ?>
    
    	<span class="tribe-tickets__rsvp-message-text">
    		<strong>
    			<?php
    			echo esc_html(
    				sprintf(
    					/* Translators: 1: RSVP label. */
    					_x( 'You must be logged in to %1$s.', 'rsvp must login', 'event-tickets' ),
    					tribe_get_rsvp_label_singular( 'rsvp_must_login' )
    				)
    			);
    			?>
                <?php
                  $login_url = "https://beta.chromlack.eu/my-account";
                ?>
    			<a
    				href="<?php echo esc_url( $login_url . '?tribe-tickets__rsvp-' . $rsvp->ID ); ?>"
    				class="tribe-tickets__rsvp-message-link"
    			>
    				<?php esc_html_e( 'Log in here', 'event-tickets' ); ?>
    			</a>
    		</strong>
    	</span>
    </div>
    
    Thread Starter startechmarketing

    (@startechmarketing)

    interesting when i hover of the link to login, i can see the login url is not what I put.

    maybe i did not code it correctly

    Plugin Support Darian

    (@d0153)

    Hi @startechmarketing

    If you’re seeing the correct URL when you hover and you’re still redirected to the wrong page, then it’s either there’s a conflict with other plugins/theme or there’s a customization that’s doing that.

    Could I ask for the direct page URL where I can see the login link? I’d like to check it further on my side.

    Plugin Support Darian

    (@d0153)

    Hi @startechmarketing

    I hope everything is going smoothly for you. I just wanted to touch base and inquire if you had the opportunity to review my previous response as it has been some time since we last heard from you.

    Thread Starter startechmarketing

    (@startechmarketing)

    Hello

    Sorry for the delay we are going to use a different solution. It is more flexible for booking and our business

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘change login page’ is closed to new replies.